Invalid config for [automation]:

I have only used the automation editor for automations and yet I am seeing the following in logs and notifications every time I edit an automation:

Invalid config for [automation]: (See /home/homeassistant/atal/homeassistant-config/homeassistant/configuration.yaml, line 9)

Line 9 in configuration.yaml is is automation: !include automations.yaml, so not much help there.

My automations all work so I’m a little baffled. I also notice a few duplicated automations in the GUI, so I suspect there’s something weird going on. I did have apostrophes in some of my names but I’ve since removed those.

Any ideas on how to resolve and clean up? I would try deleting and re-adding one by one but I don’t want to mess up the registry doing that.

Same problem here. This happened in the last week. I tried reverting to a previous install, and get the same issue.

Anyone else?

1 Like

Appears I found my error. When I went into automations.yaml, I had some old automations in there that were causing the issue. First I backed up my config, then deleted one at a time until the error went away and I found the one causing the issue. My GUI list of automations was not in sync with the automations in my yaml file for some reason, recommend checking in your yaml file.

2 Likes

It’s since been fixed but yes, I found that my yaml wasn’t in sync with the GUI either, so “fixing” the yaml wasn’t working. I guess there needs to be a way of refreshing the core storage from the yaml or something.