HA in Docker - Store configuration persistent

Hi guys,

I have my configuration folder mounted inside the docker. The configuration folder is in a git repro, so the basics are covered. I did some additional things in the ui like

  • installing plugins in HACS
  • connected my IOS devices
  • installed WLED devices

I purged my container and restarted it. All what is defined in configuration.yaml survived after the restart. Clear why. All the other stuff was gone.

Is this how it is supposed to be? Would mean after each upgrade of the container for a new HA version all of those “non-configuration-yaml” changes are gone. There must be a better way to do that.

When writing this I remember I deleted the config folder and recloned it from the repro. That could be a bad idea and part of the problem.

Where are those additional changes being stored (e.g creating an automation in the UI and what I listed above).

Regards
Ralf

Home Assistant creates a .storage folder inside the config folder. If you delete that folder, most (if not all) of what isn’t in your yaml files (e.g. integrations, authentication, etc) will be lost.

Based on the integrations I use, my config folder also has the following files:

  • .google.token
  • .ps4-games.json
  • .spotify.token
  • .webostv.token
  • google_calendars.yaml
  • html5_push_registrations.conf

Take note that files with a name beginning with a period will most likely not be visible to you, unless you have your operating system set to show you hidden (system) files.

1 Like