I have an automation that should work only after sunset and before the sunrise. I used the following condition from the example but it is always false.
- condition: sun
after: sunset
before: sunrise
From [Conditions - Home Assistant]
This is ‘when dark’ - equivalent to a state condition on sun.sun
of below_horizon
:
condition:
- condition: sun
after: sunset
before: sunrise
2 posts - 2 participants