I updated the Harmony Hub plugin so it can run on the latest version of openLuup [url=https://github.com/akbooer/openLuup]https://github.com/akbooer/openLuup[/url]. There are some fixes from a few days old, so make sure you update openLuup.
Thanks to Akbooer for fixing the minor things I found so quickly and pointing me in the right directions for others.
PS: If you use VeraBridge you cannot control the Harmony Plugin via an other machine (openLuup or other Vera) this is because the files and device types get modified to support multiple local copies. I have to see if I can fix that as it does work for MultiSwitch. But as you can setup multiple copies of the plugin on each machine that can do exactly the same it is not a priority for me.
I must have missed this post… This is awesome - thanks for updating the plugin (and posting them on Git). I’ll install this later this week and give it a go as my wife loves having control over her candles throughout the house.
Again - much appreciated…
I updated the Harmony Hub plugin so it can run on the latest version of openLuup [url=https://github.com/akbooer/openLuup]https://github.com/akbooer/openLuup[/url]. There are some fixes from a few days old, so make sure you update openLuup.
Thanks to Akbooer for fixing the minor things I found so quickly and pointing me in the right directions for others.
PS: If you use VeraBridge you cannot control the Harmony Plugin via an other machine (openLuup or other Vera) this is because the files and device types get modified to support multiple local copies. I have to see if I can fix that as it does work for MultiSwitch. But as you can setup multiple copies of the plugin on each machine that can do exactly the same it is not a priority for me.
Installed the plugin tonight, configured the IP address and credentials. Created a child device for the Luminara candle, configured the buttons (on and off). Everything appears in order.
When attempting to enable the candle, the logs indicate:
I ran into that yesterday too. There is a difference in how openLuup seems to work with child devices. At the same time I remember a discussion on the scope of variables some months ago (on standard Vera) and some where surprised it worked for me at all. So I may be doing something sub-optimal, but the Vera does handle it.
Basically I have the hander for Harmony_SendDeviceCommand in the LUA for the parent device with the option 1 in the implementation file of the parent device.
The implementation file for the child devices I_HarmonyDevice.xml have the action defined but no other code or files included.
As said this work fine on a Vera, but not on openLuup.
Should I put the actions in the parent implementation and not have an implementation file for child devices? When I try this on openLuup, the variables set as local in the parent LUA are not defined when calling from the child device. So how this should be properly coded? Advice is welcome.
As a workaround you can change the variable Version and restart luup. That will generate the files correctly. this is why I did not notice the problem initially.
I think I cracked it at last. Have no implementation file for the child devices and put handleChildren in the device file, not the implementation file.
I will do some more testing, also on Vera and update GitHub if it indeed works.
I think OpenLuup only looks in one of those places for handleChildren, so that can be easily fixed.[/quote]
I looked up that old discussion on child handling and handleChildren in the implementation file does nothing on a Vera either. For some odd reason, however you can have a child implementation file calling functions from the parent implementation file without properly defining handleChildren. I doubt that is expected behavior and by cleaning up my device and implementation files it is now working. It was the strange Vera behavior that has thrown me off all this time (and probably bad examples and lack of documentation) and the proper openLuup handling now set me straight
Thanks Rene, I’ll keep an eye out for any updates… Glad you were able to reproduce the issue and it sounds like you’re making progress. Let me know if I can help test.
I think I cracked it at last. Have no implementation file for the child devices and put handleChildren in the device file, not the implementation file.
I will do some more testing, also on Vera and update GitHub if it indeed works.
[quote=“CudaNet, post:9, topic:191023”]Thanks Rene, I’ll keep an eye out for any updates… Glad you were able to reproduce the issue and it sounds like you’re making progress. Let me know if I can help test.
I think I cracked it at last. Have no implementation file for the child devices and put handleChildren in the device file, not the implementation file.
I will do some more testing, also on Vera and update GitHub if it indeed works.
Cheers Rene[/quote][/quote]
Hi CudaNet,
I just posted the 2.6.1 version with the fixes on GitHub. Please let me know how that works for you.
[quote=“reneboer, post:10, topic:191023”][quote=“CudaNet, post:9, topic:191023”]Thanks Rene, I’ll keep an eye out for any updates… Glad you were able to reproduce the issue and it sounds like you’re making progress. Let me know if I can help test.
I think I cracked it at last. Have no implementation file for the child devices and put handleChildren in the device file, not the implementation file.
I will do some more testing, also on Vera and update GitHub if it indeed works.
Cheers Rene[/quote][/quote]
Hi CudaNet,
I just posted the 2.6.1 version with the fixes on GitHub. Please let me know how that works for you.