I am new Home Assistant. I was using Domoticz successfully in my house but moved to HA primarily for Wink integration.
I’m using the MQTT add-on along with Tasmota Sonoff Switches. The MQTT log shows the devices logging into the MQTT server. In fact, I can use the developer tool to send topics to the switch and turn it on and off.
I figure it is something simple, but have not been able to find the answer in these forums or other online resources.
here is my mqtt and switch portion of my config yaml
**I’m new user and limited to one picture per post. I can provide other logs if required.
Then the easiest way to see the discrepancy between the working and non-working command is to subscribe to all topics and then see what is printed out when you send the working version. Make sure that matches what is sent (case sensitive) when you press the switch on the UI.
The normal method is to use a client to subscribe to the topic. I like to use mosquitto_sub - just because it is always available to me. From the command line
$ mosquitto_sub -t '#' -v
displays all messages sent to the broker. A little more info here
First I reset the topics of the switches to the fallback device name “DVES_xxxx”. I also changed the password for the MQTT broker. It originally had a special character in it. Once I made those changes, I could only send “on” messages. Looking a little more closely at the stat topic at the switch, I realized this was being sent as “POWER1” and not “POWER”.
Small change in the Yaml and everything is working.