Closed xxKeoxx closed 6 years ago
hm... Would you give me more logs(Full log)? It seems that there is no log when you select device. Did you means that ‘select device’ is ‘Select Device’ menu after ‘Add a device’ -> ‘Select Hub’?
That is correct. So I add the harmony api server IP and port, then the menu to add devices shows up. I click on add Devices and immediately get a 500 error.
Let me see if there is a way to get more information from the logs.
Well... Although hubitat' is almost same architecture with SmartThings, it seems that there is a little difference at SDK.
The code you mentioned is below.
section("") {
app( name: "harmonyDevices", title: "Add a device...", appName: "KuKu Harmony", namespace: "turlvo", multiple: true, uninstall: false)
}
Yeah. I found that line, but I couldn't figure out which function was being called to create the list of devices. Or even what was causing the 500 error.
At the main page if you select 'Add a device...', below page is executed.
// ------------------------------ // Pages realted to Child App def mainChildPage() { ... // finding hub by requesting harmony-api discoverHubs(atomicState.harmonyApiServerIP) ... //after selecting hub and requesting device list to harmony-api discoverDevices(selectHub)
Where is that function called from here:
section("") {
app( name: "harmonyDevices", title: "Add a device...", appName: "KuKu Harmony", namespace: "turlvo", multiple: true, uninstall: false)
}
I have a debug line in mainChildPage and that never shows up in the log, so I am inclined to believe it is not running.
Hello,
Great!!. You did porting to Hubitat. I saw your github and hubitat commnunity post.
I’ll close this issue. Thank you.
I am attempting to port this over to hubitat, and I am running into an issue where I get a 500 error when I attempt to select devices. I have been trying to figure out what is going on for 3 days now.
Can you give me any advice on how to debug this?
Here is the debug info I've added. Hopefully it helps you.