Blocking an automation

You don’t need a timer. Most automations of this kind send a turn on command every time movement is detected, so they stay on until movement stops.