Sonoff S20 Steckdose mit ESPHome

AZDelivery MB 102 Breadboard Kit - 830 Breadboard, Netzteil Adapter 3,3V 5V, 65Stk Steckbrücken kompatibel mit Arduino inklusive Ebook!
AZDelivery MB 102 Breadboard Kit - 830 Breadboard, Netzteil Adapter 3,3V 5V, 65Stk Steckbrücken kompatibel mit Arduino inklusive Ebook!
8,99 €

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