Platform: raspberry
Plugin/Hardware: Python DomoticzEx
Description:
Switches from a DomoticzEx-Plugin don't activate Scenes. They can be added as activation devices in scenes, but they don't activate them when pressed.
Workes with the legacy-Domoticz-framework but not with the extended.
The Python-code inside of the plugin for updating a switch device is:
Code: Select all
Devices[device].Units[unit].nValue = power
Devices[device].Units[unit].sValue = "On" if power == 1 else "Off"
Devices[device].Units[unit].Update(Log=True)