What am I doing wrong here? This is a somewhat fresh install and everything is working quite well aside from the warning I get in the log about there is an error:
Tested out on the yaml validator and it gave me the attached output. Since it is a fresh install i haven’t even modified those lines, which makes it even more weird. Found a post that might suggest that the cache in the docker container was to blame, so they are pruned, but that didn’t help.
You can’t use a YAML parser to validate this. !include is not known to YAML and is part of home assistant code.
If you go to Configuration -> Logs, what error do you get there? Are you able to restart HA? If HA restarts, then your YAML is correct as HA does a check of your configuration before reatarting and it only restarts if the config is valid.
Good feedback. Yes it restarts perfectly and everything works fine. But it just annoys me that i get the error when nothing is wrong.
The full log says: 2020-12-25 12:08:25 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: (See /config/configuration.yaml, line 9).
If you start counting the lines with 0, the error points to your automation.yaml.
The config parser cannot deal with includes and shows only the line in configuration.yaml.
Check your automations for errors.
I do believe I solved it. The first automation: id: ‘1608817237693’ is an orphan automation due to the device_id being wrong (somehow it must use friendly name: mi_magic_cube). I didn’t notice that since i thought deleting automation from the GUI also would remove them from automations.yaml. But that doens’t seem to be the case when they are orphan? After cleaning that up and restarting it’s all good.