If you want to do this now you can use the community app Event Engine. Combine both motion sensors and contact sensors to keep a light\lights on. I have an automation in it that turns on closet LED strip if there is motion or if a contact sensor opens: