I know it's early days but it would be nice to have a published API to the service to allow technical users to do things like backup their schedules, integrate with IFTTT, etc. I'm thinking a REST style API via the web - as opposed to any direct interface to the local hardware as I imagine that would be more difficult to provide.
Damien Z commented
I've created some software that uses the Hive API to give much more controlover the Hive system and schedules. It was aimed at landlords but it also logs all of the temperature data to Excel for analysis so may be of some use to all sorts of people https://quantum-key.net/AppPages/204-British-Gas-Hive-Landlord-Control.htm
I’d like to echo what Mike Traverse said. There is an API. With a simple bit of Googling I found a v5 and a v6 API documented, though not by BG. I suspect it’s not supported, and therefore subject to change. However, I was able to create a Node Red application, a couple of years ago that allowed me to control a fan based on the temperature inside my house.
Seems like www.totheclouds.co.uk/hive no longer or never worked. :-(
To the last anonymous commenter. Well done on your work to produce:
It's pretty much exactly what I was looking for. Wonder if we could make it into an android app so we don't have to enter login details.
Also, might be nice to have a graph of the temperatures with the boiler on/off times on top.
In any case, really nice work.
Mark traverse commented
There is a perfectly serviceable rest API available which I am using to fully remote control my Hive Heating within my MQTT mSB.
BG haven't documented this and I suspect, don't support or maintain it, but it works well. http://www.smartofthehome.com/2016/05/hive-rest-api-v6/
A very kind person has also captured the methods in POSTMAN which makes API discovery and testing straightforward and also provides code snippets in just about any programming language or scripting you would want.
Whilst I'd be happy with any API one that works inside the boundaries of my domestic network would be preferable. I want to still be able to control things in the absence of an internet connection. And simply because direct is going to be faster and more reliable.
Pragmatically we need both - but I can see that there may be less friction in exposing an API via the web (though I wouldn't like to assume that its easier)
British gas have a real opportunity here to expand their market by making their API available. They should link to Raspberry Pi as well and use the energy in that product development. Think of the new markets that would open. ...
Does anyone in BG respond or even read these? It would be decent if they could say if these were planned to be implemented or not. Ifttt has failed to work and left my light on all night. I'm losing patience with hive and regret not going with Google and Philips hue. At least other programmers could make decent use of the hardware if BG can't be bothered to
As a new Hive user with some limited coding experience, I would love to have such an ('official') API available. From reading various articles from here and elsewhere, it would appear that BG are either not interested in developing user access to their Hive, or, are dragging their feet over this issue.
I agree that BG would be very short sighted to ignore this aspect of their product(s), and would likely lose out to other companies who develop their products with user users in mind.
Although I like the product so far, I would like it much more if there was a route provided to allow me to interact with the Hive via my own coding. I have in mind, a much more comprehensive data presentation that cover much more than the already handy Temperature History bar chart on their site.
It would be nice if there were more Dev input to this thread to keep us abreast of current/likely developments.
Hive is based on the AlertMe API (BG bought AlertMe last year) and there's documentation out there for that if you search. I wrote my own app that links to the API servers using the info and can adjust target temperature, schedules, boost, etc so I know it works.
That said, the documentation isn't great and I ended up using Firefox's Tools > Web Developer > Network option to trace some of the traffic that their web dashboard generated in order to "reverse engineer" some of the calls my app needed.
It would be far better if BG simply published a comprehensive API guide like the competition do.
Chris McKeown commented
Got my free Hive kit from BG today. If there's no viable API for this stuff then I doubt I will bother to use it. Hive will die out if it doesn't integrate - Nest and SmartThings are streets ahead in this regard.
We defiantly need this, not just for the heating but for the plugs, lights and sensors too, the active lights are a great bit of kit but are quit every slow and combursome to turn on and off cause of having to use the app (as opposed to using a light switch) so having an open API so I could develop my own voice commands or apps to set dim levels and turn lights/plugs on and off would be perfect, I know Alexa does this but I don't really want a echo just for my HIVE products, even google now and SIRI support would suffice for me
After requesting this from support as well and getting the response of this isnt something they will be looking to release, and the only way possible was to get enough people to follow the idea on the form so I've also voted for this one.
I can only think of a few reasons not to release this,
1. Their hiding something in there api (In my experience normally security vunrliabilites or they dont design the underlying product)
2. They are trying to force people down the route of their sensors and devices
3. Their worried people will break the product using the API
I would like to be proven wrong, but unfortunately as I find all to often if the API isn't officially public yet it likely never will be.
But I really believe for Hive to really take off in anything other than basic home automation and make it into real smart houses the API is essential. None of my clients would accept using the Hive control panel but i like the simplicity of pairing and installation.
The motion and door sensors already work with API 6.2 use the 'device' call.
Paul Way commented
Also add information from the motion and door sensors to an API, so I can build my own more intelligent home security system.
If interested I have written a second article documenting the Hive 6.2 API:
You may have noticed that most other systems try and brake down their walls with APIs and interfaces. Look at apples keynote and what they are doing with Siri
Hive is the most secular wold and so doomed to failure. Unless you embrace the modern world
For anyone who is interested I have written up a short post which details AlertMe v5 API (which also works for Hive):