Code: Select all
return {
active = true,
on = {
timer = {'every minute'}
},
logging = {
level = domoticz.LOG_ERROR
},
execute = function(dz)
local Switches = domoticz.devices().filter({2,39})
Switches.forEach(function(Switch)
if (domoticz.systemUptime < 10) then
Switches.switchOff().checkFirst()
end
end)
end
}