Published: May 4, 20242 min read

Use WLED Light Effects in ESPHome

Written by: Fixt
Sound Reactive Ambient

Example YAML device configuration

homeassistant/esphome/esphome_wled_effects.yaml

esphome:
  name: esphome_wled_effects
  friendly_name: ESPHome Wled Effects
  project:
    name: esphome_wled.effects
    version: "1.0"
  min_version: 2023.11.1
  
esp32:
  board: esp32dev
  framework:
    type: arduino
 
# Enable logging
 
logger:
 
web_server:
  port: 80
 
# Enable Home Assistant API
 
api:
 
ota:
 
improv_serial:
 
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  on_connect: 
    - delay: 5s # Gives time for improv results to be transmitted
 
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "esphome_wled_effects"
 
captive_portal:
 
button:
  - platform: factory_reset
    id: factory_reset_btn
    name: Factory reset
 
light:
  - platform: neopixelbus
    name: "WLED Effects"
    variant: WS2812
    id: led
    pin: GPIO16
    default_transition_length: 250ms
    type: grb  
    num_leds: 142
    effects:
      - pulse:
          name: "Slow Pulse"
          transition_length: 250ms
          update_interval: 250ms
          min_brightness: 50%
          max_brightness: 80%
 

Visual Studio Code Add-on

Open your Home Assistant instance and show the dashboard of a Supervisor add-on.

Add DDP to your WLED configuration

You can check the documentation here

External DDP Component

external_components:
  - source:
      type: git
      url: https://github.com/KaufHA/common
    components: [ ddp ]
    refresh: always
 
ddp:
 
light:
  - ....
    effects:
      - addressable_ddp:
          name: "DDP"

Set DDP effect in ESPHome after Network is connected

Members Content
SCRIPT
Member Banner

Join our community to unlock exclusive
content!

  • As a Tinkerer 🤖, you’ll gain:
    • Exclusive Member Content Access: You’ll receive exclusive access to the Member Content on our website.
    • Free Shop Content Access during the first 2 weeks of its release.
      Look for the MemberFree badge on the title.
    • Ko-fi Shop Discount: Enjoy a 25% discount on any item in our Ko-fi shop.
    • Early Tutorial Access: Get early access to our content on our website.
    • Member Shoutout: Stick around until the end for a shoutout to our dedicated members
  • Your support is invaluable in allowing us to continue creating the tutorials you like 😁🏠🎉
  • Click on any of the buttons below to become a member, and then log in with the same email address.

ESPHome

Open your Home Assistant instance and show an integration.

WLED Configuration

Open your Home Assistant instance and show an integration.

I would love to hear your comments, or suggestions on this post.


Avatar of Fixt

Fixt is a Software Engineer passionate about making the world a better place through technology and automation.