smart home circle
Smart Home Circle
Published on

How to Control LED Strip with Home Assistant Using WLED — Step-By-Step Guide

How to Control LED Strip with Home Assistant Using WLED — Step-By-Step Guide
3 min read
Authors

In this article, we will look at how you can control an LED strip with Home Assistant using WLED.

Table of Contents

Requirements

  1. LED strip with individual programmable LEDS of type WS2812B, WS2811, or SK6812.
    You can buy using the links below.
  1. ESP32 or D1 Mini board. You can buy it using the links below.

Circuit Diagram For Connecting LED Strip to D1 mini

d1-mini-circuit-diagram

Circuit Diagram For Connecting LED Strip to ESP32

esp32-circuit-diagram

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.

wled

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.

wled-success

You can either now add this to your Home Assistant or you can directly visit the device interface which looks like this.

wled-ui

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.

home-assistant-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.

home-assistant-setup

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