Indeed, you might have use have a few Templates that you can import:
-
Motion activated Light/Device, off after a certain time of no motion
Very simpel flow with the basic off what you want, i just created it for you. -
Motion activated Light/Device with Lux condition
Same, but with a lux condition (only goes on when it is dark out there).
You can select these templates directly in the Device Capabilities App → App Settings → Templates.