Join 3 "Get Entities" in one string with return in-between values?

Hi,

I’m trying to join 3 “Get Entities” results to one string with return in-between values

The join node only merges the payload comes from the same node.
How to merge all in one string?

Thanks in advance for any help!

[{"id":"589e8436.3aa084","type":"inject","z":"a9c3b74b.7a3168","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"86400","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":570,"y":580,"wires":[["42deeca3.2d67cc","fcae6c9.afa3a9","6987e2a2.66062c"]]},{"id":"2a908953.ee8586","type":"debug","z":"a9c3b74b.7a3168","name":"Light On","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1440,"y":580,"wires":[]},{"id":"42deeca3.2d67cc","type":"ha-get-entities","z":"a9c3b74b.7a3168","server":"31f480d3.0e3b28","name":"Get Lights On","rules":[{"property":"entity_id","logic":"starts_with","value":"light.","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":840,"y":460,"wires":[["18d39536.dc16c3"]]},{"id":"18d39536.dc16c3","type":"template","z":"a9c3b74b.7a3168","name":"Light On msg","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.attributes.friendly_name}}","output":"str","x":1100,"y":580,"wires":[["203d40e6.0fadc","211dacd.8631054"]]},{"id":"fcae6c9.afa3a9","type":"ha-get-entities","z":"a9c3b74b.7a3168","server":"31f480d3.0e3b28","name":"Get Switch On","rules":[{"property":"entity_id","logic":"starts_with","value":"switch.","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"},{"property":"entity_id","logic":"is_not","value":"switch.pi_hole","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":840,"y":580,"wires":[["18d39536.dc16c3"]]},{"id":"6987e2a2.66062c","type":"ha-get-entities","z":"a9c3b74b.7a3168","server":"31f480d3.0e3b28","name":"Get Vocolink On","rules":[{"property":"entity_id","logic":"is","value":"input_boolean\\.(tree|flow|stars)$","valueType":"re"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":840,"y":700,"wires":[["18d39536.dc16c3"]]},{"id":"203d40e6.0fadc","type":"join","z":"a9c3b74b.7a3168","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":1290,"y":580,"wires":[["2a908953.ee8586"]]},{"id":"211dacd.8631054","type":"debug","z":"a9c3b74b.7a3168","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1330,"y":660,"wires":[]},{"id":"31f480d3.0e3b28","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

I found a solution without know the answer to my question.
I just use one “Get Entities” with a long Regex :slight_smile:

(light.[a-zA-Z]+|^switch.[a-zA-Z]+|input_boolean\.(tree|flow|stars)$)

I’m sure it possible to do it without the unfriendly regex.
If someone knows the answer.

Thanks