Migrate from Docker to HAOS and keep history?

As usual, I was overthinking it. You helped me see that. Thanks.

I stopped the homeassistant docker container. I built a VM running HAOS. I have a TrueNAS SCALE system and I followed these instructions to launch HAOS in a VM under TrueNAS. I restored the backup to the VM and poof! It worked.

I left MariaDB and MQTT running in the containers as they always were. No reason not to.

That meant the only big change was the IP address of home assistant. So I had a handful of configurations to change.

  • I had to change HomeAssistant’s MQTT integration to point at a different IP address (HAOS VM is not on the container network, so it can’t reach it by those internal names/IPs)
  • I had to edit the recorder section of my configuration.yaml to point to a different IP address for the database server
  • I have an ecowitt device and I had to tell it to start sending data to the new IP address

This was about as painless as it could be. I’m an old “here’s a nickel kid, get yourself a better computer” unix guy (you have to be old enough to get that joke). I kept scratching my head like “that’s it? It is just working?”

HomeAssistant has come such a long way and is such a polished experience these days.

2 Likes