#sunset automation firing at sunrise

1 messages · Page 1 of 1 (latest)

forest eagle
#

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
thick vine
#

please format your YAML properly

lethal stormBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

forest eagle
#

Thanks, I didn't know I could do 3 backticks

thick vine
#

is the location in HA general settings correct?

forest eagle
#

Hmm, is that what went wrong.... It has me in amsterdam, that's wild

#

I assumed it just did some sorta geoip thing