Hi,
I have been trying to get my head around this problem since few days now. I have 2 4chpror2 having tasmota and connected to home assistant via external MQTT. One works fine but in the other one, when i turn on a switch from tasmota interface or HA, it turns off automatically in about 17 seconds. No mater what settings I try, it always turns off. As it turns off even if i use tasmota UI, i posted it first in tasmota forum but it looks like there is a MQTT power off message sent from HA; so it is something that HA is doing rather than tasmota. This device was added to HA via auto-discovery so no entries in configuration.yaml.
This is what appears in the console:
12:59:50 MQT: tele/Sonoff4chpro/STATE = {“Time”:“2020-06-03T12:59:50”,“Uptime”:“0T00:37:36”,“UptimeSec”:2256,“Heap”:26,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:1,“POWER1”:“OFF”,“POWER2”:“OFF”,“POWER3”:“OFF”,“POWER4”:“ON”,“Wifi”:{“AP”:1,“SSId”:“",“BSSId”:"”,“Channel”:2,“RSSI”:70,“Signal”:-65,“LinkCount”:1,“Downtime”:“0T00:00:05”}}
12:59:50 MQT: stat/Sonoff4chpro/RESULT = {“POWER4”:“ON”}
12:59:50 MQT: stat/Sonoff4chpro/POWER4 = ON (retained)
13:00:07 MQT: stat/Sonoff4chpro/BUTTON4T = {“TRIG”:“SINGLE”}
13:00:07 MQT: tele/Sonoff4chpro/STATE = {“Time”:“2020-06-03T13:00:07”,“Uptime”:“0T00:37:53”,“UptimeSec”:2273,“Heap”:25,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:1,“POWER1”:“OFF”,“POWER2”:“OFF”,“POWER3”:“OFF”,“POWER4”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“",“BSSId”:"”,“Channel”:2,“RSSI”:76,“Signal”:-62,“LinkCount”:1,“Downtime”:“0T00:00:05”}}
13:00:07 MQT: stat/Sonoff4chpro/RESULT = {“POWER4”:“OFF”}
13:00:07 MQT: stat/Sonoff4chpro/POWER4 = OFF (retained)
Exactly at 17th seconds there is this: stat/Sonoff4chpro/BUTTON4T = {“TRIG”:“SINGLE”}
Can some one help me out on this?
Thanks.