Control smart bulb via hand gestures with Google Pixel 4 Soli radar.
Tap
to turn on or off the light.Swipe
left or right to switch between light profiles.Hover
on the Pixel 4 around 5 to 25 cm to adjust the brightness.Presence
to 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 Sandbox
only connect certrifiedHTTPS
connection, thus you must have a domain name and the cert file (Can obtain from Lets Encrypt) - run
python3 server.py
to start the server.