I think when you have two conditions they are “anded”. The trick about time is that after midnight, time resets to the next day. So your after 22:30:00 fails, because it’s now before 22:30:00 the next day. Look at automation conditions https://home-assistant.io/getting-started/automation-condition/
@turboc is correct. When you put conditions in a sequence, the sequence stops the first time you have a false condition. In a sequence, the conditions don’t have to be first. You can basically say “do this, check to see if a condition is true, do this other thing, check another condition, do the last thing” by inserting conditions into a sequence.
The reason for this is that I have different scenes for a room depending on time of day, I have each scen setup as a script then I have a main script like “room_lights_on” that calls all scenes/scripts and depending on time of day only one should trigger.
I don’t know, I’m fairly new to this. I just see it as three automations instead of a script. And I’m really not sure about sequencing conditions. That idea is new to me. Sorry I can’t be more help.
Great,
The structure of the condition statement takes some getting used to. but basically it’s just or’ing your conditions so if it’s after 22:30 at night OR it’s before sunrise then it’s successful. that way the problem you run into with time when it crosses midnight is taken care of by the before sunrise and doesn’t impact you.