Again I completely understand and appreciate it. I have no issue in providing my BG login credentials BTW if it helps to resolve the issue for me and others but I totally respect your view. I also understand that we don’t necessarily want to give exposure to BG themselves so I’ll call them and ask a generic Q on SmartThings with my particular thermostat. If you want to take a look then I can provide my email address for you to contact me? Bit frustrating as it’s one of the main reasons for SmartThings for me. Really appreciate your help!
Hi Alex, et al
This is a great implementation, and have managed to get the hot water and heating to work quickly. So thank you for your efforts already, as they helped me.
I bought Hive as the Hive 2 now supports multiple zones, in addition to the standard Hot water and Heating. For example, I have two heating zones in my house and also one hot water. As a result, I need to be able to control hot water (which already works perfectly) and the two heating zones independently. I have got one heating zone to work already, but I’m not sure how to get the other one setup and working.
I am sure this won’t be as popular as other features already implemented, but this would help me out
Thanks
Hi @viks ,
It might be something I could look into implementing but it would require access to your account by temporarily changing your password to see how multi zone responds to various API calls. DM me if you’re happy to help out.
Alex
Thank you for creating the integration.
A few comments:
- Is it not possible to prompt for username and password like other apps to?
- Have the option to either input the target temperature directly as numbers or have +/- buttons to increase/decrease temp by 0.5 degrees because the slider is very fiddly and not precise.
Happy to contribute if you share a donate link.
Hi jbtibor,
Thanks for the feedback and glad you’re finding this project useful. In answer to your questions…
- Not quite sure that I understand question 1. Do you mean a pop up within the app?
- This used to be how the device used to work with button controls back on version 1.0. The issue was that the Hive API lag was too long and made this way of controlling the thermostat very frustrating via SmartThings.
Thanks for the offer of a contribution, but in the spirit of open source project work, I am just happy with good feedback and ideas.
- Some apps prompt for username and password when are installed this is what I mean. Is irrelevant whether is a popup or a step during device discovery.
- Not quite sure I understand your answer. I.e. if there would be two buttons, one before and one after slider what move the slider why would it work different than now?
Hey, great work! To throw a possible spanner in the works, I have the original British Gas MyHome equipment. However, the back-end was recently updated so that it uses the same hive web-site as all other hive users…
I’ve added everything as described, and this is what i get during a refresh (yes, i have entered my login details). I added an additional log output for the response of logon, and it was null. I’d expect to get something else back if it was a compatibility issue?
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: error groovyx.net.http.HttpResponseException: Bad Request @ line 440
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug Calling login()
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug Need to login
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug No data.auth
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug isLoggedIn state null
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug Calling isLoggedIn()
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug Executing 'api'
> cbb4c2cf-71b5-40ff-bb37-5677e07eb578 12:10:47: debug Executing 'poll'
For reference, my web-interface looks like this:
Thanks for your efforts!!
Hi there,
I have some bad news on this. This device type only supports Hive thermostats. This is because your original thermostat uses a completely different API even though the web interface is identical. To make it compatible would require some work. If you look at post 82, you can see I tried to see how much work it would be for another user in your situation.
Thanks for the quick reply! Bad news maybe. However I am a Dev also, so will take a look into it. Any pointers for discovering the APIs used?
Excellent! I’m sure there are a few users here who would appreciate a device type that supports the old thermostats including @aluncm.
I found a great resource of people looking into the Hive API. You need the V5 API set documented by Bazza2000 here http://britishgashive.freeforums.org/automated-json-feed-retrieval-t7-20.html. I would think that it’s probably best to create a new Device Type based on my code as there might be some functionality differences and the code might get messy merging it into one.
Happy to provide assistance and think it’s much easier for someone with a Hive V5 API account to develop and test.
Brilliant, thanks. I’ll get on that when I get some time. I was planning on creating a desperate device type, for the reasons you outlined.
OK, so i’ve got it all working now with the British Gas myHome kit, after spending many hours on it! Turns out the API is VERY different. I’ve uploaded it into it’s own source file on github. @aluncm is this any use?
Alyc100, I hope you don’t mind me doing this, please let me know if you’d like me to publish it in some other way.
Also, THANK YOU for your work, and i also just noticed you’ve done an OVO smart meter project, so thank you again.
Great work! I think you should publish this out into it’s own post to help other people easily find it.
I will put it in a separate post tomorrow, with a link back to here as well.
Hi - Fantastic work iBeech (both of you actually!). I would never have be able to do this but will be using it as soon as I can. Unfortunately I’m away for a while so not at home to set it up (initially wanted to set this up before I left to use when I’m away). If you do publish this out separately then would love the access details. Once again great job!!
Hi Chris, I have installed the smartapps (parent and child) as explained in this thread. Can you please explain how you then added a switch to SmartTiles to boost Hive Hot Water on/off? Many thanks.
Support for multi zone Hive as of v1.11. A new preference attribute ‘Thermostat Name’ has been added to specify zone. To support multiple zones, you will have to create multiple devices from the same device type, but the preferences would have the appropriate thermostat names applied for each device. Let me know how you get on @viks.
For Android users with v1.11, can you see if the iOS version of the tile layout now looks good in the Android app and upload some screenshots? Trying to unify the tile layout.
You need to go into the IDE and create a new device of type “Simulated Switch”. I called mine “Boost Switch”. Go back to the app, and in the SmartTiles smartapp, add this Switch to your dashboard and place it where you want.
In your “Auto Mode for Thermostats” smart app you’ve installed, create a new Thermostat Mode Rule. I’ve got the following settings:
For These Thermostats
→ (Name of my thermostat)
Set the trigger to
→ Switches
When this switch is activated
-
(name of Simulated Switch created above)
Set Thermostats to this mode
→ Boost for 60 minutes
Reset Thermostats when trigger turns off
→ No
Triggering the switch in SmartTiles then turns Boost on, and when Boost turns off it automatically turns the switch off for you - so, within the bounds of SmartTiles refresh times, it will correctly reflect what your boost is doing.
Am I being really daft?
I copy the code for v1.11 from github, I go into my device types, replace the old code with the new code, click Save and Publish For Me.
I then go back into my device types, click on Hive Active Heating and it’s back on the old version. What am I doing wrong?
This happened to me too. I have no idea why. To get around this issue I did the following:
- Created a new device type.
- Pasted new v1.11 code in.
- Changed line 89 to --> definition (name: “Hive Active Heating 2”, namespace: “alyc100”, author: “Alex Lee Yuk Cheung”).
- Save and Publish
- Head to ‘My Devices’ and edit your existing Hive Active Heating device.
- Change type to ‘Hive Active Heating 2’ and Update.
(You can stop at this point or you can continue if you want a clean up the old device type) - Delete old stale Hive Active Heating device type in ‘My Device Types’
- Edit the Hive Active Heating 2 device type and change line 89 back to --> definition (name: “Hive Active Heating”, namespace: “alyc100”, author: “Alex Lee Yuk Cheung”).
- Save and Publish (the device automatically updates to the new device type name).
@viks This might be affecting you too upgrading from v1.10 to v1.11.