Smart Garden Lighting on a Budget — Retrofitting Post Lights with WS2812 and ESP8266 (Part 1: Hardware)
|
~20
Garden lights
|
5V DC
Safe low voltage
|
~$8
Controller cost
|
ESP8266
+ WLED + Home Assistant
|
Why retrofit instead of buying smart lights?
Off-the-shelf smart garden lights are expensive, locked into proprietary apps, and offer limited control. If you already have garden post lights installed — you’re halfway there. With a $1.50 WS2812 LED ring and an ESP8266 controller, you can turn any standard garden fixture into a fully addressable RGB light with hundreds of effects, full Home Assistant integration, and safe 5V DC operation.
This guide covers the hardware side of the build: components, wiring, assembly, and safety. Part 2 covers WLED firmware setup and Home Assistant automations.
The controller — one module does it all
The key component is the ESP8266 WIFI WS2812 RGB Lamp controller — a compact ready-made module that costs around $8 on AliExpress. It combines an ESP8266 microcontroller with Wi-Fi, a WS2812 data output, and a 5V power input in one small enclosure. No soldering a dev board, no breadboard, no custom PCB.
Components list
How WS2812 chaining works
Each WS2812 ring has 4 pins:
| +5V — power | GND — ground |
| DI — Data In: signal input | DO — Data Out: signal to next ring |
Rings are connected in a daisy chain: the DO of one ring connects to the DI of the next. The controller sends the full data stream down the chain and each ring reads its own pixel data and passes the rest along.
Assembly — replacing the bulb socket
The WS2812 8-LED ring is a near-perfect drop-in replacement for a standard E27 bulb socket. No drilling, no modifying the fixture body.
Wiring diagram
Important: you need 3 wires between fixtures (5V, GND, Data). A 2-core cable will not work.
Daisy chain signal path:
Power (+5V and GND) runs in parallel to each ring from the main PSU. Data runs in series through the chain.
Safety — 5V DC instead of mains voltage
One of the biggest wins of this build: the entire garden cable network runs at 5V DC. Mains voltage is confined to the weatherproof enclosure housing the controller and PSU — nowhere near ground level or children playing nearby.
What’s next
Questions about the hardware build? Drop them in the comments.





