Control smart bulb via hand gestures with Google Pixel 4 Soli radar.
Tapto turn on or off the light.Swipeleft or right to switch between light profiles.Hoveron the Pixel 4 around 5 to 25 cm to adjust the brightness.Presenceto keep the light on, or it will turn off if there is no people around within 1 m.
- Google Pixel 4 with Soli Radar enabled
- Soli Sandbox app
- Raspberry Pi or any computer that can run Python3
- Light bulb that made my Yeelight
- Setup the light bulb by Yeelight App and obtain IP address of the bulb.
- Install required python packages:
pip3 install flask pyopenssl yeelight - Modify IP address to
server.py - Since
Soli Sandboxonly connect certrifiedHTTPSconnection, thus you must have a domain name and the cert file (Can obtain from Lets Encrypt) - run
python3 server.pyto start the server.