I'm trying to create an automation in Home Assistant. Using the UI, I create a new automation, then go to the YAML to enter the coding. When I hit save, it asks me to rename the automation. When I hit rename, an error message flashes on the screen for a moment, then disappears (faster than I can read it, and I can't get a screen shot). The whole window turns grey and stays that way until I click out of it. When I look at the automations screen, it doesn't appear that it saved the automation. but if I look at the automations yaml, I can see it (but it doesn't run). I've also ran the code through a YAML checker, and it comes back as valid. What's wrong and how do I fix it? (And, thanks for the help!)
#Automations suddenly not saving?
1 messages · Page 1 of 1 (latest)
Not an expert. But have you tried restarting the system. Maybe there's something that needs a reset. Happened to me too but I don't remember the cause.
I did with no change. I have only used 11.1% of my disk space, so I know that's not an issue. I event reloaded a previous backup, and still have the issue.
Restart is always a good place to start. Next question, did you mess with the configuration.yaml? Does that still contain automation: !include automations.yaml?
Yes, the configuration.yaml still has this line. I'll restart again, just to be 100% sure, but this remained after the previous reboot.
cleared browser cache / tried different browser?
Yes to both
Here's my configuration.yaml - is there an error in it?
Loads default set of integrations. Do not remove.
default_config:
Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
template: !include templates.yaml
api:
I assume the headers are because of the lack of code tags. Other then that I don't see something wrong. Almost standard file. Does automations.yaml exist? And did you try to run Dev tools => YAML => Check configuration?
The HA logs will have whatever flashed on the screen that you couldn't read