Ninja Sphere application to combine a motion sensor and lights into a security light.
Create and edit settings in the ninjasphere.local (labs) interface, choose motion sensor(s) and the light(s) you want to activate, then set the time this rule should be active (always or only certain times), as well as a duration before the light turns off again.