Hive(connect) problem

Quick reset of the conversation.......

I've just removed the app and reinstalled it. All went well. I installed one Thermostat and one TRV. All was straight forward, I pasted a new token into the app and then it installed without issue. All good. The only thing I had to so was to change the TRV driver to the correct driver.

All works as expected with the Thermostat. All good. Updates to the cloud are near instant and it controls the thermostats well.

The TRV also works. temp changes and mode changes are reflected in the app. The only issue is that the device does not update correctly. The dashboard tile just sits there, no temp changes and no device updates.

And this appears in the app:

[app:437](http://192.168.15.102/logs#app437)2020-12-10 19:38:55.150 [error](http://192.168.15.102/installedapp/configure/437)groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__132.getDeviceInfo() is applicable for argument types: (null) values: [null] on line 302 (getDeviceInfo)

[app:437](http://192.168.15.102/logs#app437)2020-12-10 19:38:55.121 [error](http://192.168.15.102/installedapp/configure/437)groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__132.getDeviceID() is applicable for argument types: (java.lang.String) values: [f7d5abf1-7100-479e-834b-8e2675cb0f8d] on line 284 (getDeviceID)

[app:437](http://192.168.15.102/logs#app437)2020-12-10 19:38:55.091 [error](http://192.168.15.102/installedapp/configure/437)groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__132.getDeviceTRVStatus() is applicable for argument types: (java.lang.String) values: [f7d5abf1-7100-479e-834b-8e2675cb0f8d] Possible solutions: getDeviceStatus(java.lang.Object) on line 290 (getDeviceTRVStatus)

I also see this in the log for the TRV device:

[dev:767](http://192.168.15.102/logs#dev767)2020-12-10 19:31:13.173 [error](http://192.168.15.102/device/edit/767)java.lang.NullPointerException: Cannot get property 'props' on null object on line 306 (poll)

And if I leave it alone I see these:

[dev:768](http://192.168.15.102/logs#dev768)2020-12-10 19:54:06.137 [error](http://192.168.15.102/device/edit/768)java.lang.NullPointerException: Cannot get property 'props' on null object on line 308 (poll)

[app:437](http://192.168.15.102/logs#app437)2020-12-10 19:54:06.126 [error](http://192.168.15.102/installedapp/configure/437)groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__132.getDeviceInfo() is applicable for argument types: (null) values: [null] on line 304 (getDeviceInfo)

[app:437](http://192.168.15.102/logs#app437)2020-12-10 19:54:06.096 [error](http://192.168.15.102/installedapp/configure/437)groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__132.getDeviceID() is applicable for argument types: (java.lang.String) values: [327f8658-120b-4f09-aad1-782d3c7ec694] on line 286 (getDeviceID)

[dev:768](http://192.168.15.102/logs#dev768)2020-12-10 19:54:06.071 [debug](http://192.168.15.102/device/edit/768)Device ID Null

[dev:768](http://192.168.15.102/logs#dev768)2020-12-10 19:54:06.068 [debug](http://192.168.15.102/device/edit/768)Hive Rad Office 2 Hive TRV status: null

[app:437](http://192.168.15.102/logs#app437)2020-12-10 19:54:06.066 [error](http://192.168.15.102/installedapp/configure/437)groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__132.getDeviceTRVStatus() is applicable for argument types: (java.lang.String) values: [327f8658-120b-4f09-aad1-782d3c7ec694] Possible solutions: getDeviceStatus(java.lang.Object) on line 292 (getDeviceTRVStatus)

[dev:768](http://192.168.15.102/logs#dev768)2020-12-10 19:54:06.020 [debug](http://192.168.15.102/device/edit/768)Executing 'poll' for 327f8658-120b-4f09-aad1-782d3c7ec694

Thank you all, despite knowing nothing I was able to follow the instructions in this thread to get my Hive devices linked from the Hubitat hub.

I am having some issues when I put a "switch" tile on a dashboard (seemed like the most simple test) to control the devices. The tile goes to "sending", the device does actually turn on or off as expected, but then the dashboard goes back to show how it was before.
Only if I go into the device details and click the Refresh button does the dashboard update to the new and correct device status.
Note tested with "Hive Plug" and "Hive Light Dimmable" devices.

Any advice?

This is for a hive outlet?

Yes I am trying to control a hive plug and a hive bulb.

try the template for outlet, not switch, might update correctly. Paul

1 Like

Thank you. I have switched to that
image

It does now appear to work ok, with the bulbs I have to use the "Dimmer" template and the socket has to be the "Outlet" (I tried them both with switch originally).

Quite slow but working.

Thank you

1 Like

Help me please.....I've followed your step by step instructions and doing great until my HiveTokens.json is a blank file and I can't find a file called HiveTokens.js. What am I doing wrong???

I am seeing some errors (I think) at step 10 when running node (screenshot attached). I have checked the credentials and they are correct and 2 factor is not turned on.

Appreciate any help you can give

Sorry @paulhw I did the node.js bit on a Mac.

I've just had a quick look on the ST forum, they advise you might need a reboot on a windows OS. See this:

Good luck!

Thanks for the help and the link @brumster. A reboot did nothing for me :frowning: however I did find further down that string about hardcoding in the variables which did the trick, phew. Thanks again for your help.

If that fails, you can always edit the index.js to hardcode these values.
replace all occurrences of process.env.CognitoUserPoolClientWeb (appears twice) with '3rl4i0ajrmtdm8sbre54p9dvd9'

and all occurrences of process.env.CognitoUserPoolUsers (appears once) with 'eu-west-1_SamNfoWtf'

so for example the line (appears twice in index.js)
ClientId: process.env.CognitoUserPoolClientWeb
becomes
ClientId: '3rl4i0ajrmtdm8sbre54p9dvd9'

and the line (appears once in index.js)
const userPoolId = process.env.CognitoUserPoolUsers.split('_')[1]
becomes
const userPoolId = 'eu-west-1_SamNfoWtf'.split('_')[1]

1 Like

Awesome!

All we need to do know is find someone smart enough to get the TRV working :grinning:

Yeah I'm looking to get some of those too, so please someone find a way :slight_smile:

1 Like

It appears the TRVs are hit and miss on ST as well.

Yep. They're not working on either platform!

Would be nice to get them working. I have a nice use case that needs me to be able to control the TRV using Webcore..... :crossed_fingers:

There seems to be no native facility to turn the heat down, only off, when away. So being able to set a temperature on each TRV, and set to manual would be an ideal alternative, resetting to Schedule on return.

I did this node.js fix a few months back and all was well but now all of my Hive devices have disappeared again, not sure if they have made more changes.
Anybody switched to something other than Hive to make life easier? Iguess I just need a ZWave thermostat and a Switch to fire the boiler is that right or can that damage the boiler (over-run and stuff)?

Evening all. I've just reinstalled this and all appears to be okay. Main question for me is: has anyone figured out the TRV yet?

In my experience the TRVs are read only. Trying to write values does nothing, but it does create a lot of errors in the logs. Also all the Hive handlers are real log hogs, filling them up very quickly. Caused my hub quite some slowdowns until I just deleted it all in the end, and run my Hive system native within the Hive ecosystem with occasional backup from Hubitat triggered Alexa routines…

1 Like

Cheers Andy. I' wrote the question above and then made the decision to offload the TRV's. I've got a 3 zone system so some decent investment in the Hive solution. I think I'll be offloading the TRV's first and then I'l look at the stats later.

I've got a specific use case with two rooms on a single zone that are rarely used at the same time. I've got 2 hive stats wired in parallel so I just need to sort some decent TRV's out!

Shame, really. A decent integration would have been good!

I have a room that’s only occasionally used, so I set up a virtual switch/contact called Guest and added it to Alexa. When Guest turns off it fires an Alexa routine to set the TRV to 17 degrees and Manual mode. When Guest turns on it fires another routine to set the TRV back to Schedule mode. Works a treat! I have another routine that sets all the TRVs to Manual/17 degrees when I’m away, and yet another routine to set them all back to Schedule mode when I get back. I have to have a ten second delay between each command or Hive gets overwhelmed, other than that it all works well :blush:

I see, hubitat talks to Alexa, Alexa talks to Hive?