Hi,
fighting since hours with MQTT,
i install the MOquitto broker, configure with created login/password:
username: mhomemqtt
password: home298heer
and also without user here.
On the terminal I can see the message from my Tasmota device, see:
$mosquitto_sub -h 192.168.55.6 -t # -v -u USERNAME -P PASSWORD | grep -i “$1”
stat/sonoff/smart-switch-22/RESULT {“POWER”:“OFF”}
stat/sonoff/smart-switch-22/POWER OFF
stat/sonoff/smart-switch-22/RESULT {“POWER”:“ON”}
…
Is something missing, but where?
See screenshots.
Broker is running on same System (Odroid) as the OH installed (192.168.55.6)
OK so it is connected, and auto discovery is active.
Now you need to follow the instructions to tell your sonoff switches to actually use the Home Assistant discovery, they don’t do it by default. Sonoff switches will then publish a massive amount of information on the Home Assistant discovery topic and Home Assistant will automatically add them.
I don’t use any Tasmota stuff but I believe it is SetOption19 1
Before you go down that path - you should be aware that the “preferred” method now is to use this: Tasmota - Home Assistant you don’t need to change anything you have already done, just click the “Add Integration” button on the page.