1) You have to understand each broker is a different MQTT server
2) HA can connect to one .. but everything needs to be brought together into one server
3) So we use the MQTT broker (server) in add-ons to host all the content from all others brokers.
So to configure it you need to make sure it is active and that you have a configuration folder location:
All the ssh keys should be setup and by default secure your connection with HA ..
You will need to configure a "Person" to allow login (nice that the add-in uses the same password setup as HA)
Now you need to configure the MQTT Broker to connect to other brokers and bring there content into this instance:
If you used the folder above in my example you can find this in the share folder you will need to make the mosquitto folder
and you will need to create a file called : mosquitto.conf in the mosquitto folder. I had to use sudo to have permissions to do this.
Here is the contents on my file:
----------------------------------------------------------------itto
connection smb1
address 192.168.1.138
remote_username sauser
remote_password Pa33W0rd!
topic sa-/# both 2
topic homeassistant/# both 2
connection vmb2
address 192.168.1.5
topic N/# both 2
topic R/# both 2
----------------------------------------------------------------2
This points to two servers to merge into my HA MQTT Broker
1) SA -- i bring all the content from SA and the configuration content for HA channels -- I make them update both ways (coming and going to allow the write functions to continue working)
2) Venus - I bring in my Venus (Victron) server to add that content and make available in HA ..
This can be repeated as many times as you need.. BUT
BUT
Do not make all channels both ways, or all content will be duplicated on all brokers in your entire system.. It will work, BUT it will create a LOT of traffic moving every message from every server and duplicating it on every other server..
Questions let me know!
PS> If you're setting on a Venus server for Victron devices, let me know there is a time-out ping you have to do to keep things running and prevent Victron from going into bandwidth saving mode and stop sending updates.