Closed gjwo closed 4 years ago
@ascillato no I haven't done a reset 3 yet, I want to see it restart with no changes from me first
Just gone again so reset 6 on it's own is not the cure
18:12:30 MQT: stat/Plug4/RESULT = {"POWER":"ON"} 18:12:30 MQT: stat/Plug4/POWER = ON 18:12:30 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:30","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":60,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:31 UPP: Multicast (re)joined 18:12:31 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:31","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":60,"ReactivePower":14,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:32 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:32","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":60,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:33 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:33","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:34 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:34","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":16,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:34 MQT: tele/Plug4/STATE = {"Time":"2020-01-18T18:12:34","Uptime":"0T00:00:12","UptimeSec":12,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":20,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"VM1916490","BSSId":"B0:4E:26:12:35:44","Channel":4,"RSSI":70,"Signal":-65,"LinkCount":1,"Downtime":"0T00:00:06"}} 18:12:34 MQT: tele/Plug4/SENSOR = {"Time":"2020-01-18T18:12:34","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Period":0,"Power":59,"ApparentPower":61,"ReactivePower":16,"Factor":0.97,"Voltage":239,"Current":0.253}} 18:12:35 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:35","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Period":0,"Power":59,"ApparentPower":61,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:36 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:36","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":60,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.252}}} 18:12:37 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:37","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":60,"ReactivePower":13,"Factor":0.98,"Voltage":239,"Current":0.252}}} 18:12:38 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:38","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":60,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:39 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:39","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:40 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:40","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":15,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:41 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:41","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":13,"Factor":0.98,"Voltage":239,"Current":0.253}}} 18:12:42 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:42","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":14,"Factor":0.97,"Voltage":239,"Current":0.253}}} 18:12:43 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:12:43","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.093,"Yesterday":0.000,"Today":0.093,"Power":59,"ApparentPower":61,"ReactivePower":14,"Factor":0.97,"Voltage":239,"Current":0.253}}}
OK I have reproduced the issue. which step do you want me to take next? Reset 3? or something else?
Yes please
I just had another one, before I did anything else...
00:00:00 CFG: Loaded from flash at F8, Count 36 00:00:00 Project tasmota Plug4 Version 8.1.0(tasmota)-2_6_1 00:00:00 WIF: Connecting to AP1 VM1916490 in mode 11N as plug_four... 00:00:05 WIF: Connected 00:00:05 HTP: Web server active on plug_four with IP address 10.0.129.4 00:00:05 UPP: Multicast (re)joined 00:00:06 MQT: Attempting connection... 00:00:06 MQT: Connected 00:00:06 MQT: tele/Plug4/LWT = Online (retained) 00:00:06 MQT: cmnd/Plug4/POWER = 00:00:06 MQT: tele/Plug4/INFO1 = {"Module":"Avatar UK 10A","Version":"8.1.0(tasmota)","FallbackTopic":"cmnd/DVES_C3926B_fb/","GroupTopic":"cmnd/tasmotas/"} 00:00:06 MQT: tele/Plug4/INFO2 = {"WebServerMode":"Admin","Hostname":"plug_four","IPAddress":"10.0.129.4"} 00:00:06 MQT: tele/Plug4/INFO3 = {"RestartReason":"Hardware Watchdog"} 00:00:06 MQT: stat/Plug4/RESULT = {"POWER":"ON"} 00:00:06 MQT: stat/Plug4/POWER = ON 00:00:06 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:06","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.098,"Yesterday":0.000,"Today":0.098,"Power":58,"ApparentPower":60,"ReactivePower":14,"Factor":0.97,"Voltage":235,"Current":0.254}}} 00:00:07 UPP: Multicast (re)joined 00:00:07 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:07","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.098,"Yesterday":0.000,"Today":0.098,"Power":58,"ApparentPower":60,"ReactivePower":14,"Factor":0.97,"Voltage":235,"Current":0.254}}} 00:00:08 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:08","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.098,"Yesterday":0.000,"Today":0.098,"Power":58,"ApparentPower":60,"ReactivePower":13,"Factor":0.97,"Voltage":235,"Current":0.254}}} 00:00:09 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:09","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.098,"Yesterday":0.000,"Today":0.098,"Power":58,"ApparentPower":60,"ReactivePower":14,"Factor":0.97,"Voltage":235,"Current":0.254}}} 00:00:10 MQT: tele/Plug4/STATE = {"Time":"1970-01-01T00:00:10","Uptime":"0T00:00:12","UptimeSec":12,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"VM1916490","BSSId":"B0:4E:26:12:35:44","Channel":4,"RSSI":70,"Signal":-65,"LinkCount":1,"Downtime":"0T00:00:06"}} 00:00:10 MQT: tele/Plug4/SENSOR = {"Time":"1970-01-01T00:00:10","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.098,"Yesterday":0.000,"Today":0.098,"Period":0,"Power":58,"ApparentPower":60,"ReactivePower":14,"Factor":0.97,"Voltage":235,"Current":0.254}} 00:00:10 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:10","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.098,"Yesterday":0.000,"Today":0.098,"Period":0,"Power":58,"ApparentPower":60,"ReactivePower":14,"Factor":0.97,"Voltage":235,"Current":0.254}}}
Sometimes H/W watchdog, sometimes S/W
SO Reset3 + unplug for 2 seconds?
Yes please
@ascillato what about the serial log option from @Jason2866 ? If it restarts with a watchdog please set serial log level to none****
Gone again Doing reset 3 now
00:00:00 CFG: Loaded from flash at F5, Count 39 00:00:00 Project tasmota Plug4 Version 8.1.0(tasmota)-2_6_1 00:00:00 WIF: Connecting to AP1 VM1916490 in mode 11N as plug_four... 00:00:05 WIF: Connected 00:00:05 HTP: Web server active on plug_four with IP address 10.0.129.4 00:00:05 UPP: Multicast (re)joined 18:30:57 MQT: Attempting connection... 18:30:57 MQT: Connected 18:30:57 MQT: tele/Plug4/LWT = Online (retained) 18:30:57 MQT: cmnd/Plug4/POWER = 18:30:57 MQT: tele/Plug4/INFO1 = {"Module":"Avatar UK 10A","Version":"8.1.0(tasmota)","FallbackTopic":"cmnd/DVES_C3926B_fb/","GroupTopic":"cmnd/tasmotas/"} 18:30:57 MQT: tele/Plug4/INFO2 = {"WebServerMode":"Admin","Hostname":"plug_four","IPAddress":"10.0.129.4"} 18:30:57 MQT: tele/Plug4/INFO3 = {"RestartReason":"Software/System restart"} 18:30:57 MQT: stat/Plug4/RESULT = {"POWER":"ON"} 18:30:57 MQT: stat/Plug4/POWER = ON 18:30:58 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:30:58","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":1,"ApparentPower":2,"ReactivePower":2,"Factor":0.26,"Voltage":236,"Current":0.008}}}
18:30:58 UPP: Multicast (re)joined 18:30:59 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:30:59","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":0,"ApparentPower":2,"ReactivePower":2,"Factor":0.21,"Voltage":236,"Current":0.008}}} 18:31:00 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:31:00","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":0,"ApparentPower":2,"ReactivePower":2,"Factor":0.21,"Voltage":236,"Current":0.008}}} 18:31:01 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:31:01","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":0,"ApparentPower":2,"ReactivePower":2,"Factor":0.19,"Voltage":236,"Current":0.009}}} 18:31:01 MQT: tele/Plug4/STATE = {"Time":"2020-01-18T18:31:01","Uptime":"0T00:00:12","UptimeSec":12,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"VM1916490","BSSId":"B0:4E:26:12:35:44","Channel":4,"RSSI":76,"Signal":-62,"LinkCount":1,"Downtime":"0T00:00:06"}} 18:31:01 MQT: tele/Plug4/SENSOR = {"Time":"2020-01-18T18:31:01","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Period":0,"Power":0,"ApparentPower":2,"ReactivePower":2,"Factor":0.19,"Voltage":238,"Current":0.009}} 18:31:02 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:31:02","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Period":0,"Power":0,"ApparentPower":2,"ReactivePower":2,"Factor":0.19,"Voltage":238,"Current":0.009}}} 18:31:03 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:31:03","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":0,"ApparentPower":2,"ReactivePower":2,"Factor":0.21,"Voltage":238,"Current":0.008}}}
OK done Reset 3 and power off/on
serial log should be disabled by Tasmota by default when configured as power monitoring device. But who knows. If this is not working strange stuff could happen.
Info: Test device after a restart up for 30 minutes.
@Jason2866 These are the current log settings
@Jason2866 I have never changed the serial log setting so Tasmota didn't clear it when I set up the template.
If this device stays up, @ascillato has provided an effective remedial work around, but the issue isn't eliminated for other users. This could be something to disable serial logging for monitoring plugs (if that is the root cause ... not proven)
But sadly, it's just crashed again!
:52:38 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:52:38","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.43,"Voltage":235,"Current":0.022}}} 18:52:38 MQT: tele/Plug4/STATE = {"Time":"2020-01-18T18:52:38","Uptime":"0T00:20:12","UptimeSec":1212,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"VM1916490","BSSId":"B0:4E:26:12:35:44","Channel":4,"RSSI":70,"Signal":-65,"LinkCount":1,"Downtime":"0T00:00:06"}} 18:52:38 MQT: tele/Plug4/SENSOR = {"Time":"2020-01-18T18:52:38","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Period":0,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.45,"Voltage":235,"Current":0.022}} 18:52:39 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:52:39","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Period":0,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.43,"Voltage":235,"Current":0.022}}} 18:52:40 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:52:40","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.43,"Voltage":235,"Current":0.022}}} 18:52:41 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:52:41","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.43,"Voltage":235,"Current":0.022}}} 18:52:42 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:52:42","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.43,"Voltage":235,"Current":0.022}}} 18:52:43 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T18:52:43","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.100,"Yesterday":0.000,"Today":0.100,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.43,"Voltage":235,"Current":0.022}}} 18:52:44 MQT: stat/Plug4/STATUS8
@Jason2866 shall I try disabling the serial logging now?
Done
That didn't work either, so the only thing that stops it so far is tuning off mqtt logging Crashed again... and again a short while afterwards...
I have also noticed it takes a few seconds to get the time right.
00:00:00 CFG: Loaded from flash at F9, Count 43 00:00:00 Project tasmota Plug4 Version 8.1.0(tasmota)-2_6_1 00:00:00 WIF: Connecting to AP1 VM1916490 in mode 11N as plug_four... 00:00:05 WIF: Connected 00:00:05 HTP: Web server active on plug_four with IP address 10.0.129.4 00:00:05 UPP: Multicast (re)joined 00:00:06 MQT: Attempting connection... 00:00:06 MQT: Connected 00:00:06 MQT: tele/Plug4/LWT = Online (retained) 00:00:06 MQT: cmnd/Plug4/POWER = 00:00:06 MQT: tele/Plug4/INFO1 = {"Module":"Avatar UK 10A","Version":"8.1.0(tasmota)","FallbackTopic":"cmnd/DVES_C3926B_fb/","GroupTopic":"cmnd/tasmotas/"} 00:00:06 MQT: tele/Plug4/INFO2 = {"WebServerMode":"Admin","Hostname":"plug_four","IPAddress":"10.0.129.4"} 00:00:06 MQT: tele/Plug4/INFO3 = {"RestartReason":"Software/System restart"} 00:00:06 MQT: stat/Plug4/RESULT = {"POWER":"ON"} 00:00:06 MQT: stat/Plug4/POWER = ON 00:00:06 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:06","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Power":57,"ApparentPower":59,"ReactivePower":16,"Factor":0.96,"Voltage":237,"Current":0.250}}} 00:00:07 UPP: Multicast (re)joined 00:00:07 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:07","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Power":58,"ApparentPower":59,"ReactivePower":14,"Factor":0.97,"Voltage":237,"Current":0.250}}} 00:00:08 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:08","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Power":57,"ApparentPower":59,"ReactivePower":15,"Factor":0.97,"Voltage":237,"Current":0.250}}} 00:00:09 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:09","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Power":57,"ApparentPower":59,"ReactivePower":14,"Factor":0.97,"Voltage":237,"Current":0.250}}} 00:00:10 MQT: tele/Plug4/STATE = {"Time":"1970-01-01T00:00:10","Uptime":"0T00:00:12","UptimeSec":12,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":23,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"VM1916490","BSSId":"B0:4E:26:12:35:44","Channel":4,"RSSI":66,"Signal":-67,"LinkCount":1,"Downtime":"0T00:00:06"}} 00:00:10 MQT: tele/Plug4/SENSOR = {"Time":"1970-01-01T00:00:10","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Period":0,"Power":58,"ApparentPower":59,"ReactivePower":14,"Factor":0.97,"Voltage":237,"Current":0.250}} 00:00:10 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:10","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Period":0,"Power":58,"ApparentPower":59,"ReactivePower":14,"Factor":0.97,"Voltage":237,"Current":0.250}}} 00:00:11 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:11","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.114,"Yesterday":0.000,"Today":0.114,"Power":57,"ApparentPower":59,"ReactivePower":14,"Factor":0.97,"Voltage":237,"Current":0.250}}} 00:00:12 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"1970-01-01T00:00:12","ENERGY": Second crash
And again 00:00:00 CFG: Loaded from flash at F7, Count 45 00:00:00 Project tasmota Plug4 Version 8.1.0(tasmota)-2_6_1 00:00:00 WIF: Connecting to AP1 VM1916490 in mode 11N as plug_four... 00:00:05 WIF: Connected 00:00:05 HTP: Web server active on plug_four with IP address 10.0.129.4 00:00:05 UPP: Multicast (re)joined 19:19:13 MQT: Attempting connection... 19:19:13 MQT: Connected 19:19:13 MQT: tele/Plug4/LWT = Online (retained) 19:19:13 MQT: cmnd/Plug4/POWER = 19:19:13 MQT: tele/Plug4/INFO1 = {"Module":"Avatar UK 10A","Version":"8.1.0(tasmota)","FallbackTopic":"cmnd/DVES_C3926B_fb/","GroupTopic":"cmnd/tasmotas/"} 19:19:13 MQT: tele/Plug4/INFO2 = {"WebServerMode":"Admin","Hostname":"plug_four","IPAddress":"10.0.129.4"} 19:19:13 MQT: tele/Plug4/INFO3 = {"RestartReason":"Hardware Watchdog"} 19:19:13 MQT: stat/Plug4/RESULT = {"POWER":"ON"} 19:19:13 MQT: stat/Plug4/POWER = ON 19:19:13 MQT: stat/Plug4/STATUS8 = {"StatusSNS":{"Time":"2020-01-18T19:19:13","ENERGY":{"TotalStartTime":"2020-01-18T13:33:30","Total":0.116,"Yesterday":0.000,"Today":0.116,"Power":2,"ApparentPower":5,"ReactivePower":5,"Factor":0.42,"Voltage":237,"Current":0.022}}} 19:19:14 UPP: Multicast (re)joined
3 Different restart reasons!
Ok. As this thread has become very long. Let's summarize. You did a reset 6, a reset 3 and a power cycle and that didn't solve your issue right? As long as you have mqtt log level set to 2, you have restarts, right? And if you set mqtt log level to 0 you don't have any restart and everything works fine right?
@ascillato Yes, I also tried setting the serial log to 0. I will now set mqtt log to 0 to see if it stabilises again
done
Ok. Please, restart your device in order to start clean for testing. Thanks.
It's been up for 40 minutes, do you want to wait another 20 for the full hour or restart now?
My test device is running without a issue. So if there is a problem, it is "just" your decvice or this type of device.
Possibly the type of device, as I have had two of them do it.
OK that's a solid hour, I will restart it
Restarted
Possibly a memory leak?
Possibly a shitty model like Obi Socket 2.
Please be sure to review the code of conduct and be respectful of other users. Keep in mind, this repository uses the Contributor Covenant.
I don't think the status of this should be awaiting feedback. I also don't see how a software functionality parameter related symptom can be related to the quality of the hardware build, unless there is faulty memory or a processor with failing op codes or some residual code remains from the oem. I could understand that analysis if the fault related to peripheral hardware.
Well, this issue is not as simple as it looks.
Watchdogs are "normally" caused by endless loops. In this case, where we can assume the code is stable enough, the loops are probably caused by networking wait states in UDP (your Wemo emulation using uPnP too) and TCP (mqtt with additional mqttlogging). As you request mqtt data every second there is a lot going on within the tiny box.
In addition to your mqtt requests, uPnP data has to be services at irregular intervals. Depending on your network this can be heavy considering that routers, Sonos and Chromecasts tend to request tens of them per second. The Ardiuno core tries to save UDP requests in core and waits for Tasmota to service them. Tasmota on the other hand contains code to drop requests as they flood in to keep buffering at a minimum.
It would be nice to know if your device still watchdog restarts if you disable emulation while keeping mqtt logging enabled.
On a side note I've tried to emulate your situation with a similar device, wemo emulation and mqttlogging enabled and hammering mqtt requests every 0.6 second to it but until now no watchdog experienced. Find below the simple bash script:
#!/bin/bash
SLEEP=0.6
TOPIC=digoo
MAXCNT=1000
for (( c=1; c<=$MAXCNT; c++ ))
do
mosquitto_pub -t cmnd/$TOPIC/status -m 8
sleep $SLEEP
done
You may also want to upgrade your version from 8.1.0 release to development version 8.1.0.4 which contains some fixes in both uPnP and mqqt logging.
Theo, it's nice to talk to a grown up who understands in depth how things work and offers rational fact based hypotheses. I didn't know what the WeMo emulation was, but I have just read up on it. In terms of the environment in my house, I do have an Echo dot, but I didn't issue any commands to it during yesterday, and I don't have a Sonos. I do have two Chromo cast devices, one for video, the other for audio, neither were used yesterday. I have Node-Red polling 5 plugs, InfluxDB, recording the data and Grafana plotting graphs. Plug4 is currently plugged into my fridge to collect energy data, I am happy to do experiments that don't involve powering it off, or losing the network connection for any length of time as I want to get a full day's view of its consumption, restarts don't have a significant effect. Re-flashing at this stage would probably lose some data. What effect will turning off the Wemo emulation have (apart from making it inaccessible to Alexa (which I don't care about)?
@gjwo
it's nice to talk to a grown up who understands in depth how things work and offers rational fact based hypotheses.
If you are looking for a better way to alienate anybody trying to help you, you will not find it.
I do have two Chromo cast devices, one for video, the other for audio, neither were used yesterday.
If you mean by not using they are NOT connected to the network then they won't "pollute" your network. If you meant you're not using the devices but they are still connected to your network then they "pollute" your network with uPnP messages looking for devices they may want to control.
Disabling Wemo (or any emulation) stops Tasmota from listen for these messages and frees resources.
To see what's going on enable weblog 4 and enjoy all kinds of uPnP packet information:
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
13:24:20 UDP: Packet (199)
OK I need to go out for a couple of hours, but I will disable wemo and enable mqtt logging now before I go and post the evidence
No resets overnight
All parameters changed before the restart caused by changing the emulation
Great to know that now it is working for you. Closing issue.
Looks like that hasn't helped, many restarts
@ascillato2 it hasn't helped please reopen the issue, overnight mqtt logging was disabled.
Let's call it a day. In your case do not use mqttlog on these devices.
Mine ran for hours just fine.
OK I will keep an eye out for the next release as it is easy for me to reproduce the issue, at least we have eliminated some potential causes on this thread.
PROBLEM DESCRIPTION
A clear and concise description of what the problem is. If the Mqtt logging level is set to "2 Info" from the default "0 None" the device will reboot every few minutes with the the restart reason "Software Watchdog"
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Rules output here:
STATUS 0 output here: 12:39:04 CMD: Status 0 12:39:04 MQT: stat/Plug4/STATUS = {"Status":{"Module":0,"FriendlyName":["Plug 4"],"Topic":"Plug4","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}} 12:39:04 MQT: stat/Plug4/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"tasmotas","OtaUrl":"http://thehackbox.org/tasmota/release/tasmota.bin","RestartReason":"Software Watchdog","Uptime":"0T00:58:18","StartupUTC":"2020-01-18T10:40:46","Sleep":50,"CfgHolder":4617,"BootCount":931,"SaveCount":989,"SaveAddress":"F9000"}} 12:39:04 MQT: stat/Plug4/STATUS2 = {"StatusFWR":{"Version":"8.1.0(tasmota)","BuildDateTime":"2019-12-25T12:33:25","Boot":31,"Core":"2_61","SDK":"2.2.2-dev(38a443e)","Hardware":"ESP8266EX","CR":"349/699"}} 12:39:04 MQT: stat/Plug4/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["VM1916490",""],"TelePeriod":300,"Resolution":"55A180C0","SetOption":["00008009","2805C8000100060000005A00000000000000","00000000","00000000"]}} 12:39:04 MQT: stat/Plug4/STATUS4 = {"StatusMEM":{"ProgramSize":566,"Free":436,"Heap":25,"ProgramFlashSize":1024,"FlashSize":1024,"FlashChipId":"144068","FlashMode":3,"Features":["00000809","8FDAE397","043683A0","22B617CD","01001BC0","00007881"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,29","Sensors":"1,2,3,4,5,6,7,8,9,10,14,15,17,18,20,22,26,34"}} 12:39:04 MQT: stat/Plug4/STATUS5 = {"StatusNET":{"Hostname":"PLUG-FOUR","IPAddress":"10.0.129.4","Gateway":"10.0.128.1","Subnetmask":"255.255.252.0","DNSServer":"10.0.128.1","Mac":"A4:CF:12:C3:92:6B","Webserver":2,"WifiConfig":4}} 12:39:04 MQT: stat/Plug4/STATUS6 = {"StatusMQT":{"MqttHost":"10.0.128.2","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_C3926B","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":30}} 12:39:04 MQT: stat/Plug4/STATUS7 = {"StatusTIM":{"UTC":"Sat Jan 18 11:39:04 2020","Local":"Sat Jan 18 12:39:04 2020","StartDST":"Sun Mar 29 02:00:00 2020","EndDST":"Sun Oct 25 03:00:00 2020","Timezone":"+01:00","Sunrise":"08:36","Sunset":"17:24"}} 12:39:05 MQT: stat/Plug4/STATUS9 = {"StatusPTH":{"PowerDelta":20,"PowerLow":2,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}} 12:39:05 MQT: stat/Plug4/STATUS10 = {"StatusSNS":{"Time":"2020-01-18T12:39:05","ENERGY":{"TotalStartTime":"2020-01-02T20:20:28","Total":4.872,"Yesterday":0.150,"Today":0.000,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":239,"Current":0.000}}} 12:39:05 MQT: stat/Plug4/STATUS11 = {"StatusSTS":{"Time":"2020-01-18T12:39:05","Uptime":"0T00:58:19","UptimeSec":3499,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"VM1916490","BSSId":"B0:4E:26:12:35:44","Channel":4,"RSSI":58,"Signal":-71,"LinkCount":1,"Downtime":"0T00:00:06"}}}
NB This is after reseting Mqtt log level to 0
Console output here:
See High boot count!