I have been troubleshooting my HH integration, double checking things like my new V/parent device. The new drivers etc.
When I did an F9 (I Think) in the MyHarmony desktop software I discovered I have a ver 1 Hub
and a different FW version that was listed after doing a factory reset.
Can I get a confirmation on a version 1 Hub no worky or do I have other problems?
What I think was the "child devices" or the activities showed in my Google Home App so I put them in a fictitious room (my Home Theater system is in a different room). I don't know if that's a mistake?
I think I'll be buying a new hub, anyway. I'm trying to add it again and my HH won't get detected. by the software.
Inside the Parent Driver is a section of commented out code that was only compatible with older Harmony Hub firmware. Right next to that code is the currently active code. You could try commenting out the new code section, and uncommenting the old code to see if it will work for you. That section of code is only needed once, when the Parent discovers the hub.
Once your Harmony Hub firmware upgrades, you can go back to using the current code.
Hereβs the two chunks of code...
if (state.remoteId == null) {
httpPost(uri: "http://${ip}:8088",
path: '/',
contentType: 'application/json',
requestContentType: 'application/json',
//Logitech changed webSockets interface in 4.15.250. Updated Origin and body cmd.
headers: ['Origin': 'http://sl.dhg.myharmony.com'],
body: '{"id": 1, "cmd": "setup.account?getProvisionInfo", "params": {}}'
) { response ->
//activeRemoteId is the new property name instead of just remoteId.
log.debug "hub remote id: ${response.data.data.activeRemoteId}"
state.remoteId = response.data.data.activeRemoteId
}
}
/* Original code for users on older firmware - need to make more elegant DGO 2019-02-20
//Make sure we know the remoteId of the Harmony Hub
if (state.remoteId == null) {
httpPost(uri: "http://${ip}:8088",
path: '/',
contentType: 'application/json',
requestContentType: 'application/json',
headers: ['Origin': 'http//:localhost.nebula.myharmony.com'],
body: '{"id": 124, "cmd": "connect.discoveryinfo?get", "params": {}}'
) { response ->
log.debug "hub remote id: ${response.data.data.remoteId}"
state.remoteId = response.data.data.remoteId
}
}
*/
Thank you!
Although, I'm not a developer and the first thing I'll have to do is look up what it means to Comment code. LOL
I assume by uncommenting/commenting you mean replace. I hope that right or did I just make you facepalm.
I think/hope I'll be getting a new hub, anyway. It's not being detected any longer. I already talked to Harmony support once today. I have to try again. My hub is less than a year old.
I'll bookmark this post in the meantime.
Thanks again.
Here is the modified code section where I uncommented the old code and commented the new code...
/*
if (state.remoteId == null) {
httpPost(uri: "http://${ip}:8088",
path: '/',
contentType: 'application/json',
requestContentType: 'application/json',
//Logitech changed webSockets interface in 4.15.250. Updated Origin and body cmd.
headers: ['Origin': 'http://sl.dhg.myharmony.com'],
body: '{"id": 1, "cmd": "setup.account?getProvisionInfo", "params": {}}'
) { response ->
//activeRemoteId is the new property name instead of just remoteId.
log.debug "hub remote id: ${response.data.data.activeRemoteId}"
state.remoteId = response.data.data.activeRemoteId
}
}
*/
// Original code for users on older firmware - need to make more elegant DGO 2019-02-20
//Make sure we know the remoteId of the Harmony Hub
if (state.remoteId == null) {
httpPost(uri: "http://${ip}:8088",
path: '/',
contentType: 'application/json',
requestContentType: 'application/json',
headers: ['Origin': 'http//:localhost.nebula.myharmony.com'],
body: '{"id": 124, "cmd": "connect.discoveryinfo?get", "params": {}}'
) { response ->
log.debug "hub remote id: ${response.data.data.remoteId}"
state.remoteId = response.data.data.remoteId
}
}
Is there a link to the GIT hub for these drivers? I really want to get this setup. I found it. Disregard!
thanks