i'm trying to make a device trigger only between 21:30 and 03:00 and have done it in the way shown in the code but the script is never triggered.
Code: Select all
return {
active = true,
on = {
['PowerOff'] = {'between 21:30 and 03:00'}
},
execute = function(domoticz, device)
if domoticz.devices('PowerOff').state == 'On' and domoticz.devices('Naar bed').state == 'Off' then