Skip to main content
Device Type:relay
Electrical Standard:global
Board:esp8266
Difficulty:Plug-n-flash (2/5)

Sonoff SV

Sonoff SV

The Sonoff SV is 5-24V DC powered SPST relay board with three GPIOs provided on 3-way headers (3.3V, GND and the IO).

It has an ESP8266 with 25Q80DVSIG serial flash. Flashing ESPHome can be easily achieved via the unpopulated programming header and the button connected to GPIO0.

GPIO Pinout

GPIOFunction
GPIO0Button
GPIO12Relay and red LED
GPIO13green LED
GPIO4available via 3-way header
GPIO5available via 3-way header
GPI014available via 3-way header

Basic Configuration

packages:
- !include common/common.yaml
- !include common/wifi.yaml
- !include common/web_server.yaml

esphome:
name: sonoff-lv
friendly_name: Sonoff LV DC switch

esp8266:
board: esp01_1m

binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: true
name: "Button"
on_press:
- switch.toggle: relay

switch:
- platform: gpio
name: "Outlet"
icon: mdi:power-socket-au
pin: GPIO12
id: relay

status_led:
pin:
number: GPIO13