Been having this issue for about 18 months now.
This TH16 with tasmota 10 will switch on randomly and also always POWER ON after a system restart.
Retain is set as false (in HA also). poweronstate 3 (tried the other options also)
Tried virtually everything.
After a system restart I see this line even if the switch is OFF before restarting:
"MqttCount": 1,
"POWER": "ON"
Config is identical to another TH16 I have which works as normal.
Now my mqtt broker is set as
persistence true
(LXC container in proxmox)
Any other suggestions apart from wiping it and reconfiguring?
Thanks
Just captured the last messages when it switched on by itself again:
15:38:07.839 WIF: Connecting to AP2 SSID Channel 3 BSSId 90:9A:4A:50:6C:A6 in mode 11n as tasmota-TH16-sensor2-6263...
15:38:10.753 WIF: Connected
15:38:11.027 MQT: Attempting connection...
15:38:11.075 MQT: Connected
15:38:11.079 MQT: tele/tasmota_TH16_sensor2/LWT = Online (retained)
15:38:11.082 MQT: cmnd/tasmota_TH16_sensor2/POWER =
15:38:11.370 MQT: stat/tasmota_TH16_sensor2/RESULT = {"POWER":"ON"}
15:38:11.375 MQT: stat/tasmota_TH16_sensor2/POWER = ON (retained)
15:38:12.124 MQT: stat/tasmota_TH16_sensor2/RESULT = {"Time":"2022-06-15T15:38:12","Uptime":"0T00:44:11","UptimeSec":2651,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"ON","Wifi":{"AP":2,"SSId":"SSID","BSSId":"90:9A:4A:50:6C:A6","Channel":3,"Mode":"11n","RSSI":92,"Signal":-54,"LinkCount":2,"Downtime":"0T00:00:09"}}
15:38:12.174 MQT: stat/tasmota_TH16_sensor2/STATUS10 = {"StatusSNS":{"Time":"2022-06-15T15:38:12","AM2301":{"Temperature":19.8,"Humidity":78.0,"DewPoint":15.8},"TempUnit":"C"}}
Think I may have solved it by following the advice here
I published an empty payload from HA services with retain