My latest automation (using motion detection from camera to switch lights) is off by 1 hour.
I use two sets of “or” conditions
lights must be off OR timer must be active
time must be before sunrise OR after sunset
The first condition works as expected.
The second condition however works with a 1 hour offset?
In the log the correct times are displayed. Just the outcome is weird!
Could you please post your code? I think it’s hard to find a solution without the code.
And I do not understand your posted log. Is this the output by the working or the not working condition? It seems that you are expecting a different output, but 7:04 is before 7:30…
Hello Hellis81,
I didn’t go back to the basics and check the actual sunrise time -30 min.
I checked the log and that still is wrong. Propably a DST bug.
Condition “True” is correct. 7:04:35 is before (sunrise @ 7:42 - 30 =) 7:12.
So automation and switch time are correct.