Control bedside lamp through homebridge (on Raspberry Pi 3)

Hi all Yeelight bedside lamp users with a RPi 3 running homebridge,

I just updated homebridge-yeelight plugin to support Yeelight bedside lamp, you can update your plugin and have a try. The BLE discovery takes a bit longer than WiFi device (current scan interval is 16s), you may need to have more patience. Once connected successfully, you can enjoy the instant controlling.

Following is the procedure you need to complete:

sudo apt-get install libbluetooth-dev

sudo npm install -g noble

sudo apt-get install libcap2-bin

Run following command:

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

update homebridge-yeelight to latest version and restart homebridge service.

When you connect your bedside lamp for 1st time, remember to press the Mode button after your see the breathing effect. This is to authorize your Pi to access bedside lamp’s services.

NOTE: BLE device can only be supported by Raspberry Pi 3. If you want to make Yeelight bedside lamp work with other hardware running homebridge, please try to install a bluetooth dongle and make sure it’s working properly.

1 个赞

So goooooood

Oh just want to order a bed side lamp but no Alexa or wifi is a no no for me

Isn’t raspberry pi 3 model b already has bt built in?

I’m trying to connect my raspberry pi 3 model b with the bedside lamp but it won’t. I get the message org.bluez.Error.AuthenticationCanceled
Maybe I’m doing something wrong to get the lamp in pairing mode. Any suggestions?

Could you post more log messages here?

This is how my terminal looks:


Where do I find bluetooth logs?

1 个赞

Why do you connect the lamp through this way? Could you just install homebrige-yeelight and try?

Because the homebridge-yeelight couldn’t find the device. But it works now after rebooting and connecting via bluetoothctl
Thank you anyway :slight_smile:

ok, enjoy your voice control :slight_smile:

I’m having a problem! My raspberry pi isn’t finding the lamp when I do sudo bluetoothctl

Hi, we already have a discussion on GitHub. Anyway I’d like to ask you to integrate support for the Yeelight Candela lamp. I see more and more people going with this lamp as the design is very nice and attractive.
Since it uses Bluetooth as well, it would be great to see support for that Candela Lamp in the yeelight home bridge plugin

Are you already working on it or when to expect support for that device?

thanks