Pop off gray cover
Slide out white slidy corner pieces
unscrew three exposed screws
disassemble main board
make a quick jig for flashing:
press the button and align the new jig to the sonoff’s pins
While connected, run the following two commands in order
python -m esptool --port /dev/ttyUSB0 erase_flash
python -m esptool --port /dev/ttyUSB0 write_flash -fm dout 0x0 Downloads/tasmota.bin
Find the tasmota device Wifi SSID, connect, and set up your home wifi
connect to the new ip address and configure further, from here
SetOption19 on
set up mqtt
For ESP32 devices, get the tasmota32.factory.bin
esptool.py --chip esp32 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_size detect 0x0 tasmota32.factory.bin
https://tasmota.github.io/docs/Commands/#control
Sonoff Specific:
Tasmota Documentation