devices.esphome.io
Sonoff S26
Sonoff S26
Device Type: plugBoard: esp8266
GPIO Pinout
| Pin | Function | 
|---|---|
| GPIO0 | Push Button (HIGH = off, LOW = on) | 
| GPIO12 | Relay and Red LED | 
| GPIO13 | Blue Status LED | 
Flashing via serial
To put the device into flash mode:
- hold the button
 - connect board to the 5V (do not connect it to the AC)
 - release the button
 - start flashing
 
Basic Configuration
# Basic Configesphome:  name: sonoffs26_1  esp8266:  board: esp01_1m  board_flash_mode: dout
wifi:  ssid: "ssid"  password: "wifi_password"  ap:    ssid: "ap_ssid"    password: "Password"  domain: ".domain.com"
status_led:  pin:    number: GPIO13    inverted: falselogger:
api:  encryption:    key: !secret api_encryption_key
ota:  password: "OTA_password"
web_server:
binary_sensor:  - platform: gpio    pin:      number: GPIO0      mode: INPUT_PULLUP      inverted: True    name: "Sonoff S26_1 Button"    on_press:      - switch.toggle: relay  - platform: status    name: "Sonoff S26_1 Status"
sensor:  - platform: wifi_signal    name: "sonoffs26_1 WiFi Signal"    update_interval: 60sswitch:  - platform: gpio    name: "Sonoff S26_1 Relay"    pin: GPIO12    id: "relay"  - platform: restart    name: "sonoffs26_1 Restart"