Just in case anyone wondering. I’m using wyze motion sensor with Philips Hue. Once the sensor detects motion it turns on the light in 3-4 sec. via ifttt and it turns it off after 40 sec. once the sensor is clear
I’m doing this with smartthings instead of hue, I have ge, hue, kasa, lol.