Can I run 2 instances of HA

Hello
I am thinking of running 2 instances of HA, Master and a Slave

I have one running version 49.1 and all configured with hasska, a lot of MQTT, Phillips hue and a few others with a lot of automation’s. I was thinking of running the 49.1 as master and the other the latest version. Question is can I do that and how to set it up properly.

I installed my MQTT server on the same Raspberry Pi as my HA

I am running an old version because of the display problem there was with IOS I know it was fixed, but I have had a lot of problems getting all the things working properly I get one thing fix and run into another. I gave up on it for a while.

The problem I am having running 2 HA right now is some of my automation’s stop working until I shut down the new one and reboot the main one

My goal is to get the latest version running, with all the things I have running now

Yes, you can do that. I did that for a while when switching to my NUC from a RPi.

the thing you need to do is make sure all of the configuration where it relies on some hardware or software outside of HA itself is only being controlled by one HA at a time.

I used only my Pi for MQTT, Zigbee and Zwave (along with all related automations using those devices) until I got everything else switched over to the NUC. Then one at a time I redirected everything to the NUC. First I switched the IP addresses between the two which made the NUC the MQTT Broker and the Pi as a client. Rgen switched the zwave & zigbee over one at a time and commented out the things in the Pi as I switched stuff over that was being controlled by the NUC.

I hope that was what you were asking.

You can run as many instances as you want. Turn off discovery otherwise they will both discover devices and try to control them.

If you want them to talk to one another look into MQTT statestream and MQTT eventstream.

I have two HA instances right now and i use a MQTT bridge connection. But you need two brokers for that. Which in my case is easy since I use Docker I can have as many as I want. :grinning:

Setting it up on two RPi’s would work exactly the same tho.

Just install mosquitto on both and tell each HA to use it’s own mosquitto as the broker then in the config for one broker set it up as the secondary broker to the other one.

It’s actually pretty easy. Just a few lines of code in the seconday broker config file.

You should only need one broker, what is the need for two? I have run remote pi’s off the same broker before and it works well.

Now that you mention it I don’t remember why I decided to do it that way. :thinking:

Eh, either way it works now and it’s another tool in the tool box.