Use only one join-wait

Hi guys.
I have a flow where i use two join-wait and i like to minimalize the code and use only one join-wait if its possible. the flow is for persons arrival at home.
this is the flow code:

[{"id":"b2a1d7392b12278d","type":"join-wait","z":"558d80d4e6ef3a90","name":"","paths":"[\"pers_1\",\"door\"]","pathsToExpire":"","useRegex":false,"warnUnmatched":true,"pathTopic":"topic","pathTopicType":"msg","correlationTopic":"","correlationTopicType":"msg","timeout":"1","timeoutUnits":"60000","exactOrder":"false","firstMsg":"true","mapPayload":"false","disableComplete":false,"persistOnRestart":true,"x":460,"y":600,"wires":[["a3ecd8c6acfdce9c"],[]],"inputLabels":["path_1"]},{"id":"25e703e5b7766823","type":"join-wait","z":"558d80d4e6ef3a90","name":"","paths":"[\"pers_2\",\"door\"]","pathsToExpire":"","useRegex":false,"warnUnmatched":true,"pathTopic":"topic","pathTopicType":"msg","correlationTopic":"","correlationTopicType":"msg","timeout":"1","timeoutUnits":"60000","exactOrder":"false","firstMsg":"true","mapPayload":"false","disableComplete":false,"persistOnRestart":true,"x":460,"y":720,"wires":[["a3ecd8c6acfdce9c"],[]],"inputLabels":["path_1"]},{"id":"a34a63e459492fc3","type":"debug","z":"558d80d4e6ef3a90","name":"debug 62","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":820,"y":660,"wires":[]},{"id":"a3ecd8c6acfdce9c","type":"function","z":"558d80d4e6ef3a90","name":"function 17","func":"//set topic to pers_1 or pres_2\nmsg.topic = Object.keys(msg.topic).find(key => key !== \"door\");\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":650,"y":660,"wires":[["a34a63e459492fc3"]]},{"id":"ce69cb0f539c2357","type":"server-state-changed","z":"558d80d4e6ef3a90","name":"group pers","server":"5678fc55.330834","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":["group.pers_1","group.pers_2"],"entityidfiltertype":"list","outputinitially":true,"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":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"status","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$replace(data.entity_id, 'group.', '',1)","valueType":"jsonata"}],"x":180,"y":600,"wires":[["b2a1d7392b12278d","25e703e5b7766823"]]},{"id":"3c082e0b3964b80f","type":"server-state-changed","z":"558d80d4e6ef3a90","name":"door","server":"5678fc55.330834","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.declick_usa","entityidfiltertype":"exact","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":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"topic","propertyType":"msg","value":"door","valueType":"str"},{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"x":170,"y":700,"wires":[["b2a1d7392b12278d","25e703e5b7766823"]]},{"id":"5678fc55.330834","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

Can be used only one join-wait node?

What is a join-wait node? Did you install a node to get that?

this one:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.