I try to reset an switch at sunrise do I need to check this every minute? Looks like timer = sunrise will do the same.
Code: Select all
return {
on = {
timer = {
'every 1 minutes',
}
},
execute = function(domoticz, device)
local Bedtime = domoticz.devices(66)
on = { timer = { 'sunrise' } }
Bedtime.switchOn()
end
}