I am 100% new to HA but have a strong background with IOT and MQTT.
I would like to read data from an existing MQTT broker.
My expectation is that I can have all the MQTT values show up in HA as ‘entities’ and then use those ‘entities’ in automation(s).
Questions:
Is my understanding of how the data will end up in HA correct?
Do I need a MQTT Broker in HA?, if so why?
Should I be setting up HA to subscribe to topics in my MQTT broker?
Where do I setup the MQTT endpoint and credentials?
Where do I setup the ‘sensors’ (if that’s what I need)
Can I setup a single ‘device’ that will have all my MQTT tags?
To clarify, HA needs a broker to use MQTT, it can be your existing one. There may be some limitations to the authentication methods that the HA MQTT integration will be able to use if I recall right. The integration docs also name two brokers with known incompatibilities.
You can do it in yaml, but you can also do it in the user interface nowadays.
However, there’s absolutely no connection between the HA broker and my existing MQTT broker.
The documentation does not explain the purpose of the HA MQTT Broker
I now have 2 brokers that are not connected and still no understanding of how to get what I want.
The documentation simply does not help.
I have read a lot of posts where people have tried to bridge brokers without success. Seems like a rabbit hole with no clear answers.
As @Saoshen says, add the HA broker.
Then you can just bridge from your other broker into that one and share whatever you want…
You can also log into the other broker using the integration and use everything from there, but HA can be a bit finicky with that, I find just adding a bridge works better for me.
Look up the MQTT integration in the Home Assistant Docs. They are quite extensive and helpful.
I added the bridge config to my broker and nothing showed up in HA
Don’t know where to go from here.
Don’t know how to troubleshoot HA
In the past I setup bridging to my cloud MQTT broker successfully so I know how to do it and what it looks like when it’s working.
How do I know if HA can ‘see’ my MQTT Broker?
If I get the bridge to work, will all my tags show up in HA and be useable in automations without any further config, or do I have to setup a device, or sensor or other for each tag?
in the mqtt integration (not the addon broker), you can click the 3 dot menu, click reconfigure, then you can point the integration directly to your existing broker (instead of the mqtt addon).
there is also a discord server @ Home Assistant which might have folks that have deeper technical knowledge about mqtt.
Using an external broker does not seem to be very common, so I don’t know if there is much experience to guide you, other than the existing documentations at the HA website and the github repositories.
I don’t know if this is relevant, but FWIW this is how the zigbee2mqtt publishes to the mqtt broker addon (which communicates with the mqtt integration);
I use an external MQTT broker in HA with absolutely zero problem. Once you connect to it using the MQTT Integration, everything behaves exactly the same as if you were running the HA broker add-on.
What exactly are you expecting/hoping to see in HA after you do that. Unless you have MQTT topics that have the HA auto discovery in them, you won’t see any new entities in HA. You would have to set them up by hand and then restart HA (I think others have linked to the docs for that already). If you want to see if the integration is properly connected to your MQTT broker, check out this thread on how to send something manually to the broker and listen to a topic:
I pointed HA to my broker and it said success.
However absolutely no indication that it was working or not.
My MQTT broker has hundreds of tags.
I am expecting HA to allow me to use all of them in automations/dashboards etc.
So far I have manually added around 10 or so.
Is there a way to have all of them just show up, without having to manually add each one?