Depends on if they report motion each time (repeats) or if they report once until motion stops.
For example If they report each time, start a self-re-triggering timer when motion detected. If they report once, then start the timer when motion stops.
Then the condition could be (motion;!timer) for the first scenario, and (motion;!motion;!timer) in the other…
Best Home Automation shopping experience. Shop at Ezlo!