Skip to content

Instantly share code, notes, and snippets.

@OothecaPickle
Last active July 5, 2025 02:49
Show Gist options
  • Save OothecaPickle/036ca8dcdabdfd7fd09a3b777447f8f0 to your computer and use it in GitHub Desktop.
Save OothecaPickle/036ca8dcdabdfd7fd09a3b777447f8f0 to your computer and use it in GitHub Desktop.
substitutions:
name: ln882h-rgbcct-bulb
device: ln882h_rgbcct_bulb
friendly_name: LN882H RGBCCT Bulb
esphome:
name: ${name}
friendly_name: ${friendly_name}
# needs https://github.com/ESP32Async/ESPAsyncWebServer/pull/214 to compile, unnecessary for versions > 3.7.9
libraries:
- ESPAsyncWebServer=https://github.com/ESP32Async/ESPAsyncWebServer.git#main
ln882x:
board: generic-ln882hki
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
- platform: esphome
password: ""
wifi:
ssid: "XXX"
password: "XXXXXXXX"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Ln882H-Rgbcct-Bulb"
password: "XXXXXXXX"
bp5758d:
data_pin: PA05
clock_pin: PA06
output:
- platform: bp5758d
current: 6
id: output_blue
channel: 1
- platform: bp5758d
current: 6
id: output_green
channel: 2
- platform: bp5758d
current: 6
id: output_red
channel: 3
- platform: bp5758d
current: 6
id: output_cold_white
channel: 4
- platform: bp5758d
current: 6
id: output_warm_white
channel: 5
light:
- platform: rgbww
name: ${friendly_name}
id: ${device}
blue: output_blue
green: output_green
red: output_red
cold_white: output_cold_white
warm_white: output_warm_white
cold_white_color_temperature: 6500K
warm_white_color_temperature: 2700K
color_interlock: true
web_server:
# maybe limits functionality?
#local: true
version: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment