Here too broke one SonOff basic WiFi button and fixed it using a bit of Gorilla glue at the corners of the metal cover of the switch. Just utilize a toothpick to apply the glue and let it set before touching the stalk of the switch.
You can flash firmware OTA fine except now it is a two part flash because of the size of the base firmware relating to the Tasmota firmware builds. OTA load the minimal build then the final build of the firmware.
I also noticed with the upgrading of firmware revisions the SonOff basic Wifi device is losing its SSID / password configuration. Most likely this is due to a shift of the area in flash where the information is written.
Relating to the button presses Tasmota has published an instructional document here relating to button usage:
The main button on a Sonoff-Tasmota flashed module provides the following functionalities:
- 1 short press: Toggles the relay either directly or by sending a
MQTT message like cmnd/sonoff/POWER1 ON. This will blink the LED twice
and sends a MQTT status message like stat/sonoff/POWER1 ON. If
cmnd/sonoff/ButtonRetain on has been used the MQTT message will also
contain the MQTT retain flag.
- 2 short presses: Toggles the relay 2 if available on the device
like Sonoff Dual. This will blink the LED twice and sends a MQTT status
message like stat/sonoff/POWER2 on.
- 3 short presses: Start Wifi smartconfig allowing for SSID and
Password configuration using an Android mobile phone with the ESP8266
SmartConfig app. The LED will blink during the config period. A single
button press during this period will abort and restart sonoff.
- 4 short presses: Start Wifi manager providing an Access Point
with IP address 192.168.4.1 and a web server allowing the configuration
of Wifi. The LED will blink during the config period. A single button
press during this period will abort and restart sonoff.
- 5 short presses: Start Wifi Protected Setup (WPS) allowing for
SSID and Password configuration using the router's WPS button or
webpage. The LED will blink during the config period. A single button
press during this period will abort and restart sonoff.
- 6 short presses: Will restart the module
- 7 short presses: Start OTA download of firmware. The green LED is lit during the update
Pressing the button for over forty seconds: Reset settings to defaults as defined in user_config.h and restarts the device
The button is connected to GPIO 0 (NodeMCU pin D3)
Current SonOff basic WiFi project here is:
1 - SonOff basic WiFi - cutting the high voltage traces to use relay in a low voltage scenario
2 - wiring up GPIO 4 (need good solder skills)
3 - using the SonOff basic Wifi device as a combination garage door opener open/close sensor, garage door opener button, temperature sensor (DS18B20) and PIR using Mosquitto which will work fine with open source automation software and / or using Node Red.
Will document above with pictures here on the forum.