Help! All my automations have stopped

All my automations have stopped sometime in the last week. I don’t see anything unusual in either home-assistant.log or OZW_Log.txt. How do I troubleshoot this? My automation.yaml file is more than 900 lines long!

Important stuff:

  • I have 1 automation triggered by homeassistant.start that’s working (see code below).
  • Z-Wave switches are responding to homeassistant commands via the UI.
  • Z-Wave sensor changes are showing up in OZW logs.

Here’s the code for my only successful automation:

- id: ha_start
  alias: 'HA_Start'
  trigger:
    platform: homeassistant
    event: start
  action:
    - service: notify.slack
      data:
        message: "Home Assistant started successfully."

I would comment out all automation code except for one, and test it in isolation. If that works, you know the problem is somewhere in the commented out code. A bisection type search from there ought to localize the problem.

Have you checked the automations are enabled?

If you have not set initial_state: to ‘on’ then they may be disabled on a restart.

I especially find this happens if you only do a partial load of config (like reload automations).

2 Likes

Yes, initial_state: on will fix this. There was a change a few versions back that I had to add this to all my automations since they get turned off on restart without it.

Yep, initial_state: on fixed the problem. Thanks a million for everyone’s help!

2 Likes

One year old post, but still a life-saver in my search for reliable automations, thx!