SDG #323 WS2812 LEDs in ESPhome with the ESP32 DIN Mount PCB
This build log follows a custom ESP32 DIN rail PCB being put to work as a WS2812 addressable LED controller, wired inside a proper enclosure rather than left as a bench experiment. The board sits in a standard DIN rail housing, so it fits alongside terminal blocks and power supplies as a commercial controller would, which matters when a home automation project is meant to look intentional rather than improvised.
The LED load is a flexible neon style WS2812 strip, which is worth noting because these diffused strips behave differently from bare 5050 pixel tape: the pixel pitch is hidden, so colour transitions look smoother, but current draw still scales with pixel count and that has to be accounted for in the supply and wiring. The video covers the practical side of that, including how the strip is fed, how the data line is handled from the ESP32’s 3.3V logic, and what to watch for as the run gets longer.
The software half is ESPHome, where the WS2812 output is defined and exposed as a light entity, ready to be brought into Home Assistant with effects and colour control. That is the real appeal of this approach over a cheap off the shelf controller: no cloud dependency, no vendor app, and the same board can also handle RS485 Modbus duties on other pins.
For anyone planning a panel mounted LED or sensor controller, the useful points are the enclosure fit, power distribution inside the box, and how little ESPHome YAML is actually needed to get addressable LEDs behaving properly.


