I’m thinking about making a “backup” of my Hass.io platform. By this, I don’t mean a backup file, rather a second Raspberry Pi set up with an older versions of Hass.io…A stable, redundant configuration. I keep finding that when I update my current home assistant, it does things like…not reboot. I’m about to implement a security system and I would prefer if it were working without any interruptions. Has anyone messed around with this? I can already think of a few things that would be a bit of a hassle to set up, but does anyone have any pointers? Or is there a way to automate this setup somehow? I’m planning on taking my current system, making a copy, and then altering some of the code and setting up an extra automation so that, when the other pi is working, it turns off automations and scripts, then when it boots up again, it turns itself off. Or, even better, just not boot the hass.io platform while the other is on…I’m not sure if I can do that though. I realize the ports will have to be different as well…
I’m mostly looking for ideas on either how to streamline the process before beginning or comments on things I will need to change that I might not have thought of already. Anything is helpful though!
I’m also interested in something like this. I have my home assistant instance running as a virtual machine on my media server currently. However, I would like to setup a system with a raspberry pi as a redundant backup of this.
The idea is basically this: If I have a power outage and the media server loses power, a raspberry pi on a battery backup with my router would see the home assistant instance go down and would start up its own home assistant instance to replace the primary one while power is out.
I know I could just get a UPS for the media server, but it is obviously a lot more power hungry than the pi would be so it wouldn’t last nearly as long. I see a UPS as being more of a “let the computer shutdown gracefully” rather than sustain it semi long term solution.
Sorry it took so long for me to get back to you. I ended up deleting my home assistant instance last year… just brought it back. In answer to your question, no, i didn’t .
You could look into finding some sort of backup power system for the raspberry pi. I know they have to exist somewhere. People make robots with these things, so there has to be a way to power them without using an outlet… Would that work for you?
Actually, powering the PI isn’t really what I’m trying to figure out. I have my home assistant instance running in a virtual machine.
What I’d like to figure out how to do is have it run in the virtual machine on my power hungry server, but if there is a power outage, have the raspberry pi take over.
Common MQTT broker for both main and backup, if MQTT is used.
On backup server, have an automation that turns off all automations except itself when the main server is available and turn on the automation when its not available.
The backup server is setup the same as the main, and is always turned on.
Not sure if this would work, of course you have the one point of failure in the MQTT broker.