Page 1 of 1

Devices from DomoticzEx-Plugins don't activate Scenes

Posted: Saturday 12 April 2025 19:33
by fleinze
Version: 2025.1 beta 16628
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)