1. So you have the switch itself, it's powered on and Wi-Fi LED is blinking with blue. The connection scheme is:

2. Get an FTDI USB converter board, I got this one

3. Solder four pin-connectors to the Sonoff board, and connect the FTDI connector like this:
Sonoff board <-> FTDI
[GND] <-> [GND]
[TX] <-> [RX]
[RX] <-> [TX]
[VCC] <-> [VCC]
Don't forget to set the FTDI to the 3.3V mode!
Don't forget to remove the 220V from the Sonoff module!
4. Obtain the flash-tool for your PC architecture
https://github.com/nodemcu/nodemcu-flas ... 32/Release
https://github.com/nodemcu/nodemcu-flas ... 64/Release
set the corresponding COM port and the settings on the Advanced tab:
BAUDRATE: 115200
Flash Size: 1MByte
Flash speed: 40Mhz
SPI Mode: QIO
5. On the Config tab, set the two files as the source and memory address for flashing:
boot_v1.5.bin -------->0x00000
sonoff_th16_user1.1024.new.2.bin---->0x01000
For Sonoff TH10 model choose sonoff_th10_user1.1024.new.2.bin---->0x01000
6. On the Operation tab, set the correct COM port of your FTDI converter board.
7. Press and hold the button on the TH16, then connect the USB with your FTDI board. Click Flash, you should see the AP MAC and STA MAC values of your TH16 board, click Flash again, and the flashing process begins. (See this video to get a glue on this process...)
8. Once the flashing is complete, disconnect the TH16, and connect it to the 220V outlet. You should see the wi-fi AP called SUPLA-ESP8266********* nearby. Connect to it via http://192.168.4.1 address and configure what wireless network it should use. Click save, and recycle the 220V power. Now if it was connected to your wi-fi network correctly, you should see your sensor in your Supla Cloud account.