-
Notifications
You must be signed in to change notification settings - Fork 2
Sonoff S2X
Sonoff S20 and Sonoff S26 are smart plugs, featuring one remotely controllable socket.
By default, they run Sonoff proprietary firmware.
The following models are available:
- S20
- S26
There aren't any significant technical differences between the two models.
Provisioning configuration name: espqtoggle/sonoff/s2x
.
- flash mode: QIO
- flash frequency: 40MHz
Number | Function | Remarks |
---|---|---|
0 | push button | active low |
12 | relay | active high |
13 | status LED | active low |
Id | Type | Description | Range/Unit | Remarks |
---|---|---|---|---|
push_button |
boolean | on/off button, setup button | ||
relay |
boolean | relay |
- a philips screwdriver
- a soldering tool with accessories
- a set of wires to be temporarily soldered onto the board
- a USB-to-serial adapter
- a laptop running Windows, Linux or macOS
-
⚠️ Do not power the device from mains! Do not connect it to AC at all during this procedure! -
Read the flashing instructions and be prepared to follow the flashing procedure.
-
Open the device by unscrewing the screws on the back of the device:
-
Take out the board and identify the RX, TX, GND and VCC pads:
-
Solder a wire on each of the four pads.
-
Ensure the USB-to-serial adapter is not plugged into your laptop.
-
Connect the following USB-to-serial adapter wires to their corresponding wires soldered on the board: RX, TX, GND and VCC.
-
Ensure device will boot into bootloader mode by pressing and holding the button on the device.
-
Plug the USB-to-serial adapter into your laptop, effectively powering the ESP chip on the board.
-
You can now release the button.
-
Follow the flashing procedure to flash the espQToggle firmware on the ESP chip.
-
Disconnect all wires and reassemble the device.
You can now power your device by connecting it to mains. Follow the initial setup instructions to connect the device to Wi-Fi and add it to your qToggle system.