I haven’t tested this, but my assumption is that there is no wrap-around on the clock.
Therefore, there is no time that is both AFTER 21:00 and BEFORE 09:00
Try changing them to separate conditions with an “OR”.
condition:
condition: or
conditions:
- condition: time
after: '21:00:00'
- condition: time
before: '09:00:00'
Thank you that seems to have worked. I have been beating my head on that one for a while and just fyi for anyone else the examples in automation’s doesn’t show them separated like that.
Update: did not actually work as designed as now this automation wont fire after 9pm now.
update 2: issue found and fixed – somehow i got into the wrong timezone in the main config. fixed and working properly ty for your help.