Hi.
I installed aylc100’s Hive connect and the device drivers and all was working fine but since the last hubitat upgrade it has stopped working.
When i go into the app now it won’t let me login with error code 401. Any ideas please?
There was a problem connecting to Hive. Check your user credentials and error logs in SmartThings web console.
Baz
I’ve no idea how you know this magic, I’m impressed.
I looked through and this already says cognito possibly from where I deleted everything and reinstalled everything. Any ideas what I do now?
Very grateful for your time.
I’m amazed thanks.
It has got me through authentication fine and I’ve changed a few things mentioned elsewhere. I can see my heating and hot water ck trolls but it doesn’t add light or active plugs as devices. They are found and selected in the hive connect app but just don’t then appear as devices anywhere. Hopefully this is the last hurdle?
Cheers.
From what I can gather you may have only installed the hive connect app and the heating driver. For bulbs and plugs etc you will also need to install the relevant driver from alyc100’s repo.
I'm a current SmartThings user here and I'm looking for alternatives as I see the ST platform become increasingly unreliable as it moves away from where it started. Hubitat looks of interest and leads me to ask the following question.
I'm wondering if anyone has the Hive Connect app working as discussed above?
I have an interesting use case where I have 3 zones and 4 thermostat/switches. I have two wired in parallel so that I can have complete independent control over multiple rooms in one of the zones. For that reason I'd like to wrap some automation around the TRV's having them mimic stats in order to control the rads in the rooms.
The hive connect app will do that. I’ve got a similar arrangement.
To be honest I was thinking of getting rid of Hive so I have less interfaces as it can be done directly from hubitat.
I might be missing the point here, are you guys saying I should be able to take the code form GitHub and load straight into HE?
When I do that I receive:
unable to resolve class physicalgraph.exception.NotFoundException @ line 1012, column 7. unable to resolve class physicalgraph.exception.ConflictException @ line 1014, column 7.
Which is within this bit of code:
//Remove devices if does not exist on the Hive platform
getChildDevices().findAll { !selectors.contains("${it.deviceNetworkId}") }.each {
log.info("Deleting ${it.deviceNetworkId}")
try {
deleteChildDevice(it.deviceNetworkId)
} catch (physicalgraph.exception.NotFoundException e) {
log.info("Could not find ${it.deviceNetworkId}. Assuming manually deleted.")
} catch (physicalgraph.exception.ConflictException ce) {
log.info("Device ${it.deviceNetworkId} in use. Please manually delete.")
}
}
app:68:2020-11-28 16:24:13.044 [error] groovy.lang.MissingMethodException: No signature of method: user_app_alyc100_Hive__Connect__98.findChildAppByName() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [Hive (Connect)] on line 167 (mainPage)
The App will flag an error when saving it so you have to change all references of physicalgraph to hubitat, I did this at lines: 1012 1014 the driver then saves successfully.
Add the newly defined User App 'Hive Connect'
Load the app, you are prompted for credentials (note that I don't have 2FA enabled in the Hive account)
I get the message "You have successfully authenticated to Hive" - Great!
The app then throws the error: Error: No signature of method: user_app_alyc100_Hive__Connect__132.findChildAppByName() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [Hive (Connect)]
A Baz states I then make the changes referenced in his other post:
In the App edit all references to 'app.namespace' and change it to "alyc100" ( I think the first one is on line 1030), make sure you post the alyc100 in quotes as above.
In the App remove the line: def tmaApp = findChildAppByName( appName() )
Then on the next line of code replace: if(tmaApp) {
with if(childApps) {
@Baz2473 thanks heaps for this, really appreciated
No worries.
I’m glad you managed to get it all working. I’m sure your instructional write up will be helpful for anyone else trying to accomplish this.
I didn’t post my working code because I’ve adjusted it so far from the original it would not work for other people trying to use it.
No, sorry. I got rid of all my smart trv's a few years back when the heat from the rads made the plastic pushrod attached to the solenoid melt. that was an expensive lesson learned.
It’s happening on both the ST and HE versions of Hive (Connect) - I wouldn’t mind them enforcing 2 FA (in-fact I would enable it by choice) just as long as you can generate ‘app passwords’ like you can for most other platforms.