tony-fav / tasmota-blerry

GNU General Public License v3.0
96 stars 29 forks source link

SwitchBot TH crashing esp32 c3 - switchbot_plugmini_W1901400 #57

Closed edestecd closed 1 year ago

edestecd commented 2 years ago

ref #47 I am using the blerry dev branch and the development branch of Tasmota on these: https://templates.blakadder.com/switchbot_plugmini_W1901400.html

ATCpvvx alone seems to work fine on one plug and not cause issues but on another with just one WoSensorTH it will last up to an hour before freezing and becoming completely unresponsive. The button on the side to toggle the plug relay is dead and no http or anything. Pulling the plug out of the outlet and replugging it is the only way to bring it back... It then runs for a random time not more than an hour and repeat.

I am starting to suspect exclusively WoSensorTH as I've had others with ATCpvvx and WP6003 with no issue.

What else can I provide to help troubleshoot? turn on berry debug? send to syslog?

edestecd commented 2 years ago

What I have tried:

SO57 0 - no change Use standard build options for bluetooth including USE_MI_ESP32 Use build options here: https://github.com/tony-fav/tasmota-blerry/blob/dev/tasmota32_firmware/user_config_override.h

tony-fav commented 2 years ago

Lots of reports of instability on the latest dev of Tasmota. Folks in discord have been pointing to this bin https://github.com/tasmota/install/raw/0533fd275fad9f4f3bf8350a6afdb9c6176d6879/firmware/unofficial/tasmota32c3-bluetooth.bin https://discord.com/channels/530777070435827722/994727833006002177/1014642142389469184

My primary reaction is that you may be asking a lot out of the little ESP processor to do regular passive BLE, active scanning BLE (the WoSensor's), and polling (WP6003).

Can you try the linked binary and see if you still have the issues?

edestecd commented 2 years ago

At first I had one plug doing all three sensors but now I have only one sensor per plug and the ones that are failing seem to be tied to a single WoSensor

tony-fav commented 2 years ago

Okay. So please try that binary. Sometimes ESP core updates can cause a lot of issues coming from the closed source parts of the SDK.

edestecd commented 2 years ago

III suspect that binary is built from this? https://github.com/arendst/Tasmota/blob/152710b7ff373f2499e0ca2f1b42a33edf0aaf98/platformio_tasmota_cenv_sample.ini#L24

tony-fav commented 2 years ago

The point is the commit level it's at relative to Tasmota not the build environment.

https://github.com/arendst/Tasmota/tree/5e1eead9878b205949e368b57857394716c3eff8 <-- this is the repo at a commit right before an arduino core update that seems to have some issues.

edestecd commented 2 years ago

Awesome thanks I can try a build at that commit. Also I'm new to discord and don't seem to have access to the link or channel you provided above.

tony-fav commented 2 years ago

https://discord.gg/hK9z4eQM ping @ tony when you join :-)