I can tell its triggering at sunset and sunrise buy the dz.log('V mode OFF ' ) output in the log.
Any clues appreciated. Thanks in advance.
Code: Select all
return {
on = {
['timer'] = {
'at sunset',
'at sunrise',
'at 9:08'
}
},
logging = {
level = domoticz.INFO,
marker = "FFL Random"
},
execute = function(dz, trigger)
local FFL = dz.devices(67)
local RANDOM = 20
local ON_MIN = 70
FFL.cancelQueuedCommands()
if (dz.devices(34).state == 'Off') then
dz.log('V mode OFF ' )
FFL.switchOn().withinMin(RANDOM).forMin(ON_MIN)
end
end
}