<!-- Thanks for reporting a problem for this project. READ THIS FIRST:
This i…ssue template is meant to REPORT Tasmota software PROBLEMS ONLY
Please DO NOT OPEN AN ISSUE:
- If your Tasmota version is not the latest from the development branch, please update your device before submitting your issue. Your problem might already be solved. The latest precompiled binaries of Tasmota can be downloaded from http://ota.tasmota.com/tasmota/
- If you have an issue when flashing was done via Tuya Convert, please address it to Tuya Convert Team
- If your issue is a flashing issue, please address it to the [Tasmota Support Chat](https://discord.gg/Ks2Kzd4)
- If your issue is compilation problem, please address it to the [Tasmota Support Chat](https://discord.gg/Ks2Kzd4)
- If your issue has been addressed before (i.e., duplicated issue), please ask in the original issue
- If your issue is a Wi-Fi problem or MQTT problem, please try the steps provided in the [FAQ](https://tasmota.github.io/docs/FAQ) and [Troubleshooting](https://tasmota.github.io/docs/Troubleshooting)
Please take a few minutes to complete the requested information below. Our ability to provide assistance is greatly hampered without it. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help the volunteers providing the assistance to you to reduce the time required to help you.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
-->
### PROBLEM DESCRIPTION
Athom power switch model PG04V2 with Tasmota 12.2.0 restarts with reason "Software Watchdog".
The restarts appear to be random and can be minutes or hours between.
The relay is heard to click andf there can be a very quick power outage.
I have reported to Athom Support via their forum and they suggested a downgrade to v10.1 (which is what they were supplied with).
So far the device downgraded has held without restarting for 6 hours.
One other possible relevent information is that I monitor the devices with TasmoAdmin, in case that querying Tasmota is what is causing the watchdog timeout.
### 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] Device used (e.g., Sonoff Basic): Athom Plug V2
- [x] Tasmota binary firmware version number used: 12.2.0
- [ x] Pre-compiled
- [ ] Self-compiled
- [x] Flashing tools used: OTA
- [x] Provide the output of command: `Backlog Template; Module; GPIO 255`:
```lua
20:43:02.192 CMD: Backlog Template; Module; GPIO 255
20:43:02.469 MQT: stat/tasmota-sw04/RESULT = {"Module":{"0":"Athom Plug V2"}}
20:43:02.676 MQT: stat/tasmota-sw04/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"3104":"CSE7766 Rx"},"GPIO4":{"0":"None"},"GPIO5":{"32":"Button1"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"224":"Relay1"},"GPIO13":{"576":"LedLink_i"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"}}
```
- [x] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
Rules output here:
20:54:02.821 MQT: stat/tasmota-sw04/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
20:54:03.023 MQT: stat/tasmota-sw04/RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
20:54:03.224 MQT: stat/tasmota-sw04/RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
```
- [x] Provide the output of this command: `Status 0`:
```lua
STATUS 0 output here:
20:54:46.001 CMD: status 0
20:54:46.008 MQT: stat/tasmota-sw04/STATUS = {"Status":{"Module":0,"DeviceName":"tasmota-sw04","FriendlyName":["tasmota-sw04"],"Topic":"tasmota-sw04","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,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
20:54:46.014 MQT: stat/tasmota-sw04/STATUS1 = {"StatusPRM":{"Baudrate":4800,"SerialConfig":"8E1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software Watchdog","Uptime":"0T01:07:53","StartupUTC":"2022-10-28T18:46:53","Sleep":50,"CfgHolder":4617,"BootCount":49,"BCResetTime":"2022-10-22T19:56:50","SaveCount":113,"SaveAddress":"F8000"}}
20:54:46.020 MQT: stat/tasmota-sw04/STATUS2 = {"StatusFWR":{"Version":"12.2.0(tasmota)","BuildDateTime":"2022-10-17T08:39:23","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"435/699"}}
20:54:46.025 MQT: stat/tasmota-sw04/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"192.168.1.180","LogPort":514,"SSId":["SSID",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00208009","0405C80001000680003C5A0A002800000000","08000080","00806000","00004000","00000000"]}}
20:54:46.038 MQT: stat/tasmota-sw04/STATUS4 = {"StatusMEM":{"ProgramSize":626,"Free":376,"Heap":21,"ProgramFlashSize":1024,"FlashSize":2048,"FlashChipId":"1540A1","FlashFrequency":40,"FlashMode":"DOUT","Features":["00000809","8F9AC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","54000020","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","Sensors":"1,2,3,4,5,6"}}
20:54:46.044 MQT: stat/tasmota-sw04/STATUS5 = {"StatusNET":{"Hostname":"tasmota-sw04","IPAddress":"192.168.1.74","Gateway":"192.168.1.254","Subnetmask":"255.255.255.0","DNSServer1":"208.67.220.220","DNSServer2":"208.67.222.222","Mac":"4C:EB:D6:8F:60:05","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
20:54:46.048 MQT: stat/tasmota-sw04/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.19","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_8F6005","MqttUser":"homeassistant","MqttCount":3,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
20:54:46.054 MQT: stat/tasmota-sw04/STATUS7 = {"StatusTIM":{"UTC":"2022-10-28T19:54:46","Local":"2022-10-28T20:54:46","StartDST":"2022-03-27T02:00:00","EndDST":"2022-10-30T03:00:00","Timezone":"+01:00","Sunrise":"07:30","Sunset":"17:36"}}
20:54:46.057 MQT: stat/tasmota-sw04/STATUS9 = {"StatusPTH":{"PowerDelta":[0,0,0],"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}}
20:54:46.067 MQT: stat/tasmota-sw04/STATUS10 = {"StatusSNS":{"Time":"2022-10-28T20:54:46","ENERGY":{"TotalStartTime":"2022-10-22T19:56:50","Total":0.409,"Yesterday":0.000,"Today":0.000,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":249,"Current":0.000}}}
20:54:46.076 MQT: stat/tasmota-sw04/STATUS11 = {"StatusSTS":{"Time":"2022-10-28T20:54:46","Uptime":"0T01:07:53","UptimeSec":4073,"Heap":21,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":3,"POWER":"ON","Wifi":{"AP":1,"SSId":"SSID","BSSId":"50:C7:BF:14:A0:42","Channel":1,"Mode":"11n","RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:03"}}}
20:54:46.081 MQT: stat/tasmota-sw04/STATUS12 = {"StatusSTK":{"Exception":4,"Reason":"Software Watchdog","EPC":["40003b53","00000000","00000000"],"EXCVADDR":"00000000","DEPC":"00000000"}}
```
- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
Console output here:
Issue is random. I will try to capture and update here later.
```
### TO REPRODUCE
_Steps to reproduce the behavior:_
Random restarts experienced. No obvious trigger.
### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._
### SCREENSHOTS
_If applicable, add screenshots to help explain your problem._
### ADDITIONAL CONTEXT
_Add any other context about the problem here._
**(Please, remember to close the issue when the problem has been addressed)**