Control Yeelight Bedside Lamp using bluetooth LE.
I reverse engineered some protocol of it.
- Read name of devices.
- Wakeup light.
- Scene mode.
$ sudo apt install python-dev libglib2.0-dev # Install library for bluepy
$ pip install -r requirements.txt honcho
$ npm install -g bower
$ bower install
# Setting envs.
$ echo 'YEELIGHT_ADDRESS=c0:ff:ee:c0:ff:ee' > .env
$ echo 'REDIS_URL=redis://localhost/1' >> .env
$ honcho start
Or you can use it as library. Just import yeelight.py
.