devices.esphome.io
Delock 11826 Power Smart Plug
Delock 11826 Power Smart Plug
Device Type: plugElectrical Standard: euBoard: esp8266
General Notes
Model reference: 11826
Manufacturer: Delock
The device comes pre-flashed with Tasmota. Flashing ESPHome is easily possible by uploading an ESPHome .bin file using the device's web interface. In case of issues GZIP your .bin file!
      
  
        
GPIO Pinout
| Pin | Function | 
|---|---|
| GPIO0 | Button (inverted) | 
| GPIO12 | Relay | 
| GPIO13 | LED | 
Basic Config
Basic configuration with switch.
substitutions:  plug_name: delock01
esphome:  name: ${plug_name}  platform: ESP8266  board: esp8285
# Enable Home Assistant APIapi:  encryption:    key: !secret api_encryption_key
ota:  password: !secret ota_password
wifi:  ssid: !secret wifi_ssid  password: !secret wifi_password
  # Enable fallback hotspot (captive portal) in case wifi connection fails  ap:    ssid: "${plug_name} Fallback Hotspot"    password: "7xlV0YQ3J35a"
captive_portal:
# Enable logginglogger:
# Example configuration entryweb_server:  port: 80
binary_sensor:  - platform: gpio    pin:      number: GPIO0      inverted: True    name: "${plug_name} Button"    on_press:      - switch.toggle: relay
switch:  - platform: gpio    id: led    pin: GPIO13
  - platform: gpio    name: "${plug_name} Smart Plug"    pin: GPIO12    id: relay    on_turn_on:      - switch.turn_on: led    on_turn_off:      - switch.turn_off: led