I had after sunset or before sunrise working for months with the following YAML:
- condition: or
conditions:
- condition: sun
before: sunrise
- condition: sun
after: sunset
I want to change it to after Midnight or before sunrise so I edited my YAML as follows:
- condition: or
conditions:
- condition: sun
before: sunrise
- condition: time
after: "00:00:00"
Makes sense. Works exactly like my sunset condition. I save and hass changes my automation to the following which doesn’t work at all.
- condition: or
conditions:
- condition: sun
before: sunrise
- condition: time
after: "00:00:00"
before: "00:00:00"
Had the thought I could just have two conditions and no or. One condition it’s before sunrise and the other it’s between Midnight and 08:00:00. The bigger issue though is why is hass changing my automation! It’s stupid. Hands off.