Invalid Config, Recorder Cannot Start, and Automations Fail

I am unsure where to start here, but i believe that all of my issues are related to one another and to my move from TrueNAS to bare metal.

I recently began receiving the following errors after updating or restarting my HA machine (HP Elitedesk SFF):
Invalid Config - The following integrations and platforms could not be set up: recorder, history, energy, logbook, default config
The log details for all the above say “could not setup dependencies”
and
Recorder: The recorder could not start, check the logs

I am also unable to create automations. I can go through the entire process to create the automation, but when i try finish and return to the automations screen, they’re not there and they don’t run. I feel like all of this is likely related, but I’m still enough of a newbie at HA that I don’t really know how to go about fixing it or what is even broken.

I can provide logs etc but didn’t want to overload the first post with unnecessary info.

I’m guessing you used one of the TrueNAS “apps” for Home Assistant. Unfortunately, those Home Assistant “app” maintainers do not use HA, so they don’t understand the requirements. They have chosen to provide their own opinionated configuration, which doesn’t work with official Home Assistant installations and is missing critical entries.

It should be possible to reuse your saved configuration, but you’ll need to edit the config file manually.

EDIT: I think these are the edits you’ll need to make.

To fix the invalid config error, you’ll need to remove the following:

recorder:
  purge_keep_days: 30
  commit_interval: 3
  db_url: 'whatever URL is here'

To fix other issues, you’ll need to add any of the following items that are missing

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
frontend:
  themes: !include_dir_merge_named themes
1 Like

See the EDIT above - good luck!

Thank you! For some reason i did not get a notification that you replied. I will give this a shot this evening and see what happens!

You’re correct, I did start out on TrueNAS before migrating to standalone micropc.

I made the edits you listed above. The first one seems to have fixed my invalid config/recorder issues. Thank you so much for that!

I may be misunderstanding where to make the second edits. I added them to my config.yaml and it booted HA in Emergency mode (i think?). I was able to remove that block and reboot and everything came back up.

I re-added the below section into configuration.yaml, and was able to get HA to boot normally. It still appears that my automations are not functional. I even deleted all my old automations and tried a new very simple one. It did not work.

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

In case anyone else comes across this, I did not ever find a solution. My HA instance was borked during an update and I just decided to reinstall HAOS clean and start from scratch. Automations work just fine now.