Skip to content

LED Strip with ESP32

Medium 45 min $20

ESP32 LED Strip

Addressable LED strips enable fantastic light effects. Each LED can be controlled individually with millions of colors!

LED Strip to ESP32 wiring diagram

PartDescriptionPrice
ESP32 DevKitWiFi microcontroller$5
WS2812B LED strip1m, 60 LEDs/m$8
5V power supplyAt least 3A$7
WiresFor power + signal$2
Total~$22
TypeColorsRecommended
WS2812BRGB (16M colors)⭐ Good for most
SK6812RGBW (with true white)⭐⭐ Better white
WS2811RGB (12V version)Long strips
  1. 5V from power supply → LED strip +5V

  2. GND from power supply → LED strip GND AND ESP32 GND

  3. GPIO16 from ESP32 → LED strip DIN (Data In)

led-strip.yaml
esphome:
name: led-strip
friendly_name: LED Strip
esp32:
board: esp32dev
logger:
api:
encryption:
key: "your-key"
ota:
platform: esphome
wifi:
ssid: "your-wifi"
password: "your-password"
# LED Strip
light:
- platform: neopixelbus
type: GRB
variant: WS2812
pin: GPIO16
num_leds: 60
name: "LED Strip"
  1. Click INSTALLWirelessly

  2. Go to Home AssistantOverview

  3. Find your LED strip and turn it on

  4. Try changing color and selecting effects

Lovelace
type: light
entity: light.led_strip
name: LED Strip
automations.yaml
automation:
- alias: "Ambient light at sunset"
trigger:
- platform: sun
event: sunset
action:
- service: light.turn_on
target:
entity_id: light.led_strip
data:
brightness_pct: 50
rgb_color: [255, 180, 100] # Warm white
automations.yaml
automation:
- alias: "Red alarm"
trigger:
- platform: state
entity_id: alarm_control_panel.home
to: "triggered"
action:
- service: light.turn_on
target:
entity_id: light.led_strip
data:
effect: "Strobe"
rgb_color: [255, 0, 0]

WLED is firmware with 100+ effects and web app:

FeatureESPHomeWLED
Effects~10100+
Web UINoYes
Music syncNoYes
HA integrationPerfectGood
SetupYAMLWeb