devices.esphome.io

LEDLUMEN SP-03 Smart Plug

LEDLUMEN SP-03 Smart Plug

Device Type: plug
Electrical Standard: eu
Board: bk72xx

Product Images

plug

GPIO Pinout

PinFunction
P6Switch button
P7CF pin
P8CF1 pin
P10Status LED
P23SEL pin
P24Relay 2
P26Relay 1

Basic configuration

esphome:
name: ledlumen-sp03
bk72xx:
board: cb2s
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "SP-03 Fallback Hotspot"
password: ""
web_server:
captive_portal:
text_sensor:
- platform: libretiny
version:
name: LibreTiny Version
binary_sensor:
- platform: gpio
id: binary_switch_1
pin:
number: P6
inverted: true
mode: INPUT_PULLUP
switch:
- platform: gpio
id: switch_1
name: Relay 1
pin: P26
- platform: gpio
id: switch_2
name: Relay 2
pin: P24
status_led:
pin:
number: P10
inverted: true
sensor:
- platform: hlw8012
model: BL0937
cf_pin:
number: P7
inverted: true
cf1_pin:
number: P8
inverted: true
sel_pin:
number: P23
inverted: true
current:
name: BL0937 Current
filters:
- multiply: 0.5
voltage:
name: BL0937 Voltage
power:
name: BL0937 Power
energy:
name: BL0937 Energy
voltage_divider: 775
current_resistor: 0.001 ohm
update_interval: 1s
change_mode_every: 1
Edit this page on GitHub