Sonoff S20 Steckdose mit ESPHome

Kuman Raspberry Pi 3.5 inch Touchscreen Stift TFT Monitor LCD Display 320*480 Resolution with Protective Case + 3 x Heat Sinks+ Touch Pen for Raspberry Pi 3B+, Pi 2 Model B & Pi Model B SC11
Kuman Raspberry Pi 3.5 inch Touchscreen Stift TFT Monitor LCD Display 320*480 Resolution with Protective Case + 3 x Heat Sinks+ Touch Pen for Raspberry Pi 3B+, Pi 2 Model B & Pi Model B SC11
--

Hier ein Beispiel ESPHome-Programm für Sonoff S20 Steckdosen.
Alle Standardfunktionen sind weiterhin gegeben.

esphome:
  name: GERÄTENAME
  platform: ESP8266
  board: esp01_1m

wifi:
  networks:
    - ssid: "WLAN SSID"
      password: "WLAN PW"

   
  ap:
    ssid: "AP KENNUNG"
    password: "AP PW"

captive_portal:

api:

logger:

ota:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "GERÄTENAME"
    on_press:
      - switch.toggle: relay
  - platform: status
    name: "GERÄTENAME"

sensor:
  - platform: wifi_signal
    name: "GERÄTENAME"
    update_interval: 60s

switch:
  - platform: gpio
    name: "GERÄTENAME"
    pin: GPIO12
    id: relay