sonoff S31 - stodev-com-br/Tasmota GitHub Wiki
The GND connection of the S31 is connected to the live AC wire. Connecting serial with your PC will fry your PC and will electrocute you.
DO NOT CONNECT ANY SENSOR TO THESE DEVICES. Only use them as designed.
The GPIOs on this device are connected to AC power, therefore it is not possible to safely add sensors or displays to it.
The S31 is pretty easy to take apart.
- Pry off the gray cover on the end.
- Slide off the two rounded corner pieces to reveal the 3 screws.
- Unscrew the 3 screws.
- Lift off the cover.
- There are no through holes. You can solder a piece of header or you can fabricate something using pogo pins and just hold it for the duration of the flashing process. But, be aware that can get tiring if you need to do it multiple times.
- The pads are labeled, you need VCC, RX, TX, GND. There are two others that also have RX and TX on them. The ones next to the GND pin are not used for flashing.
- Connect to your serial converter and 3V3.
- You need to press the switch (GPIO0) before applying power to put into bootloader mode.
For exact energy monitoring you might need to calibrate the device.
Tinkerman's review of Sonoff S31