enable LAN control
in the yeelight app
find the ip address under settings > device info
set the ip address in yeelight_monitor_backlight.py
bulb_ip_address = "XXX.XX.XX.XXX"
run the script
>> python yeelight_monitor_backlight.py
clone from github
>> git clone https://github.com/kartikye/yeelight-monitor-backlight.git
navigate to the directory
>> cd yeelight-monitor-backlight
install the requirements using pip
>> pip install -r requirements.txt
run the script using the instructions above