Question about timer condition
Posted: Saturday 27 September 2025 20:50
Hello,
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 :
Is there a way to do this?
Thank you very much.
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.