So if motion is detected (card #1) then stop countdown. But if no countdown is running, which will be definitely the case if the ms detects the first time motion, then the flow stops.
It is a very old topic, but you can still use these flows as a basis: