am I missing something about how the sun automation is supposed to work?
My home assistant started triggering my sunset automation at sunrise
In the traces I see this:
When the sun sets
Executed: January 20, 2026 at 8:04:51 AM
the entire automation yaml is here:
alias: Patio Lights On at Sunset
triggers:
- event: sunset
trigger: sun
conditions:
- condition: state
entity_id: switch.back_patio_lights
state:
- "off"
actions:
- data: {}
target:
entity_id: switch.patio_lights
action: switch.turn_on
initial_state: true