Thanks for all the help!
At the moment I partly solved the flow, but I am not happy with it. It should be much nicer to write a javascript for it and that would do the work instead of using so many nodes. It is clearly down to my lack of javascript programming skills, which I wish to take some courses to improve it because until I have no idea about the basic rules and the purposes of signs in the script, I feel I am walking in a pitch-black room.
I am only using node-red for hobby purposes and never learned programing or even about computers. All I know is from self-learning.
Regarding the flow I have just store the value into a flow context, then a inject node keep checking the value, a switch node let through only the door open message. So ass soon as the value changed to door closed there will be no messages going further than the switch node. Pretty simple, but can be much nicer and no need for storing the value into a context.
[{"id":"9415995b.c09f98","type":"tab","label":"RF id test flow","disabled":false,"info":""},{"id":"b77b440.3e4b4c","type":"ui_toast","z":"9415995b.c09f98","position":"dialog","displayTime":"10","highlight":"","outputs":1,"ok":"Ok","cancel":"","topic":"Warning! Activity at the gate!","name":"","x":1114,"y":179,"wires":[[]]},{"id":"64694e3d.14e74","type":"delay","z":"9415995b.c09f98","name":"","pauseType":"rate","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":914,"y":130,"wires":[["b77b440.3e4b4c"]]},{"id":"1ee18c18.366e44","type":"function","z":"9415995b.c09f98","name":"User","func":"msg.payload = msg.payload + \" Arrived home at: <br>\"\nmsg.topic = \"Warning! The gate is open!\"\n\nvar dt = new Date();\nmsg.payload = msg.payload + dt.getFullYear()+\"/\"+(dt.getMonth() + 1)+\"/\"+dt.getDate()+\" - \"+(dt.getHours()+0)+\":\"+dt.getMinutes(); + msg.payload + msg.topic\nreturn msg;","outputs":1,"noerr":0,"x":698,"y":184,"wires":[["b77b440.3e4b4c"]]},{"id":"c3e51b73.17e318","type":"mqtt in","z":"9415995b.c09f98","name":"","topic":"status","qos":"1","datatype":"auto","broker":"3ad182b8.a268fe","x":110,"y":129,"wires":[["9bd02c8e.0dda8"]]},{"id":"9bd02c8e.0dda8","type":"json","z":"9415995b.c09f98","name":"","property":"payload","action":"","pretty":false,"x":242,"y":129,"wires":[["7f90d7d4.012598"]]},{"id":"b0521fd1.1db6","type":"function","z":"9415995b.c09f98","name":"Open","func":"msg ={\n payload: \"Warning the gate left open for more than 2 miniutes at! <br>\",\n topic: \"Warning! Activity at the gate!\"\n};\nvar dt = new Date();\nmsg.payload = msg.payload + dt.getFullYear()+\".\"+(dt.getMonth() + 1)+\".\"+dt.getDate()+\" \"+(dt.getHours()+0)+\":\"+dt.getMinutes();\nreturn msg;","outputs":1,"noerr":0,"x":700,"y":233,"wires":[["b77b440.3e4b4c"]]},{"id":"2602d81b.dbfa78","type":"function","z":"9415995b.c09f98","name":"Closed","func":"msg ={\n payload: \"The gate has been closed at! <br>\",\n topic: \"Warning! The activity has ended !\"\n};\nvar dt = new Date();\nmsg.payload = msg.payload + dt.getFullYear()+\".\"+(dt.getMonth() + 1)+\".\"+dt.getDate()+\" \"+(dt.getHours()+0)+\":\"+dt.getMinutes();\nreturn msg;","outputs":1,"noerr":0,"x":701,"y":130,"wires":[["64694e3d.14e74"]]},{"id":"7f90d7d4.012598","type":"switch","z":"9415995b.c09f98","name":"","property":"payload.type","propertyType":"msg","rules":[{"t":"eq","v":"door","vt":"str"},{"t":"eq","v":"access","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":371,"y":129,"wires":[["ac7a5bec.247788"],["38426c07.ccd344"]]},{"id":"ac7a5bec.247788","type":"switch","z":"9415995b.c09f98","name":"","property":"payload.door","propertyType":"msg","rules":[{"t":"eq","v":"Door Closed","vt":"str"},{"t":"eq","v":"Door Open","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":516,"y":85,"wires":[["477c92aa.73ec2c","2602d81b.dbfa78"],["477c92aa.73ec2c"]]},{"id":"bfdb74d8.a346f8","type":"change","z":"9415995b.c09f98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Status","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":311.9999694824219,"y":232.66665649414062,"wires":[["24ce1afa.53bd26"]]},{"id":"477c92aa.73ec2c","type":"change","z":"9415995b.c09f98","name":"","rules":[{"t":"set","p":"Status","pt":"flow","to":"payload.door","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":718.9999389648438,"y":87.66665649414062,"wires":[[]],"outputLabels":["2"]},{"id":"1f0ee1d0.33e90e","type":"inject","z":"9415995b.c09f98","name":"2 min","topic":"Warning! Activity at the gate!","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":135.44439697265625,"y":234,"wires":[["bfdb74d8.a346f8"]]},{"id":"24ce1afa.53bd26","type":"switch","z":"9415995b.c09f98","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Door Open","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":515,"y":233,"wires":[["b0521fd1.1db6"]]},{"id":"38426c07.ccd344","type":"switch","z":"9415995b.c09f98","name":"","property":"payload.username","propertyType":"msg","rules":[{"t":"cont","v":"Detty","vt":"str"},{"t":"cont","v":"Pisti","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":515,"y":181,"wires":[["1ee18c18.366e44"],["1ee18c18.366e44"]]},{"id":"3ad182b8.a268fe","type":"mqtt-broker","z":"","name":"mqtt","broker":"192.168.1.71","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]