I'm trying to execute a scene, only once a day, if sunrise -10 minutes < 7:10 at 7:10, else at sunrise -10 minutes.
I tried with this code, but the scene is executed at the 2 timers :
Code: Select all
return {
on = {
timer = {
'10 minutes before sunrise or at 7:10',
},
},
execute = function(dz, device, info)
dz.scenes("test").switchOn()
end
}
Thank you very much.