Having two automations suddenly stopped working

First a motion detection sensor trigger a light

automation:
- alias: 'Tänd i hallen vid upptäckt rörelse'
  initial_state: true
  trigger:
  - platform: state
    entity_id: binary_sensor.net_dorrvakt
    from: 'off'
    to: 'on'
  condition:
  - condition: state
    entity_id: input_select.status_hemma
    state: 'Hemma'
  action:
  - service: homeassistant.turn_on
    entity_id: switch.net_hallen

Also a sunset triggered automation that doesnt work

automation:
- alias: 'Fönster efter skymning'
  initial_state: true
  trigger:
  - platform: sun
    event: sunset
    offset: "-0:20:00"
  condition:
  - condition: state
    entity_id: input_select.status_hemma
    state: 'Hemma'
  action:
  - service: homeassistant.turn_on
    entity_id: switch.net_fonster_koket

is your input_select.status_hemma set to Hemma? Aside from that, the automations look normal.

1 Like

Thank you!!!

After last upgrade and reboot the state was reset…

I should have looked at that first.