Is the light on? Turn it off

Besides that smart bulbs shouldn’t be disconnected from the power supply as already explained, to use a build-in delay flow card is not a good choice for light automatization. In this post I explained why. It’s in German, but with a translator I guess it will not be a problem, otherwise just ask.

By the way, you don’t have to buy an expensive motion sensor from Philips Hue, you can also use cheaper Zigbee sensors (motion sensor, door/window sensor, wireless smart button) from other manufacturers.