I am trying to create a plugin, based on the Basetemplate.py
I am able to create some devices (or are they called units now?
Code: Select all
BurnerSwitch = Domoticz.Unit(Name="BurnerSwitch", DeviceID="AduroHx", Unit=1, Type=244, Subtype=73, Switchtype=0).Create()
It shows up under switches. But when I click the lightbulb it doesn't switch on.
It does call the onCommand callback and I can e.g. print something to the log, but I can not figure out how to change the state of the switch.
I'm pretty sure I'm missing something obvious. But most examples are still based on the old Domoticz framework, instead of DomoticzEx.
Can anyone give me a pointer?
Regards,
Bert