Sonoff SwitchMan M5-2C crashes #2191
Replies: 6 comments 11 replies
-
I compared one of the broken and one of the working switches I have. They probably came from different sellers as they are different HW revisions. The biggest difference is the ESP chip itself! The affected one uses ESP32-DOWD R2-V3 while the one that is working uses ESP32-DOWD V3 (no R2 here!). From what I understand they differ in the PSRAM size. Pictures: |
Beta Was this translation helpful? Give feedback.
-
Try adding Source: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf |
Beta Was this translation helpful? Give feedback.
-
Interesting find. Thank you @RavenSystem, I'll try that! |
Beta Was this translation helpful? Give feedback.
-
I applied it to all affected switches and updated everything to v12.10.4. I'll report back in 24 hours. |
Beta Was this translation helpful? Give feedback.
-
I'll wait another 24h to be sure as my APs updated overnight and I don't have full uptime, but so far so good! |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @RavenSystem! You saved me a lot of trouble. |
Beta Was this translation helpful? Give feedback.
-
Detailed steps to reproduce it
I have 31 Sonoff M5 switches at home - 11 of 1C, 12 of 2C and 8 of 3C. They are all connected to the two UniFi U6 Pro access points with very good signal and are running latest HAA v12.10.3.
About 6-8 of the 2C switches (always the same ones) are randomly crashing every 1-48 hours where they completely stop working for 5-20 minutes:
Power cycling by main breaker immediately reboots them and fixes the issue for next random amount of time. If not, the switch will usually reboot itself after 5-20 minutes (screenshot from UniFi Controller attached).
They were also crashing on older HAA v12.8 before I moved in and set up the Wi-Fi at home, so I doubt it's related to connectivity issues or recent changes. On older firmware I also noticed that sometimes the right button light (controlled by GPIO22) was not working after button press, even though the relay was functioning correctly, but I'm not seeing it now - could be related to esphome/issues#5085.
Things I tried:
I'm afraid it could be caused by a hardware issue, but I also found this post on Sonoff group that they released official firmware that fixed similar crashes: https://www.facebook.com/groups/ewelinkandsonoff/posts/1380550352511840/
MEPLHAA Script
I started with this config that on some of the 2C switches is working perfectly fine:
And after trying various tweaks I ended up with:
Used device
Sonoff SwitchMan M5-2C
HAA version
12.8-12.10.3
iOS/iPadOS version
17.1.2
Logs
Enabled network logs on affected switches. I hope it will catch anything before a crash.
EDIT: There is nothing useful in the network log. It just disappeared and appeared again:
Screen-shots or videos showing issue
Beta Was this translation helpful? Give feedback.
All reactions