I’m using Homeassistant (Hassio in Debian10, core-2021.2.3) since few years now and I’m desperate to understand how MQTT is supposed to be working.
I’ve just bought a Yi home 1080 webcam to make some tests, successfully integrated it in homeassistant and using motioneye add-on. I’ve activated MQTT services on the cam but I really don’t understand how to add MQTT entities :-/
I’ve installed mosquitto brocker add-on in hassio, and installed mqtt integration in homeassistant.
My webcam seems to connect successfully to mqtt broker (New client connected from 192.168.1.34 as yi-cam (p2, c1, k120, u’mqtt’).)
My question is, how is “mqtt discovery” supposed to work? Doesn’t that automatically add entities to homeassistant based on MQTT topics?
If not, how I’m supposed to add the webcam sensors to homeassistant?
I’ve read all the docs and I’ve searched on internet for hours without succesfully adding the sensors…
First off, I didn’t know that discovery was something that has to be supported by the device.
But that helped me A LOT, because while searching if the cam supported MQTT discovery I found this that explains how to integrate my YiCam in homeassistant (and also helped me understand the process behind MQTT).
And the other thing that helped me a lot is that I found the MQTT config file in ssh on my Yicam where all the MQTT prefixs, topics, and messages are configured, and this file is way better than the original http page from the webcam to understand how everything works and is supposed to be configured.