Can I use (all) devices from a hardware id as trigger?
Posted: Friday 25 February 2022 17:06
I've created a separate hardwareId for a dynamic collection of virtual switches. My script creates the switches when it needs to. But it also has to act when the switch is triggered.
I use myDeviceTriggers = domoticz.hardwareInfo(myHardwareId).idx and I get a table with all the right idx's. But adding myDeviceTriggers to the triggers doesn't work; nothing happens when I activate a switch.
Is it possible at all?
thx
I use myDeviceTriggers = domoticz.hardwareInfo(myHardwareId).idx and I get a table with all the right idx's. But adding myDeviceTriggers to the triggers doesn't work; nothing happens when I activate a switch.
Code: Select all
on= {
devices = {
myDeviceTriggers
},
}
thx