This guide is a part of Domoticz Tasmota: Control Sonoff without Internet and Yeti Tasmota: Control Sonoff without Internet Instantly which require firmware modification by upgrading official Sonoff firmware to opensource Sonoff Tasmota firmware. By installing Tasmota firmware, We’ll be able to achieve local control of our WiFi Smart Socket without internet.
Let’s have a look on the whole process briefly. First We’ll prepare our Sonoff S20 to make it ready for connecting it to our computer. Secondly, We’ll back the original firmware up and upload Sonoff Tasmota firmware using our computer and serial adapter. In last, We’ll configure our new firmware a little bit and our WiFi Smart Socket will be ready for use.
Contents:
- Sonoff S20 Firmware Modification
- – – – Step A – Dissembling
- – – – Step B – Programming Mode
- – – – Step C – Upload Firmware
- – – – Step D – Firmware Configuration
- – – – Step E – Reassembling
Sonoff S20 Firmware Modification:
Note: Always unplug the Sonoff device from AC Power Source before start working with it.
Step A – Dissembling:
Unscrew the three screws found on the rear side of Sonoff S20 using screw driver and lift the upper lid. Also remove two screws holding the PCB fixed inside. Take the PCB out carefully without pulling the wires connected to it.
Step B – Programming Mode:
Install a male or female header on holes given for programming the device by soldering it permanently for a firm connection. Header without soldering will result in loose connection and uploading may fail.
Fix the PCB inside enclosure and tighten the screws. Let’s have a look on to the pinout. First pin starts with arrow sign is VCC followed by RX, TX and GND (GND is first pin from LED side of header). Connect FTDI according to the following combinations.
FTDI | Sonoff S20 |
3.3V | VCC |
TX | RX |
RX | TX |
GND | GND |
Press button present on PCB and Plug the FTDI in to PC. Now micro-controller present in our Sonoff S20 i.e. ESP8266 will start in programming mode.
Step C – Upload Firmware:
Backup official firmware by following our guide Backup & Restore Official Firmware of Sonoff WiFi Smart Switches under Backup / Download Official Firmware section. After backup, download Sonoff-Tasmota Firmware and upload it according to Upload Official / Third Party Firmware.
Step D – Firmware Configuration:
By short pressing on board button four times, Sonoff Tasmota Firmware allows booting up Sonoff Smart Switches into Wifi Manager Mode providing an Access Point with IP address 192.168.4.1 to configure WiFi credentials. Connect to sonoff-XXXX network and configuration page will open in your browser. If it does not open into your browser automatically, open to http://192.168.4.1 into your favourite browser.
Connect Sonoff S20 to your WiFi network according to Configure WiFi Network Settings under Sonoff Tasmota Firmware and configure MQTT parameters by following the instructions given under Configure MQTT Settings under Sonoff Tasmota Firmware. Now Sonoff S20 can be accessed by visiting the IP address assigned to it by your WiFi router. Consult your router documentation on how to find the IP address of connected devices. You can also assign a static IP address to your Sonoff device by following instruction given under Set Static IP Address under Sonoff Tasmota Firmware section. By default web page access to Sonoff Tasmota Firmware is open and anyone connected to WiFi network can access to it. Let’s secure web access page by setting up Web Admin Password according to Configure Web Admin Password under Sonoff Tasmota Firmware. Change the module type according to Configure Module Type under Sonoff Tasmota Firmware otherwise Sonoff S20 may not work as expected.
Now You have completed almost all necessary configuration of Sonoff Tasmota. You can also set default Power on State which will be followed on Sonoff device restart, among ON, OFF and KEEP according to Configure Power On State After Boot Up. Correct Timezone and NTP Server configurations are necessary for timer related functions. However, It is recommended to configure NTP Server and Timezone according to instructions given in Configure NTP Server and Timezone.
Step E – Reassembling:
Now our Sonoff S20 is ready for the work. Reassemble Sonoff S20 by joining both lids carefully by holding lid with button on side below to avoid button fall off and tighten the screws back. Plug the Sonoff S20 into wall socket and voila!!. You can toggle any electronic gadget (10A max.) ON & OFF by visiting the IP address assigned to Sonoff S20 by router. But the smarter way to toggle a switch is discussed in our guide Domoticz Tasmota: Control Sonoff without Internet. Navigate to Step E – Connect & Control the devices to proceed further if you are already following the steps in our guide Domoticz Tasmota: Control Sonoff without Internet.
Now you can also control your Sonoff S20 directly using Yeti Smart Phone app. There is no need to establish your own Raspberry Pi server as Yeti connects to your Sonoff S20 directly using WiFi network. Follow our guide Yeti Tasmota: Control Sonoff without Internet Instantly for step by step procedure.