### PROBLEM DESCRIPTION
My Nous A1T smart plug, running Tasmota, restarts every …20 minutes due to an exception. This issue is causing my threshold sensors in Home Assistant to intermittently switch to "unknown" because the source sensor (connected to the smart plug) becomes unavailable during the restart.
### REQUESTED INFORMATION
_Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!_
- [X] Read the [Contributing Guide and Policy](https://github.com/arendst/Tasmota/blob/development/CONTRIBUTING.md) and [the Code of Conduct](https://github.com/arendst/Tasmota/blob/development/CODE_OF_CONDUCT.md)
- [X] Searched the problem in [issues](https://github.com/arendst/Tasmota/issues)
- [X] Searched the problem in [discussions](https://github.com/arendst/Tasmota/discussions)
- [X] Searched the problem in the [docs](https://tasmota.github.io/docs/FAQ)
- [X] Searched the problem in the [chat](https://discord.gg/Ks2Kzd4)
- [X] Problem is not scripter related, in this case open a discussion and tag gemu2015
- [X] Device used (e.g., Sonoff Basic): Nous A1T Smart Plug
- [ ] Tasmota binary firmware version number used: 14.5.0
- [X] Pre-compiled
- [ ] Self-compiled
- [X] Flashing tools used: OTA
- [ ] Provide the output of command: `Backlog Template; Module; GPIO 255`:
```lua
Configuration output here:
12:26:29.084 CMD: Backlog Template; Module; GPIO 255
12:26:29.086 SRC: WebConsole from 192.168.100.61
12:26:29.090 CMD: Grp 0, Cmd 'BACKLOG', Idx 1, Len 26, Pld -99, Data 'Template; Module; GPIO 255'
12:26:29.166 SRC: Backlog
12:26:29.169 CMD: Grp 0, Cmd 'TEMPLATE', Idx 1, Len 0, Pld -99, Data ''
12:26:29.175 MQT: stat/tasmota_83522B/RESULT = {"NAME":"NOUS A1T","GPIO":[32,0,0,0,2720,2656,0,0,2624,320,224,0,0,0],"FLAG":0,"BASE":49}
12:26:29.381 SRC: Backlog
12:26:29.384 CMD: Grp 0, Cmd 'MODULE', Idx 1, Len 0, Pld -99, Data ''
12:26:29.389 MQT: stat/tasmota_83522B/RESULT = {"Module":{"0":"NOUS A1T"}}
12:26:29.633 SRC: Backlog
12:26:29.637 CMD: Grp 0, Cmd 'GPIO', Idx 1, Len 3, Pld 255, Data '255'
12:26:29.647 MQT: stat/tasmota_83522B/RESULT = {"GPIO0":{"32":"Button1"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"2720":"BL0937 CF"},"GPIO5":{"2656":"HLWBL CF1"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"2624":"HLWBL SEL_i"},"GPIO13":{"320":"Led_i1"},"GPIO14":{"224":"Relay1"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"}}
12:26:33.826 WIF: Checking connection...
12:26:35.221 MQT: tele/tasmota_83522B/STATE = {"Time":"2025-03-03T12:26:35","Uptime":"0T00:09:46","UptimeSec":586,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"WIFI@HOME","BSSId":"44:D9:E7:F7:5D:9A","Channel":11,"Mode":"11n","RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:04"}}
12:26:35.252 MQT: tele/tasmota_83522B/SENSOR = {"Time":"2025-03-03T12:26:35","ENERGY":{"TotalStartTime":"2024-01-02T14:13:11","Total":105.563,"Yesterday":0.000,"Today":0.000,"Period":0.00,"Power":0.00,"ApparentPower":0.00,"ReactivePower":0.00,"Factor":0.00,"Voltage":0.00,"Current":0.000}}
12:26:45.201 MQT: tele/tasmota_83522B/STATE = {"Time":"2025-03-03T12:26:45","Uptime":"0T00:09:56","UptimeSec":596,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"WIFI@HOME","BSSId":"44:D9:E7:F7:5D:9A","Channel":11,"Mode":"11n","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:04"}}
12:26:45.233 MQT: tele/tasmota_83522B/SENSOR = {"Time":"2025-03-03T12:26:45","ENERGY":{"TotalStartTime":"2024-01-02T14:13:11","Total":105.563,"Yesterday":0.000,"Today":0.000,"Period":0.00,"Power":0.00,"ApparentPower":0.00,"ReactivePower":0.00,"Factor":0.00,"Voltage":0.00,"Current":0.000}}
12:26:49.227 WIF: Sending Gratuitous ARP
```
- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
Rules output here:
12:21:48.330 CMD: Backlog Rule1; Rule2; Rule3
12:21:48.332 SRC: WebConsole from 192.168.100.61
12:21:48.336 CMD: Grp 0, Cmd 'BACKLOG', Idx 1, Len 19, Pld -99, Data 'Rule1; Rule2; Rule3'
12:21:48.410 SRC: Backlog
12:21:48.413 CMD: Grp 0, Cmd 'RULE', Idx 1, Len 0, Pld -99, Data ''
12:21:48.419 MQT: stat/tasmota_83522B/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
12:21:48.626 SRC: Backlog
12:21:48.629 CMD: Grp 0, Cmd 'RULE', Idx 2, Len 0, Pld -99, Data ''
12:21:48.636 MQT: stat/tasmota_83522B/RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
12:21:48.876 SRC: Backlog
12:21:48.879 CMD: Grp 0, Cmd 'RULE', Idx 3, Len 0, Pld -99, Data ''
12:21:48.887 MQT: stat/tasmota_83522B/RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
12:21:49.227 WIF: Sending Gratuitous ARP
```
- [ ] Provide the output of this command: `Status 0`:
```lua
STATUS 0 output here:
12:19:39.469 CMD: STATUS 0
12:19:39.471 SRC: WebConsole from 192.168.100.61
12:19:39.474 CMD: Grp 0, Cmd 'STATUS', Idx 1, Len 2, Pld 0, Data '0 '
12:19:39.482 MQT: stat/tasmota_83522B/STATUS = {"Status":{"Module":0,"DeviceName":"tasmota_nousa1t_5","FriendlyName":["tasmota_nousa1t_5"],"Topic":"tasmota_83522B","ButtonTopic":"0","Power":"0","PowerLock":"0","PowerOnState":3,"LedState":0,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
12:19:39.522 MQT: stat/tasmota_83522B/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:02:50","StartupUTC":"2025-03-03T11:16:49","Sleep":50,"CfgHolder":4617,"BootCount":1780,"BCResetTime":"2024-01-02T14:13:11","SaveCount":2849,"SaveAddress":"F9000"}}
12:19:39.560 MQT: stat/tasmota_83522B/STATUS2 = {"StatusFWR":{"Version":"14.5.0(release-tasmota)","BuildDateTime":"2025-02-18T14:34:10","Boot":31,"Core":"2_7_8","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"393/699"}}
12:19:39.579 MQT: stat/tasmota_83522B/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":4,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["WIFI@HOME",""],"TelePeriod":10,"Resolution":"559580C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004000","00000000"]}}
12:19:39.613 MQT: stat/tasmota_83522B/STATUS4 = {"StatusMEM":{"ProgramSize":652,"Free":348,"Heap":23,"ProgramFlashSize":1024,"FlashSize":1024,"FlashChipId":"1460C4","FlashFrequency":40,"FlashMode":"DOUT","Features":["0809","8F9AC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","54000020","00000080","00000000"],"Drivers":"1,2,3,!4,!5,!6,7,!8,9,10,12,!16,!18,!19,!20,!21,!22,!24,26,!27,29,!30,!35,!37,!45,62,!68","Sensors":"1,2,3,4,5,6","I2CDriver":"7"}}
12:19:39.654 MQT: stat/tasmota_83522B/STATUS5 = {"StatusNET":{"Hostname":"tasmota-83522B-4651","IPAddress":"192.168.101.37","Gateway":"192.168.100.254","Subnetmask":"255.255.254.0","DNSServer1":"192.168.100.246","DNSServer2":"0.0.0.0","Mac":"34:94:54:83:52:2B","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
12:19:39.679 MQT: stat/tasmota_83522B/STATUS6 = {"StatusMQT":{"MqttHost":"mqtt.mulatz.lan","MqttPort":1883,"MqttClientMask":"tasmota_nousa1t_5","MqttClient":"tasmota_nousa1t_5","MqttUser":"tasmota_nousa1t_5","MqttCount":1,"MqttTLS":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
12:19:39.706 MQT: stat/tasmota_83522B/STATUS7 = {"StatusTIM":{"UTC":"2025-03-03T11:19:39Z","Local":"2025-03-03T12:19:39","StartDST":"2025-03-30T02:00:00","EndDST":"2025-10-26T03:00:00","Timezone":"+01:00","Sunrise":"07:27","Sunset":"18:36"}}
12:19:39.725 MQT: stat/tasmota_83522B/STATUS9 = {"StatusPTH":{"PowerDelta":0,"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0,"MaxPower":0,"MaxPowerHold":10,"MaxPowerWindow":30,"MaxEnergy":0,"MaxEnergyStart":0}}
12:19:39.753 MQT: stat/tasmota_83522B/STATUS10 = {"StatusSNS":{"Time":"2025-03-03T12:19:39","ENERGY":{"TotalStartTime":"2024-01-02T14:13:11","Total":105.563,"Yesterday":0.000,"Today":0.000,"Power":0.00,"ApparentPower":0.00,"ReactivePower":0.00,"Factor":0.00,"Voltage":0.00,"Current":0.000}}}
12:19:39.777 MQT: stat/tasmota_83522B/STATUS11 = {"StatusSTS":{"Time":"2025-03-03T12:19:39","Uptime":"0T00:02:50","UptimeSec":170,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"WIFI@HOME","BSSId":"44:D9:E7:F7:5D:9A","Channel":11,"Mode":"11n","RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:04"}}}
```
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
Console output here:
no specific log entry captured - it just starts over like this -->
12:38:03.005 SRC: MQTT
12:38:03.007 CMD: Grp 0, Cmd 'STATUS', Idx 1, Len 2, Pld 10, Data '10'
12:38:03.018 MQT: stat/tasmota_83522B/STATUS10 = {"StatusSNS":{"Time":"2025-03-03T12:38:03","ENERGY":{"TotalStartTime":"2024-01-02T14:13:11","Total":105.563,"Yesterday":0.000,"Today":0.000,"Power":0.00,"ApparentPower":0.00,"ReactivePower":0.00,"Factor":0.00,"Voltage":0.00,"Current":0.000}}}
12:38:03.055 SRC: MQTT
12:38:03.058 CMD: Grp 0, Cmd 'STATUS', Idx 1, Len 1, Pld 1, Data '1'
12:38:03.064 MQT: stat/tasmota_83522B/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Exception","Uptime":"0T00:00:07","StartupUTC":"2025-03-03T11:37:56","Sleep":50,"CfgHolder":4617,"BootCount":1780,"BCResetTime":"2024-01-02T14:13:11","SaveCount":2849,"SaveAddress":"F9000"}}
12:38:03.106 SRC: MQTT
12:38:03.109 CMD: Grp 0, Cmd 'STATUS', Idx 1, Len 2, Pld 11, Data '11'
12:38:03.118 MQT: stat/tasmota_83522B/STATUS11 = {"StatusSTS":{"Time":"2025-03-03T12:38:03","Uptime":"0T00:00:07","UptimeSec":7,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":130,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"WIFI@HOME","BSSId":"44:D9:E7:F7:5D:9A","Channel":11,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:04"}}}
12:38:04.193 QPC: Reset
12:38:06.242 APP: Boot Count 1781
12:38:06.249 MQT: tele/tasmota_83522B/STATE = {"Time":"2025-03-03T12:38:06","Uptime":"0T00:00:10","UptimeSec":10,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"WIFI@HOME","BSSId":"44:D9:E7:F7:5D:9A","Channel":11,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:04"}}
12:38:06.282 MQT: tele/tasmota_83522B/SENSOR = {"Time":"2025-03-03T12:38:06","ENERGY":{"TotalStartTime":"2024-01-02T14:13:11","Total":105.563,"Yesterday":0.000,"Today":0.000,"Period":0.00,"Power":0.00,"ApparentPower":0.00,"ReactivePower":0.00,"Factor":0.00,"Voltage":0.00,"Current":0.000}}
12:38:06.337 CFG: Saved to flash at F8, Count 2850, Bytes 4096
12:38:11.237 MQT: tasmota/discovery/34945483522B/config = {"ip":"192.168.101.37","dn":"tasmota_nousa1t_5","fn":["tasmota_nousa1t_5",null,null,null,null,null,null,null],"hn":"tasmota-83522B-4651","mac":"34945483522B","md":"NOUS A1T","ty":0,"if":0,"cam":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"14.5.0","t":"tasmota_83522B","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":0,"lt_st":0,"bat":0,"dslp":0,"sho":[],"sht":[],"ver":1} (retained)
12:38:11.249 MQT: tasmota/discovery/3
```
### TO REPRODUCE
* Set up a Nous A1T smart plug with the latest Tasmota firmware.
* Observe the device for approximately 20 minutes.
* The device will restart due to an exception, causing connected sensors to become unavailable.
### EXPECTED BEHAVIOUR
The smart plug should remain stable without restarting, and the connected sensors should maintain their status without switching to "unknown".
### SCREENSHOTS
nothing special to show
### ADDITIONAL CONTEXT
The issue seems to be tied to a recurring exception that forces the device to restart every 18-21 minutes. This behavior is consistent across multiple Nous A1T devices running Tasmota. The restarts are causing disruptions in my Home Assistant setup, particularly with threshold sensors that rely on data from the smart plug.
**(Please, remember to close the issue when the problem has been addressed)**