Hi there,
Since I don’t have much experience with MQTT yet, I do need some help with the Setup - or better - with a specific case here in my Network.
First, I already had an installation running for some months… but - I had some issues with it… which I could not solve.
So let’s try to explain the Situation:
- I am running a Wallbox which does have a Mosquitto MQTT Broker installed.
- In HomeAssistant, I do have an Integration, which does provide Sensors for that Wallbox - but it requires the MQTT integration to collect the Data.
Now, the setup “recommends” to use another MQTT Broker - which does work as a bridge…
So basically, the “Bridged Broker” is receiving the Messages from the Broker running on the Wallbox.
With this setup, I had some issues … everytime, when either HomeAssistant OR the wallbox rebooted, I received old data from the Broker.
As far as I could get, this old data came from the “bridged broker” - which was running as Addon in HomeAssistant - and it was probably due to “retaining” and persistence of messages.
Unfortunately, I could not get this issue solved…
Due to other reasons, I’ve decided to do a clean installation of HomeAssistant - moving certain applications which run as Addons to their own Virtual environment - out of HA.
Until now, I do not have a new MQTT Broker installed - instead, I connected the MQTT Broker integration from HA directly to the Broker on my Wallbox.
My initial issue - with getting the old Data seems to be resolved with this setup - BUT:
I cannot configure any other MQTT Broker, because the Integration can only be installed one time - and can only handle one connection.
So, I would need to use the Broker on the Wallbox, if I want to add other devices that use MQTT for Communication…
Or - and here am I now:
- Install another Broker on a Virtual Environment
- Configure the Broker on the Wallbox as “Bridge”
- and Connect HomeAssistant to the Broker running in the VM…
What’s your setup if you have multiple “brokers” in your network?
Which one do you configure as Bridge - and do you run it as Addon in HomeAssistant or strictly seperated?