In this video I would like to focus on the basic connection with ESP8266 with Philips Hue and show how to control your Philips Hue system with your arduino or ESP8266/ESP32. We go to register new device on Hue bridge, setup the controller to communicate with build-in RESTful API in bridge (commands are sent in HTTP requests and JSON).
Cheap replacement of Philips Hue Motion Sensor:
Sensor activates the light only in case certain level of light is detected (by default less than 100 lx). If the ambient light sensor light level exceeds the set value, switch-off request is sent and motion detection is ignored.
If the PIR sensor stops to detect motion, the timer is started to switch off the light after set time interval. Controller LED indicates detected motion.