Yeelight BLE plugin for homebridge(Rewrited)
Thanks for nfarina(the author of homebridge), all other developer and testers.
1.BedsideLamp
- Install HomeBridge, please follow it's README.
If you are using Raspberry Pi, please read Running-HomeBridge-on-a-Raspberry-Pi. - Make sure you can see HomeBridge in your iOS devices, if not, please go back to step 1.
- Install packages.
- Install Plugin.
-
sudo apt-get install libbluetooth-dev
-
Go to your node_modules folder
(You can find it by using bynpm -g root
) -
npm install noble
-
sudo apt-get install libcap2-bin
-
Run following command:
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
- Run following command:
sudo hciconfig hci0 up
Then start homebridge
Wait until you get output.
If you found output like this:
[ReYeelight][BLE]Timer Started
You can be sure that noble and bluetooth has no problem and the plugin is running properly
"platforms": [
{
"platform": "ReYeelightBLEPlatform",
"defaultValue": {
"f8:24:41:e9:fa:cf": "Bedside Lamp"
}
}
]
1.remove dependencies
1.fix rgb
1.bug fix
1.add support for BedsideLamp.