I wrote script on Python 2.7 to implement ambilight-like functional for Yeelight bulb(color). You can place bulb behind the monitor(or TV, that uses like second monitor) and run the script to make bulb colour adaptive.
How it works:
* Enable music mode
* Make a screenshot of screen (supports multi-screens)
* Do some image processing magic to detect dominant colour
* Change color of bulb to dominant colour on screen
It works with delays, but you can try it .
To install script use:
pip install yeelight-cinema
yeelight-cinema.py --bulb_ip=192.168.1.240 --resolution_l=1920x1080
To use with secondary monitor (places right):
screen to use left screen resolution right screen resolution
yeelight-cinema.py --bulb_ip=192.168.1.240 --target_screen=right --resolution_l=1920x1080 --resolution_r=1920x1080
More information on repo:
I hope it will be useful for somebody I going to keep working on it to decrease delays in future.