A python websocket server/client to control various cheap IoT RGB BLE lightbulbs and HDMI-CEC-to-TV RPi3
*** On a RPi3 or a linux-based bluetooth-enabled processor board ***
- Setup python3 + required pip imports.
- Configure your playbulb/milight bulbs in the play.ini file.
- Run ./play.py --server (or execute as systemd startup script).
- To use HDMI-CEC, connect HDMI cable to a free TV port.
*** On a client device (tested on an AsusWRT router) ***
- Setup python3 + required pip imports (opkg)
- Run server.py using the init.d script. This will receive web POST requests (using POST variables action and hash - a SHA512 hashed SALT+action string).
- Run detector.py using the init.d script. This will query active WIFI devices (cellphones, tablets...using the MAC addresses) on the network and open/close lights accordingly.
- You can also trigger light changes/HDMI-CEC requests by runing ./playclient.py OPTIONS