Skip to content

Sonoff S2X

Calin Crisan edited this page Jul 25, 2020 · 7 revisions

Device

Description

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.

Configuration

Provisioning configuration name: espqtoggle/sonoff/s2x.

Flash Parameters

  • flash mode: QIO
  • flash frequency: 40MHz

Pins

Number Function Remarks
0 push button active low
12 relay active high
13 status LED active low

Ports

Id Type Description Range/Unit Remarks
push_button boolean on/off button, setup button
relay boolean relay

Installation

Requirements

  • 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

Procedure

  1. ⚠️ Do not power the device from mains! Do not connect it to AC at all during this procedure!

  2. Read the flashing instructions and be prepared to follow the flashing procedure.

  3. Open the device by unscrewing the screws on the back of the device:

  4. Take out the board and identify the RX, TX, GND and VCC pads:

  5. Solder a wire on each of the four pads.

  6. Ensure the USB-to-serial adapter is not plugged into your laptop.

  7. Connect the following USB-to-serial adapter wires to their corresponding wires soldered on the board: RX, TX, GND and VCC.

  8. Ensure device will boot into bootloader mode by pressing and holding the button on the device.

  9. Plug the USB-to-serial adapter into your laptop, effectively powering the ESP chip on the board.

  10. You can now release the button.

  11. Follow the flashing procedure to flash the espQToggle firmware on the ESP chip.

  12. Disconnect all wires and reassemble the device.

Next Steps

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.

Clone this wiki locally