Hello
MQTT is new to me and I don’t understand that yet. I installed the broker, created and configured users. Then I signed up a shelly and a dingz button to the broker. The broker seems to work, with MQTT Explorer I can detect communication.
But in Home Assistant on devices, at MQTT I can’t see the devices logged in to the broker.
I have repeatedly reinstalled the broker, restarted, etc. read instructions, watched Youtube videos. I’m sure the broker works perfectly, but why does HA not see the devices. HA MQTT is logged in to the broker with the correct user.
Incorporating Shelly with MQTT is actually only for testing. I usually use “normal” integration. But I’m trying to understand MQTT. Actually, I want to integrate my dingz button into MQTT. Did it also need a discovery for this? Will not automatically display all devices that are logged in to MQTT broker?
thank you very much for answer me. For other devices, in my case dingz buttons. Does it need a special discovery for this? That’s exactly what I don’t understand. In the broker I can see the logged-in devices communicate. But I don’t see these devices in HA.
Once you get your head around how it works, there really isnt much to it.
Messages are published to topics. Devices can subscribe to topics, and perform an action when something is published to that topic.
EG:
You tell HA to turn a light on
HA publishes a message “ON” to the configured topic light/command
The light is subscribed to that same topic light/command, sees a new message, and turns on.
The light then publishes a message to a second topic, light/state, “ON” confirming that yes, indeed that light is now on.
HA sees this message, and updates the state of the light in HA to on.
Entities (switches, lights etc) dont always automatically appear in HA just because they are using MQTT. There is a special topic used for discovery. If you have MQTT setup and working, you may just need to manually create your device in your configuration.yaml file.
I also think that the dingz devices must add it manualy, but thats a to high level for me. I have no idea how to do that. The instruction gives me more ???
What i see its, the Broker it works, but what i must do for create a device in HA for each dingz device, about that i have no idea. i can see a Message if i push a button, or a sensor value change it, or the PIR Sensor detecting a motion.
did you fix your problem. I have the same issue. Can’t see any device under Mqtt. Broker is working, I see my devices there. Also I deployed the shelly discovery script. Any solution till now
You should use MQTT explorer to see what the Broker is getting (I used mosquitto on HA) and adapt from the above. Problems might be device classes, etc. pp. But this is what you might find in the forums here. Sorry, I cannot help with dingz, but if you get MQTT “flooding around” (which you can see with mqtt explorer), than you are 90% there, and should put the above into your configuration.yaml
Above is ONE physical sensor, that delivers 3 different state topics. Maybe you can cut out 2. But really use mqtt explorer. That is the swiss army knife you need!
Hi Juergen,
thanks for supporting me. I have this new shelly uniplus multisensor installed. This sensor should count me the gas consumption. In the shelly app and also with the mosquito explorer I see the right infomation eg.
But I have no clue in which way I can define this information in the right form into the configuration.yaml. Which device_class i should use …
After a while I found a solution for define the sensor values for the shelly - multisensor uniplus.