So far in our Smart Home Setup Guide, we have talked you through the process of getting setup with Home Assistant and adding smart home products to it.
Today we are going to talk you through the process of adding a pretty cool LED light strip to your Home Assistant install, the Xiaomi Zeelight LED strips, which is a pretty capable Wi-Fi enabled LED light strip that simply works fantastically, looks great, and it does all of that at a cheaper price tag than the competition.
For those reasons and more we think it’s a fantastic light that you can add to your Home Assistant install and so we are going to let you know how to do just that.
To get started you first need to set up the Xiaomi Zeelight LED strips with Xiaomi’s Yeelight application on an iOS or Android smartphone.
This process is actually pretty simple, tell the app that you want to set up an LED strip, tell it your WiFi name and password, connect to the strip’s WiFi and then the app will do the rest, it really is that simple.
Unfortunately, things do get a little more complicated when you get into adding the Yeelight LED strip to the Home Assistant software, not because the settings are hard, but because it can be a little tricky to setup due to a couple of bugs that I found when setting it up myself.
First, you need to go back into your Yeelight app, go to your newly setup light strip and then tap the ‘hamburger’ icon in the top right corner.
This should bring up the settings.
From here you need to tap the “Developer Mode” selector and then click to enable Developer Mode, this should then allow Home Assistant to connect to the LED strip, once you have entered some code anyway.
Once you have done that you are going to need to add some code to your Home Assistant install.
But don’t worry it’s not a lot of code, simply add the following line under the “lights:” component of your configuration.yaml file, if you don’t have that component yet simply add the tag before the code.
You should then restart you Home Assistant install, if it starts correctly then you are pretty much ready to go.
You can add some extra code like what I have in the next example, which enables music mode for better responsiveness and adds the IP address.
And then you end up with controls similar to this:
And now you are ready to control your new light strip right from Home Assistant, you can also add some automatons like blinking the lights through notifications, we are going to talk about a bit later.
Until then, you can check out some of the previous stuff that we have posted in this smart home setup series below.
- Starting your own Smart Home with a Raspberry Pi and Home Assistant
- Set up Philips Hue with Home Assistant
- Optimising Home Assistant with groups, views, and a customised UI
- Adding Z-Wave capabilities to your Home Assistant install
- Integrating Sensative Strips with Home Assistant
- Add Xiaomi’s Yeelight LED strips to Home Assistant
- Add BroadLink RM Pro to Home Assistant