'On' condition by an usable array
Posted: Monday 30 October 2017 15:56
Ciao,
quick question....
it is might possible to define an array in the ON condition and use it in the code?
something like....
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