This should work for you it will not let timer pass if any motion within the past 5 seconds, adjust time to suit
[{"id":"6e626df3.6bd5d4","type":"inject","z":"bf9e1e33.030598","name":"motion","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"motion","payload":"1","payloadType":"num","x":110,"y":1380,"wires":[["8effd20a.5098a8"]]},{"id":"8effd20a.5098a8","type":"trigger","z":"bf9e1e33.030598","name":"","op1":"","op2":"0","op1type":"pay","op2type":"num","duration":"5","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":270,"y":1380,"wires":[["c3792689.435a1"]]},{"id":"c3792689.435a1","type":"join","z":"bf9e1e33.030598","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":440,"y":1420,"wires":[["786562d5.a8f914"]]},{"id":"7fe6cb89.f7a8dc","type":"change","z":"bf9e1e33.030598","name":"","rules":[{"t":"set","p":"complete","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":1460,"wires":[["c3792689.435a1"]]},{"id":"786562d5.a8f914","type":"switch","z":"bf9e1e33.030598","name":"","property":"payload.motion","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":580,"y":1420,"wires":[["7efaab7a.ef4ce4"]]},{"id":"96e2f424.f31c18","type":"inject","z":"bf9e1e33.030598","name":"timer","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"timer","payload":"1","payloadType":"num","x":120,"y":1460,"wires":[["7fe6cb89.f7a8dc"]]},{"id":"7efaab7a.ef4ce4","type":"change","z":"bf9e1e33.030598","name":"","rules":[{"t":"move","p":"payload.timer","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1420,"wires":[["e3589b7c.bb306"]]},{"id":"e3589b7c.bb306","type":"debug","z":"bf9e1e33.030598","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":1360,"wires":[]}]
[edit] Added the word past
, as that's what it does.