I send the data from my gas boiler to Home Assistant via MQTT. Now every data set is an own entity, but there is no device for my gas boiler. As far as I read, there is especially for the the MQTT-Discovery-function in Home Assistant. Unfortunately I don’t get it to work. Can you please support me?
I am using the Mosquito Broker inside Home Assistant and the entry in my configuration file looks like this:
Thank you. I already knew that description. But somehome it goes above my small understanding… Do you have an idea, how the MQTT message could look like in my special case?
Right now I configured the MQTT message that is sent to this format, which does not work:
I think I’m on the wrong track due to my lack of understanding of the matter
Hi,
I’ve experience in writing MQTT discovery for several projects to implement auto-discovery down to icons and suggested area names. There’s a few posts on this forum on this matter, so I’d suggest a few links and the forum search.
Do you have an idea, how the MQTT message could look like in my special case?
It looks like several hot beverages of your choice , the documentation, the above examples, and several prototypes you publish and experiment with something like mosquitto_pub!
It’s not as hard as it looks; it just takes a few tests which happily give instant results in HASS giving a very fast debug-cycle (HINT: delete retained topics to remove test data to clean up afterwards).
I am not sure if your main objective is to group the entities as a device, or if it is to enable auto discovery.
If the main objective is to group them as a device, try something like the following, where you add the device section to each of the entities, such that Home Assistant can now that they belong to the same device. I just used a random name and identifier in the below.
You are right, the main goal would really be to group them as a device. Unfortunately this entry does not work. It shows me an error when loading the mqtt entities: