I recently switched from native MQTT integrated Tasmota outlets, to the new Tasmota integration thinking it would help my issues.
All four of my mains powered Tasmota 9.3.1 outlets are SUPER sensitive/fickle to any hiccup in my HASS setup, forcing me to manually invoke a reboot of the devices through their web ui. If my Home Assistant docker container updates overnight (on 2021.3.0), router patching that drops my wifi/network, etc…then all the devices go into an “Unavailable” state in HASS until restarting the outlets.
Post-reboot console:
00:00:03.254 HTP: Web server active on tasmota-headboardlights with IP address 10.10.100.178
00:38:51.482 MQT: Attempting connection...
00:38:51.497 MQT: Connected
00:38:51.500 MQT: tele/tasmota_headboardlights/LWT = Online (retained)
00:38:51.502 MQT: cmnd/tasmota_headboardlights/POWER =
00:38:51.509 MQT: tele/tasmota_headboardlights/INFO1 = {"Module":"Aoycocr X5P","Version":"9.3.1(tasmota)","FallbackTopic":"cmnd/DVES_F27C15_fb/","GroupTopic":"cmnd/tasmotas/"}
00:38:51.518 MQT: tele/tasmota_headboardlights/INFO2 = {"WebServerMode":"Admin","Hostname":"tasmota-headboardlights","IPAddress":"10.10.100.178"}
00:38:51.531 MQT: tele/tasmota_headboardlights/INFO3 = {"RestartReason":"Software/System restart"}
00:38:51.539 MQT: stat/tasmota_headboardlights/RESULT = {"POWER":"OFF"}
00:38:51.547 MQT: stat/tasmota_headboardlights/POWER = OFF
00:38:53.670 QPC: Reset
00:38:55.627 MQT: tele/tasmota_headboardlights/STATE = {"Time":"2021-03-05T00:38:55","Uptime":"0T00:00:09","UptimeSec":9,"Heap":28,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":25,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Grand Central","BSSId":"E0:63:DA:74:14:BE","Channel":6,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:04"}}
00:39:01.943 MQT: tele/tasmota_headboardlights/STATE = {"Time":"2021-03-05T00:39:01","Uptime":"0T00:00:15","UptimeSec":15,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Grand Central","BSSId":"E0:63:DA:74:14:BE","Channel":6,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:04"}}
00:39:01.966 MQT: stat/tasmota_headboardlights/RESULT = {"Time":"2021-03-05T00:39:01","Uptime":"0T00:00:15","UptimeSec":15,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Grand Central","BSSId":"E0:63:DA:74:14:BE","Channel":6,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:04"}}
00:40:04.241 MQT: tele/tasmota_headboardlights/STATE = {"Time":"2021-03-05T00:40:04","Uptime":"0T00:01:18","UptimeSec":78,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"Grand Central","BSSId":"E0:63:DA:74:14:BE","Channel":6,"RSSI":74,"Signal":-63,"LinkCount":1,"Downtime":"0T00:00:04"}}
00:40:04.264 MQT: stat/tasmota_headboardlights/RESULT = {"POWER":"ON"}
00:40:04.269 MQT: stat/tasmota_headboardlights/POWER = ON
00:43:55.720 MQT: tele/tasmota_headboardlights/STATE = {"Time":"2021-03-05T00:43:55","Uptime":"0T00:05:09","UptimeSec":309,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"Grand Central","BSSId":"E0:63:DA:74:14:BE","Channel":6,"RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:04"}}
00:48:45.623 APP: Serial logging disabled
00:48:55.660 MQT: tele/tasmota_headboardlights/STATE = {"Time":"2021-03-05T00:48:55","Uptime":"0T00:10:09","UptimeSec":609,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"Grand Central","BSSId":"E0:63:DA:74:14:BE","Channel":6,"RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:04"}}
To set the outlets up, all four devices were switched back to SetOption19 0 from SetOption 1for them to show up in HASS’ Tasmota integration. Is that setting not persistent? The MQTT container is configured as shown in the screenshot. I have also setup a HASS startup automation to restore the device states:
- id: Sync Tasmota states
alias: Sync Tasmota states
initial_state: true
trigger:
platform: homeassistant
event: start
action:
# sync state for devices with default fulltopics
- service: mqtt.publish
data:
topic: cmnd/tasmotas/state
payload: ''
# sync state for pre8.2 autodiscovery devices
- service: mqtt.publish
data:
topic: tasmotas/cmnd/state
payload: ''
What am I missing here that I have to manually reboot my outlets for them to become unorphaned? From all accounts I read, I’m an outlier and Tasmota “just works” for people. I’ve yet to have a 7 day period without having to finesse my devices back to an available state.