#Automations in automations.yaml, but not on Automations screen in UI

1 messages · Page 1 of 1 (latest)

keen epoch
#

I recently installed FlightRadar24, and while messing with it, I discovered that none of the automations I had defined are present on the Automations screen.

In a panic, I went into the automations.yaml file, and everything was there (so I copied it), but I can't get them to appear in the UI.

There is only one automation in the screen (Flight Entry Notification) created by FlightRadar24, and it won't let me delete it because it says "Only automations in automations.yaml can be deleted.

I've rebooted HA, reloaded YAML, and I cannot get anything but this one Automation to appear on the UI.

Has anyone had a similar situation and what do you do about it?

marble marsh
#

Either you're missing the automation: !include automations.yaml line from configuration.yaml or you have a configuration error somewhere

keen epoch
#

automation: !include automations.yaml is in the configuration.yaml file.

#

Check Configuration gives me no errors.

#

Does HA maintain the automation names/inventory in a database in addition to what's in the automations.yaml file? (i.e. are there two sources of truth?)

#

FWIW, I have no filters or search text in the Automations screen.

marble marsh
#

No

keen epoch
#

Hmm. So what could prevent them from showing if the yaml is valid and automations.yaml exists and has its contents.

#

I'm kind of freaking out here, because I've been using HA and migrating a huge system over and this is scaring the hell out of me.

#

The one automation is disabled, and it says "This automation cannot be edited from the UI, becaues it is not store din the automations.yaml files, or doesn't have an ID.

#

There is a migrate button.

marble marsh
#

You should at least give them all IDs

keen epoch
#

All the automations I copied from the automations.yaml to my text editor have IDs, including two with different IDs with the alias (Flight entry notification) of the one appearing in the Automations UI.

#

...and yet, if I attempt to delete it, it says I can't because Only automations in automations.yaml can be deleted.

#

Wait, I just found a THIRD one in configuration.yaml with no id.

marble marsh
#

You shouldn't have any automations in there

keen epoch
#

I removed it from configuration.yaml

marble marsh
#

Pretty sure that was your issue

keen epoch
#

Still no joy on seeing anything else in the automations screen, but I'm going to restart HA.

marble marsh
#

You need to restart

#

UI config check won't catch that

#

You had a duplicate automation: key

keen epoch
#

Restarting now. FWIW, I created a new automation and it showed up in the ui.

#

Yeah, so it seems. I'm guessing HA uses the configuration.yaml one and ignore the other (or it is simply replaced becaause this rogue one was near the end of configuration.yaml

#

BAM! They're all back.

#

THANK YOU! THANK YOU!

#

My heartrate will be back to normal in about 2 hours. 🙂

marble marsh
#

You hadn't actually lost anything

keen epoch
#

I felt a lot better once I saw automations.yaml had all the text.

old forumBOT
marble marsh
#

That would have caught it