Using a PIR sensor, trigger a LIFX bulb controlled via local wifi network. PIR sensor will stay on for 35 seconds by default but this could be easily extended/reduced. A more detailed write-up can be found on my personal website.
- ESP32-WROOM-32D
- PIR Sensor
- LIFX lightbulb (confirmed compatibility with colour A19 E26 and colour BR30 E26 bulbs)
schematic is not exact as I couldn't find a regular ESP32 or a representative PIR sensor
- WiFi library
- lifx library from lifx-switch-esp32