[OBSOLETE] - Hive (Connect) V3.2c (British Gas Hive)

Hello All

I’m just about to throw this Hive Heating **** into the nearest bin. I have followed every post and updated the SmartApp and DTH for Heating and hot water. Regenerated the token etc and still it doesn’t work correctly.

When I use Hive Connect it creates two devices (Receiver Heating and Hot Water ) but neither appear in the device list in the IDE but they do in the App … strange

The two new devices in the app wont work and do not have any options to change temp etc like the old one did.

Tried to manually create new devices and edit with the updated DTH but nope still doesn’t work.

I am on 3.2 c of the Hive connect smart App and 3.3b of hive heating dth and 3.1b for hive hot water dth. (cant find any later DTH but I did see an DTH that had different versions numbers in )

Problem I also have is Alexa wont work with Hive if devices are present in ST and go off line as Alexa is linked via the skill to ST . However I’d be happy to remove Hive from ST as don’t need it in there but I use ActionTiles and pull the current temps from ST. I would like to be able to do this for any future dashboards such as in google data studio

Does anyone have any idea what if anything I am doing wrong … or if not a very large hammer to beat this Hive rubbish into a pulp … and replace it with a system that does work with ST ( is there one … better check first )

Thanks Andy

Ok update … found two Hive Connects installed in IDE so removed both to do clean and install and now when I try that and tap to authenticate I get blank screen with next at the bottom and pressing that does nothing and locks the app.

Only thing stopping me disconnecting Hive right now is its bloody cold and I need heating to work .

Why cant Hive just leave things alone as this worked for ages perfectly well before they messed around with it .

Annioyed :face_with_symbols_over_mouth:

I feel your pain. I really wish Hive would document their API and allow access. They have the platform available which is what IFTTT and Amazon Alexa uses with their OAuth framework.
I’ve been asking for this for years and they haven’t budged.

I knew this workaround wouldn’t be for everyone as it isn’t elegant.

All I can suggest is remove all devices and the smart app. Make sure that the latest version is the only smart app you have in your IDE. Triple check your index.js edits with your username and password. Hard code the environment variables into the index.is as mentioned previously. Try again. If you do see an error message in the IDE live logging feel free to DM me with it.

Thank you Alex … After stripping back everything and re-installing from scratch its now all working as it should .

Appreciate all the effort you put into this thank you.

For others a couple of tips that might help

When running the powershell scripts to set the environment and node index.js > HiveTokens.json commands make sure you are in the amazon-user-pool-srp-client folder. If not you will get errors

When copying in the token may sure the line is correct with single quotes each end on the same line and the token in full in between like this example

