Use array of devices to trigger script?
Posted: Friday 06 December 2019 14:24
Hi
I have a script that I want to be triggered when any of a certain list of devices is changed.
For me, these are LightwaveRT devices, and I use an array in globalData to map the Domoticz device name to the LWRF device number (R1D1, etc)
What I'd ideally like to do is use the array in the on devices statement to select which devices trigger the script, rather than having to either list out each device in the script, or having to run the script for every device change.
Is this possible?
I have a script that I want to be triggered when any of a certain list of devices is changed.
For me, these are LightwaveRT devices, and I use an array in globalData to map the Domoticz device name to the LWRF device number (R1D1, etc)
What I'd ideally like to do is use the array in the on devices statement to select which devices trigger the script, rather than having to either list out each device in the script, or having to run the script for every device change.
Is this possible?