Automations stopped working after 0.51 upgrade

This is weird, really weird…

After I upgraded from 0.50 to 0.51 my automations stopped working, z-wave works, hue works etc, but no automations.
The automations works just fine if I manually trigger them from the interface.

Here is an example:

- alias: 'Bathroom (upper) Day'
    - platform: state
      entity_id: binary_sensor.bathroom_upper_sensor
      from: 'off'
      to: 'on'
    - condition: time
      after: '06:00:00'
      before: '22:30:00'
    - service: light.hue_activate_scene
        group_name: 'Bathroom'
        scene_name: 'Bright'
    - service: script.bathroom_upper_sonos

Hi @ZyberSE, i assume the automations are not enabled anymore.

initial_state: true did the trick!

How come they were disabled?
I’m I supposed to always set initial_state: true?

Normaly the last state of the automations gets restored from the database on HA start.
Sometimes on Database updates or new automation the last states get lost.
I’m setting the initial state for all automations that i don’t show in the GUI.

1 Like