def hiveTokenString = ‘{“token”:"eyJ…’

This for me is on line 109 of the smartapp code

If you do need to start again delete the amazon-user-pool-srp-client folder , make sure its empty first and you might have to reboot to let windows free up the folder for deletion. Re download the Index file and follow the steps carefully .

It does work if you know to avoid the mistakes I made . hope this helps, but all kudos goes to Alex for figuring this out in the first place… Thank you

1 Like

Thanks.

This will probably sound daft to most but I still run Windows 7 and Node.js requires Windows 8 or above. Is there an alternative way of doing it?

Not that I am aware of. Maybe Alex can help?

Try an older version of node.js. I believe this was the last to support windows 7.

Will be either the win-x86.msi or win-x64.msi you will need depending on whether you’re running windows 7 64bit or 32bit version.

Can’t guarantee it will work but worth a shot

Edit: good guide here but use the later version of Nodejs I’ve posted at the top.

Anyone know why my Hive active lights are not showing up under “My devices” at https://graph-eu01-euwest1.api.smartthings.com/device/list ?

Trying to edit the name and group of my Hive active lights as it is not sticking from the Hive (connect) smart app.

I have set up v3.2 of the Hive smartthings app and all my devices appear in Smartthings.

The only problem is they appear twice.

Deleted them and when they came back again they appeared twice again.

Any ideas what I am doing wrong please?

Try de-selecting hive devices in the Hive smartthings app, then deleting the hive devices through the ST app. After they are all gone, go back in an re-select in the Hive smartthings app.

Can I ask if anyone has a working DTH for the TRV? Changing the TRV correctly updates the Hive device in the cloud for me but doesn’t update the tile. Does anyone else see the same? Cheers. Paul

Thanks I will give this a try tomorrow.

Brian Billing

TRV integration

Firstly I want to thank all the people who have spent their valuable time with this integration.

@Alyc100, the instructions you provided worked fine for me.

The only issue I have is when trying to control myTRVs. I have a similar problem to @brumster where when using the app, when changing the temprature but clicking the ‘+’… the app spins and then the value returns back to what it was before pressing +

Controling the thermostat however works.

Any pointers ?

Thanks
D

Log:
{code}
(https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:15: debug stateHeatingRelay: false

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#12:25:15: debug Got Setpoint 21.0 on device Lounge Front

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:15: info Status: 200

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:13: debug isLoggedIn state 
xxxx
[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:13: debug Beginning API GET: https://beekeeper-uk.hivehome.com:443/1.0/products, [Authorization:Bearer ]
xxxxxx
[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:13: debug Calling isLoggedIn()

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:13: debug Executing 'poll'

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:13: debug Executing 'poll'

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:13: debug Executing 'refresh'

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:09: info Body: [target:22]

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:09: info Status: 200

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:08: debug Beginning API POST: /nodes/heating/xxxxx1, [target:22]

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:08: debug isLoggedIn state 

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#) 12:25:08: debug Calling isLoggedIn()

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:07: debug Executing 'setHeatingSetpoint with temp 22'

[](https://graph-eu01-euwest1.api.smartthings.com/ide/logs# 12:25:07: debug Executing 'setHeatingSetpoint with temp 22'

App
HIve(connect) v3.2c
DH
Hive Heating v3.3b
Hive TRV v1.4b

1 Like

I did manage to integrate the new 3.2 version, thanks for the excellent instructions!

I am trying to make an automation that heating goes to schedule/off/manual etc when certain conditions are met, and I see that the modes allowed in the app are Cool, Emergency, Heat and Off.

However, when the heating is on schedule the device ‘Hive Heating’ displays ‘auto’, but that mode is not visible to select via Smartthings.

How do these 4 modes correlate to the Manual/Schedule/Boost and Off?

This is the tricky part; there is no ‘Auto’ mode. I have to set the heating to ‘Schedule’ via the Hive app in order to display ‘Auto’ inside Smartthings. Once I select Heat(manual) or Off in Smartthings there is no way to go back to ‘Schedule’.

Have you updated the device handlers? There is a new UI that shows Auto. See earlier in the thread (about 10 days ago) as you have to update the device in the IDE to see the changes come through.

I used the code from the very first post. Let me have a look 10 days ago!

It worked! Thanks again!

Hi,

Can any one help I’m getting stuck on generating tokens. This is the error message I’m getting

Craigs-MacBook-Pro:~ CraigRobinson$ node index.js > hivetokens.json
internal/modules/cjs/loader.js:976
throw err;
^

Error: Cannot find module ‘/.BigInteger’
Require stack:

  • /Users/CraigRobinson/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15)
    at Function.Module._load (internal/modules/cjs/loader.js:855:27)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/Users/CraigRobinson/index.js:2:18)
    at Module._compile (internal/modules/cjs/loader.js:1144:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1164:10)
    at Module.load (internal/modules/cjs/loader.js:993:32)
    at Function.Module._load (internal/modules/cjs/loader.js:892:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [ ‘/Users/CraigRobinson/index.js’ ]

I have also tried by installing the biginteger repo by using npm install biginteger --save

Any help would be greatly appreciated

Thanks

Craig