Skip to content

Using this class you can receive, decrypt and handle Yeelight YLKG07YL/YLKG08YL dimmer bluetooth notifications in your python code.

Notifications You must be signed in to change notification settings

psylity/yeelight-dimmer-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Yeelight YLKG07YL/YLKG08YL dimmer handler

About

With this code you can handle dimmer changes in your python code. Just override YeelightDimmer class and implement your own handlers (check out the demo.py code)

Run the following to find out your dimmer MAC:

# hcitool lescan
LE Scan ...
F8:24:41:C5:A0:BE yee-rc

If you want to use Yeelight dimmers in your ESP32 project - check out this repository

Demo

Retrieving beacon_key

# python3 demo.py F8:24:41:C5:A0:BE
using mac F8:24:41:C5:A0:BE
! Press the "Pair" button at the dimmer...
Connecting... done
Authenticating.. done
beacon_key: a3157ddfac2a30a7f5e33854
starting the demo. triple click to exit, single click to center the knob

[---------------|--------------0------------------------------] -15

Providing beacon_key

# python3 demo.py F8:24:41:C5:A0:BE a3157ddfac2a30a7f5e33854
using mac F8:24:41:C5:A0:BE
starting the demo. triple click to exit, single click to center the knob

[------------------------------0-----------------|------------] 018

About

Using this class you can receive, decrypt and handle Yeelight YLKG07YL/YLKG08YL dimmer bluetooth notifications in your python code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages