I have two HA installations. Both with MQTT running. I want to have one instance subscribe to another instance MQTT topics. As far as I can tell this would require bridging but all the documentation I can find directs me to add the bridging config to the configuration.yaml file. However this is no longer supported it seems after 2022.3. It wants me to reconfigure the MQTT in the UI to add the bridge. The MQTT is running a local misquito broker and does not allow adding a another MQTT integration. So how do I bridge the two mosquito brokers? I have MQTT Statestream on instance one and have confirmed it with MQTT explorer to view the streamed topics.
What am I missing? Can I subscribe to topics from broker 1 from broker 2? If not any suggestions on how to accomplish this?
Context
I run HAOS and have a weather station that my neighbor would like data from. He runs HAOS as well. I’d like to publish HA topics on mine and subscribe to them on his.
It seems like you want to have a bidirectional bridge. Remember, bridging doesn’t mean you get all updates of both brokers. It’s just the one forwarded to the other. I haven’t come across such a bidirectional setup and it might be a recipe for issues, because you’d need a bridging config on each broker to the other. You can specify the base topic path though, so maybe that works if there’s no overlap. Now, you might think you can just expose both brokers, but HA allows only one MQTT client.
A completely different idea would be to integrate via the HA REST API, or better, use the websockets API for real-time updates (the latter I haven’t worked with myself in HA, unfortunately).
One can connect to a remote HA too, but I don’t think that will help in this case.
That is the whole purpose of the post. HOW do I create a bridge after 2022.3. You can no longer do it in yaml. And I can’t find a way to do it in the UI… Can’t find any docs that show how to create a bridge outside of yaml.
Both Instances are running HAOS 2026.1.3
Yes both have the mosquito broker Add-On installed locally on the same machine as HAOS. MQTT on both point to the local mosquito broker. I want to create a bridge between them and expose about 10 entities/topic to the remote.
I don’t know enough of HAOS to help much, since I run HA Container. If the UI doesn’t allow you to add a bridging config, then I don’t know what you can do. Maybe if you can run both brokers on separate hardware it may be easier, but in that case you could then run a single shared broker for both HA installations.
I will just state again that bridging both brokers to each other could lead to issues if not configured correctly.