ESPHome-Devices

Delock 11826 Power Smart Plug

Delock 11826 Power Smart Plug

Device Type: plug
Electrical Standard: eu

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!

Product

GPIO Pinout

PinFunction
GPIO0Button (inverted)
GPIO12Relay
GPIO13LED

Basic Config

Basic configuration with switch.

substitutions:
plug_name: delock01
esphome:
name: ${plug_name}
platform: ESP8266
board: esp8285
# Enable Home Assistant API
api:
password: !secret esphome_api_pw
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 logging
logger:
# Example configuration entry
web_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
Edit this page on GitHub