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} esp8266: board: esp8285 # OTA flashingota: - platform: esphome
wifi: # Your Wifi network details # Enable fallback hotspot in case wifi connection fails ap:
# Enabling the logging componentlogger:
# Enable Home Assistant APIapi:
# Enable the captive portalcaptive_portal:
# Enable the Web Server component webserver:
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