Yep this is what i'm looking for.
Should be easy in theory but I have a hard time trying to convert it to flow based.
Many thanks.
Here's the actual implementation with the I/O:
[{"id":"494480ef7f928ecd","type":"rpi-gpio in","z":"633f4ef1f3503bbe","name":"PIR","pin":"19","intype":"tri","debounce":"25","read":false,"bcm":true,"x":450,"y":900,"wires":[["9e57d342e51bab49"]]},{"id":"95b24554ed97b065","type":"rpi-gpio out","z":"633f4ef1f3503bbe","name":"LED","pin":"26","set":"","level":"0","freq":"","out":"out","bcm":true,"x":1250,"y":900,"wires":[]},{"id":"9e57d342e51bab49","type":"switch","z":"633f4ef1f3503bbe","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":650,"y":900,"wires":[["82be3c7452937bc4"],["cf763fc29e7bc115"]]},{"id":"82be3c7452937bc4","type":"change","z":"633f4ef1f3503bbe","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":860,"wires":[["cf763fc29e7bc115","1a989388352bea02","95b24554ed97b065"]]},{"id":"cf763fc29e7bc115","type":"delay","z":"633f4ef1f3503bbe","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"5","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1000,"y":900,"wires":[["1a989388352bea02","95b24554ed97b065"]]},{"id":"70f8fc0513f46d3b","type":"group","z":"633f4ef1f3503bbe","name":"Emulated Input","style":{"label":true},"nodes":["5a4a909a98e77e5b","871dbaf4795873ca"],"env":[],"x":354,"y":939,"w":172,"h":122},{"id":"5a4a909a98e77e5b","type":"inject","z":"633f4ef1f3503bbe","g":"70f8fc0513f46d3b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"PIR","payload":"1","payloadType":"num","x":450,"y":980,"wires":[["9e57d342e51bab49"]]},{"id":"871dbaf4795873ca","type":"inject","z":"633f4ef1f3503bbe","g":"70f8fc0513f46d3b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"PIR","payload":"0","payloadType":"num","x":450,"y":1020,"wires":[["9e57d342e51bab49"]]},{"id":"c2e3acb5471dad33","type":"group","z":"633f4ef1f3503bbe","name":"Emulated Output","style":{"label":true},"nodes":["1a989388352bea02"],"env":[],"x":1154,"y":939,"w":212,"h":82},{"id":"1a989388352bea02","type":"debug","z":"633f4ef1f3503bbe","g":"c2e3acb5471dad33","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1250,"y":980,"wires":[]}]