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

Thanks, that worked.

On a separate matter, is anyone finding that not all your rooms appear in the new SmartThings app all the time and you have to close and reopen the app to get all your rooms to show up?

Can’t say I have seen that particular quirk. I do experience an issue where after selecting rooms, the first or second press on ant particular room does nothing. Wait for a few seconds and then you can go into rooms.

Hi, I’m just trying to update my Hive lights using this method, but have run into trouble when running node index.js > HiveTokens.json as gives this output:

SyntaxError: Invalid or unexpected token
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

I manually changed the clientID and Userpool as it wouldn’t run. Any ideas? Thanks.

Hey folks,

I had a power outage overnight and woke up to all my Hive automations gone, and a cold house :joy:. Has this happened anyone before? Is there any way to “keep” them if Hive disconnects and reconnects?

Yes. Go into that directory and run the command minus the ’ quotes.

I did mine on a MAC and the commands al worked as per the guide.

in terminal type the following two lines

cd amazon-user-pool-srp-client

export CognitoUserPoolUsers=eu-west-1_SamNfoWtf CognitoUserPoolClientWeb=3rl4i0ajrmtdm8sbre54p9dvd9

Job done!

1 Like

Hi,

Firstly - thanks for your efforts with this. I know first hand how time consuming it is to maintain these sort of projects (http://www.movemouse.co.uk/).

I upgraded to your latest version after installing six Hive TRVs last week (perfect instructions BTW). I love that I can now see how the temperature is fluctuating in individual rooms.

My only issue is that I am unable to switch any of the TRVs to Boost/Emergency mode from the ST app. If I Boost the TRV from the Hive app, I can see this correctly reflects in the ST app, but I just can’t control it from there.

This works fine with my original Hive thermostat.

Thanks

Steve, are you able to control the TRV at all? Any change updates the Hive account but the change is not reflected in the tile.

Whoops! Embarrassing!!..Please ignore the rest of this post !
I missed the step to disable 2-factor authentication :frowning:
:man_facepalming: :man_facepalming: :man_facepalming:




So, attempting to get the latest code installed.
It’s all gone fine, and I’m up to step 19:
"Run ‘node index.js > HiveTokens.json’ to generate your token file."
I get the following error:

If I follow the other instructions to manually update index.js, I still get the same error :frowning:

I’m replacing the string
ClientId: process.env.CognitoUserPoolClientWeb
with
ClientId: '3rl4i0ajrmtdm8sbre54p9dvd9'

and
const userPoolId = process.env.CognitoUserPoolUsers.split('_')[1]
with
const userPoolId = 'eu-west-1_SamNfoWtf'.split('_')[1]

I rerun the command, but still get exactly the same error.

Can anyone help me diagnose what the problem is please?

I’m on Windows 10 64-bit. I’ve got node.js v15.5.0 installed.
I’ve tried running the Command Prompt as administrator, but no difference.

Here’s a snippet of my edited index.js file:
image

I’m getting a text from HIVE each time I attempt the command though.

HI Paul,

No I am not. I have tried changing Mode, Temperature and Boost Length. Whenever I make a change the wheel spins for a few moments, and then it goes back to whatever the setting was prior to the change.

Anything I set in the Hive app reflects fine in ST

Im stuck on step 19 when generating hive token getting module not found
Also do i neecd to publish everything that was added to ide.

@Alyc100 Thanks for the Smart App and Handlers. I have just installed 3.2 and I’m unable to change the TRV set points. A circle timer just spins but nothing happens. Any ideas please? If I need to get logs, please let me know how. Thanks again! Gary

1 Like

Same here, no matter what settings I try I get a spinning circle and settings revert back to whats in the Hive app and an error about network connection issues. I’m guessing Hive have changed something again.

To be honest I’ve just about had enough of the Hive ecosystem. They obviously have no desire to work with other systems. Nothing but problems with the TRVs which are crippled by the firmware and my Hub360 randomly goes offline.

Any worthwhile contenders that integrate nicely, just not Nest?

So, I finally got round to tinkering with node.js and things…

I get to step 19 and it won’t properly generate a token. I get the text notification from Hive but the json file is empty.

Any advice @Alyc100?

J

Turn off 2 factor authentication to generate token. Then turn back on after JSON is generated.

Oh hell… I could’ve sworn I’d turned off 2FA already.

That got it and everything is showing, even the hellishly difficult 3 zone thermostats are all there and all working.

Alex, you are a legend and should probably be getting paid by British Gas for this hard work! Do you have a ko-fi or similar?

1 Like

Also having the issue of Smartthings not being able to control Hive. ST reports any changes I made in the Hive app, but no control. Like it is only read only. try to change something in ST and just get a spinning circle for a while

I’ve got some time to take a look this week. I’ll see what I can find.

1 Like

I think that it looks a bit complicated for a non-programmer to get the tokens generated so I have wrapped all this up in a web application which requires no (separate) server side requests, all the logic in steps 10-20 can now done in the browser with nothing to install.

You can use it here: https://hive.hul.me

1 Like

Great work Jonathan.

I would just add there maybe some users who feel uncomfortable in submitting their Hive password outside of the Hive ecosystem.

This is a very useful tool for those that are happy to use it.

1 Like