quick question....
it is might possible to define an array in the ON condition and use it in the code?
something like....
Code: Select all
local arrDevice = { 'myDev1', 'myDev2' },
On = devices{{ arrDevice }},
execute=funtion(domoticz, device)
domoticz.log(arrDevice[1])
end