Node Red; Looking for Suggestion to make my flow generic for many locks

I run a schedule (BigTimer) to lock my door automatically. From 20:00 until 08:00
if a door is unlocked, it will be lock automatically after 3 minutes.
However, some time, I wish to extend the period not to lock until later.
Example at party time I would like to start the automatic process later.

For this purpose, I created an Helper Toggle (Extension Flag).
I set my extension Flag using IOS Shortcut. So far so good.

When the Extension Flag is Turn_on;
then I Unlock my door
and trigger (trigger node) for a set period of time.
When the trigger terminate,
I send an Actionable Notification
if I do not reply, a new delay is started.
If I decide to reactivate the automatic door locking process,
I will reply to my Actionable Notification (DONE_EXTEND)

Everything works as expected.
However, I wish to make process more generic so that I can use it for many doors.
This doe not work. If I set my Extension Flag for more than 1 door. The answer
to the Actionable Notification does not know that I have 2 instances for the flow
and Trigger reset leaving the other door unlock.
I believe that a Subflow support multiple instances of the same flow.
However, Subflow is limited to 1 input only. I need 2, one for the process and
another one for the answer to the Actionable Notification.
Ay suggestion how I can resolve this issue?

Here is my Node Red flow:
[{“id”:“d93f0482.302698”,“type”:“server-state-changed”,“z”:“e86cf53e.b516c8”,“name”:“Lock Garage Extension Flag Change”,“server”:“e447d17a.16a64”,“version”:1,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“input_boolean.lock_garage_extention_on_off”,“entityidfiltertype”:“substring”,“outputinitially”:false,“state_type”:“str”,“haltifstate”:"",“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:1,“output_only_on_state_change”:true,“for”:0,“forType”:“num”,“forUnits”:“minutes”,“ignorePrevStateNull”:false,“ignorePrevStateUnknown”:false,“ignorePrevStateUnavailable”:false,“ignoreCurrentStateUnknown”:false,“ignoreCurrentStateUnavailable”:false,“x”:140,“y”:1440,“wires”:[[“bf15dd06.2a4cb8”,“e44d563b.f8e008”]]},{“id”:“bf15dd06.2a4cb8”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:350,“y”:1400,“wires”:[]},{“id”:“8500810e.f023b”,“type”:“comment”,“z”:“e86cf53e.b516c8”,“name”:“Extention Flag is Being Set ON ==> Manage Extention”,“info”:“Unlock associated door\nSet the Flag On\nTrigger Dealy for set time\n====Request for Addtional Extention\nSet the Flag OFF\nLock the associated door”,“x”:200,“y”:1280,“wires”:[]},{“id”:“85defca5.0c54d8”,“type”:“server-state-changed”,“z”:“e86cf53e.b516c8”,“name”:“Lock 1531 Extension Flag Change”,“server”:“e447d17a.16a64”,“version”:1,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“input_boolean.lock_1531_extention_on_off”,“entityidfiltertype”:“substring”,“outputinitially”:false,“state_type”:“str”,“haltifstate”:"",“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:1,“output_only_on_state_change”:true,“for”:0,“forType”:“num”,“forUnits”:“minutes”,“ignorePrevStateNull”:false,“ignorePrevStateUnknown”:false,“ignorePrevStateUnavailable”:false,“ignoreCurrentStateUnknown”:false,“ignoreCurrentStateUnavailable”:false,“x”:140,“y”:1360,“wires”:[[“a17b1011.17d108”,“34c1c94.ad73236”]]},{“id”:“a17b1011.17d108”,“type”:“change”,“z”:“e86cf53e.b516c8”,“name”:“Settiing data”,“rules”:[{“t”:“set”,“p”:“door”,“pt”:“msg”,“to”:“lock.lock_1531”,“tot”:“str”},{“t”:“set”,“p”:“door”,“pt”:“flow”,“to”:“door”,“tot”:“msg”},{“t”:“set”,“p”:“extention_flag”,“pt”:“msg”,“to”:“topic”,“tot”:“msg”},{“t”:“set”,“p”:“extention_flag”,“pt”:“flow”,“to”:“extention_flag”,“tot”:“msg”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:370,“y”:1360,“wires”:[[“46d93c37.eff53c”,“f4d40530.8c49a8”]]},{“id”:“46d93c37.eff53c”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:510,“y”:1320,“wires”:[]},{“id”:“34c1c94.ad73236”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:350,“y”:1320,“wires”:[]},{“id”:“f4d40530.8c49a8”,“type”:“switch”,“z”:“e86cf53e.b516c8”,“name”:"",“property”:“payload”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“on”,“vt”:“str”},{“t”:“eq”,“v”:“off”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:510,“y”:1400,“wires”:[[“9f0faa1d.07d258”,“531293c0.bb3a54”],[“3f52fcad.cdd92c”]]},{“id”:“e44d563b.f8e008”,“type”:“change”,“z”:“e86cf53e.b516c8”,“name”:“Settiing data”,“rules”:[{“t”:“set”,“p”:“extention_flag”,“pt”:“msg”,“to”:“topic”,“tot”:“msg”},{“t”:“set”,“p”:“door”,“pt”:“msg”,“to”:“lock.lock_garage”,“tot”:“str”},{“t”:“set”,“p”:“extention_status_new”,“pt”:“msg”,“to”:“data.new_state.original_state”,“tot”:“jsonata”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:370,“y”:1440,“wires”:[[“f4d40530.8c49a8”]]},{“id”:“9f0faa1d.07d258”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:750,“y”:1320,“wires”:[]},{“id”:“cbe90601.46377”,“type”:“inject”,“z”:“e86cf53e.b516c8”,“name”:"",“props”:[{“p”:“payload”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:"",“payload”:"",“payloadType”:“date”,“x”:620,“y”:1520,“wires”:[[“120bc9ec.387fae”]]},{“id”:“cd605a.0a6acfa8”,“type”:“trigger”,“z”:“e86cf53e.b516c8”,“name”:“Trigger Delay for Notification”,“op1”:"",“op2”:“Rappel: Lock Extender”,“op1type”:“nul”,“op2type”:“str”,“duration”:“1”,“extend”:true,“overrideDelay”:true,“units”:“min”,“reset”:“DONE”,“bytopic”:“all”,“topic”:“topic”,“outputs”:1,“x”:680,“y”:1680,“wires”:[[“120bc9ec.387fae”]]},{“id”:“35ae5c4e.94f2cc”,“type”:“inject”,“z”:“e86cf53e.b516c8”,“name”:"",“props”:[{“p”:“payload”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:"",“payload”:“DONE”,“payloadType”:“str”,“x”:210,“y”:1720,“wires”:[[“ff13266e.67421”]]},{“id”:“120bc9ec.387fae”,“type”:“api-call-service”,“z”:“e86cf53e.b516c8”,“name”:“Actionable Notification Device Extended”,“server”:“e447d17a.16a64”,“version”:1,“debugenabled”:false,“service_domain”:“script”,“service”:“extension”,“entityId”:"",“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:660,“y”:1600,“wires”:[[“cd605a.0a6acfa8”]]},{“id”:“ff13266e.67421”,“type”:“change”,“z”:“e86cf53e.b516c8”,“name”:“DONE_EXTEND”,“rules”:[{“t”:“set”,“p”:“reset”,“pt”:“msg”,“to”:“true”,“tot”:“bool”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:380,“y”:1680,“wires”:[[“cd605a.0a6acfa8”,“b42e201f.148a3”,“dfbcaf16.66765”,“cfccb306.d5237”]]},{“id”:“531293c0.bb3a54”,“type”:“api-call-service”,“z”:“e86cf53e.b516c8”,“name”:“Unock the door”,“server”:“e447d17a.16a64”,“version”:1,“debugenabled”:false,“service_domain”:“lock”,“service”:“unlock”,“entityId”:"{{door}}",“data”:"",“dataType”:“jsonata”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:240,“y”:1600,“wires”:[[“ac7394c8.b72cc8”,“cd605a.0a6acfa8”]]},{“id”:“1b2e63db.f09cc4”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:950,“y”:1800,“wires”:[]},{“id”:“cfccb306.d5237”,“type”:“api-call-service”,“z”:“e86cf53e.b516c8”,“name”:“Lock the door”,“server”:“e447d17a.16a64”,“version”:1,“debugenabled”:false,“service_domain”:“lock”,“service”:“lock”,“entityId”:"{{flow.door}}",“data”:"",“dataType”:“jsonata”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:660,“y”:1740,“wires”:[[“f513aa40.35c4c”]]},{“id”:“b42e201f.148a3”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:650,“y”:1860,“wires”:[]},{“id”:“dfbcaf16.66765”,“type”:“api-call-service”,“z”:“e86cf53e.b516c8”,“name”:“Set Extention Flag OFF”,“server”:“e447d17a.16a64”,“version”:1,“debugenabled”:false,“service_domain”:“input_boolean”,“service”:“turn_off”,“entityId”:"{{flow.extention_flag}}",“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:690,“y”:1800,“wires”:[[“1b2e63db.f09cc4”]]},{“id”:“ac7394c8.b72cc8”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:410,“y”:1540,“wires”:[]},{“id”:“f513aa40.35c4c”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:950,“y”:1740,“wires”:[]},{“id”:“61bc7df3.250f3c”,“type”:“link in”,“z”:“e86cf53e.b516c8”,“name”:"",“links”:[“f38ec8c8.91d5b8”],“x”:235,“y”:1680,“wires”:[[“ff13266e.67421”]]},{“id”:“3f52fcad.cdd92c”,“type”:“debug”,“z”:“e86cf53e.b516c8”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:709,“y”:1412,“wires”:[]},{“id”:“e447d17a.16a64”,“type”:“server”,“name”:“Home Assistant”,“legacy”:false,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:false,“cacheJson”:true}]