devices.esphome.io

Sonoff S26

Sonoff S26

Device Type: plug
Electrical Standard: aueuukus
Board: esp8266

GPIO Pinout

PinFunction
GPIO0Push Button (HIGH = off, LOW = on)
GPIO12Relay and Red LED
GPIO13Blue Status LED

Basic Configuration

# Basic Config
esphome:
name: sonoffs26_1
esp8266:
board: esp01_1m
board_flash_mode: dout
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
# Enable Home Assistant API
api:
# Enable the captive portal
captive_portal:
# Enable the Web Server component
webserver:
status_led:
pin:
number: GPIO13
inverted: false
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"
switch:
- platform: gpio
name: "Sonoff S26_1 Relay"
pin: GPIO12
id: "relay"
- platform: restart
name: "sonoffs26_1 Restart"
Edit this page on GitHub