Switch ON
Code: Select all
return {
active = true,
on = {
timer = {
'10 minutes after sunset',
},
},
execute = function(domoticz, devices)
domoticz.devices('Switch [WS01]').switchOn().checkFirst()
end
}
Code: Select all
return {
active = true,
on = {
timer = {
'10 minutes before sunrise',
},
},
execute = function(domoticz, devices)
domoticz.devices('Switch [WS01]').switchOff().checkFirst()
end
}