Hi, am having issues with the HA dashboard and some ESP8266’s with Tasmota installed.
If the switches are controlled manually then the state updates in HA via MQTT and everything looks normal.
if the switches are toggled in HA then the action is performed via MQTT but the state quickly toggles back to the original. It’s as if HA isn’t receiving the state back from the device.
It’s puzzling me as the state updates correctly in HA if I control the switches manually or by using homebridge, which again works perfectly. Here is a screenshot -
have a read up on https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant as it has an example configuration in the WiKi which I found useful and
as Lxz says, turn on the power retain setting and I usually set QOS to 1. I notice you have changed the client id, I have always left mine as the default DVES_%06X and that there are both stat/Sonoff-bedroom and stat/bedroom in the console output. have you restarted the sonoff?
I believe it was changing the client ID back to the default one that resolved it for me. But it could have been that coupled with a number of other points in this post like changing the QoS and formatting my yaml like one of the examples.