- Published on
How to Control LED Strip with Home Assistant Using WLED — Step-By-Step Guide
- Authors
- Name
- Amrut Prabhu
- @amrutprabhu42
In this article, we will look at how you can control an LED strip with Home Assistant using WLED.
Table of Contents
Requirements
- LED strip with individual programmable LEDS of type WS2812B, WS2811, or SK6812.
You can buy using the links below.
- ESP32 or D1 Mini board. You can buy it using the links below.
Circuit Diagram For Connecting LED Strip to D1 mini
Circuit Diagram For Connecting LED Strip to ESP32
Installing WLED on D1 mini
If you are using a D1 mini, connect it to the computer and open this link in the browser.
Now, click on install and you should get this popup.
Now select your device and click Connect.
Then click on “Install WLED”.
Once you click on “Install WLED” and if it remains in the “Connecting” state for a long time, this means your D1 mini is not in the flashing mode.
To enable flashing mode in the D1 mini, you must connect the D3 pin and ground pin and then connect the D1 mini to the computer. This should put it in the flashing mode.
Once the erasing and flashing are done, it will ask you for your Wi-Fi information. Provide the Wi-Fi information and click “Connect”.
Now you should get this option to visit the device.
You can either now add this to your Home Assistant or you can directly visit the device interface which looks like this.
Installing WLED on ESP32
Follow the same steps from above, except you must press and hold the “Boot” button while connecting the ESP32 to the computer.
Then follow the exact steps as stated above.
Connecting WLED Strip To Home Assistant
To add your WLED programmed ESP32 or D1 mini to Home Assistant, head over to your Home Assistant and go to “Settings” and then the “Devices & Services” option.
Once you are in the “Integrations” tab, click on the “Add integration” button in the bottom right-hand corner and search for WLED.
Now, as you can see above, you will have to enter the IP address of your D1 mini or ESP32 in which you have WLED installed.
With this, you have now connected your WLED device to Home Assistant.
Now if you are interested in exploring more of such easy to follow step by step guides about Home Assistant, then here are a few suggestions