Sure, here you go:
esphome:
name: smartplug_deltaco_1
platform: ESP8266
board: esp01_1m
wifi:
ssid: “…”
password: “…”
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Smartplug Deltaco 1"
password: “…”
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: “…”
ota:
password: “…”
binary_sensor:
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
name: "Deltaco SH-P01 Button"
on_press:
- switch.toggle: deltaco_relay_1
- platform: status
name: "Deltaco SH-P01 Status"
output:
- platform: esp8266_pwm
id: deltaco_smartplug_blue_led
pin:
number: GPIO5
inverted: True
switch:
- platform: gpio
name: "Deltaco SH-P01 Relay"
id: deltaco_relay_1
pin: GPIO12
light:
- platform: monochromatic
name: "Deltaco SH-P01 blue LED"
output: deltaco_smartplug_blue_led
and the RGB+CCT bulb:
esphome:
name: light_deltaco_9w_rgbww_1
platform: ESP8266
board: esp01_1m
wifi:
ssid: “…”
password: “…”
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “…”
password: “…”
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: “…”
ota:
password: “…”
output:
- platform: esp8266_pwm
id: output_green
pin: GPIO4
- platform: esp8266_pwm
id: output_red
pin: GPIO5
- platform: esp8266_pwm
id: output_ww
pin: GPIO12
- platform: esp8266_pwm
id: output_blue
pin: GPIO13
- platform: esp8266_pwm
id: output_cw
pin: GPIO14
light:
- platform: rgbww
name: livingroom_lamp
red: output_red
green: output_green
blue: output_blue
warm_white: output_ww
cold_white: output_cw
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2700 K
restore_mode: ALWAYS_ON
effects:
- random:
- strobe:
- flicker: