Here’s a possible solution that may work that doesn’t rely on a timer.
[{"id":"ba35cbb2.442198","type":"ha-get-entities","z":"5eb3594f.d294b8","name":"","rules":[{"property":"","logic":"is","value":"","valueType":"str"}],"output_type":"array","output_empty_results":true,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":358,"y":992,"wires":[["ece746d9.05fe48"]]},{"id":"3aabbfe3.42285","type":"inject","z":"5eb3594f.d294b8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":992,"wires":[["ba35cbb2.442198"]]},{"id":"ece746d9.05fe48","type":"switch","z":"5eb3594f.d294b8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"empty"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":504,"y":992,"wires":[["f03d0c54.d0fec"],["8509e2bc.09bdb"]]},{"id":"3429abc5.964a14","type":"debug","z":"5eb3594f.d294b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1052,"y":992,"wires":[]},{"id":"8509e2bc.09bdb","type":"split","z":"5eb3594f.d294b8","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":632,"y":1040,"wires":[["ab3e8434.91ed68"]]},{"id":"ab3e8434.91ed68","type":"template","z":"5eb3594f.d294b8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.attributes.friendly_name}}","output":"str","x":770,"y":1040,"wires":[["716378bf.36ae88"]]},{"id":"716378bf.36ae88","type":"join","z":"5eb3594f.d294b8","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":",","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":904,"y":1040,"wires":[["3429abc5.964a14"]]},{"id":"f03d0c54.d0fec","type":"change","z":"5eb3594f.d294b8","name":"Default Payload","rules":[{"t":"set","p":"payload","pt":"msg","to":"no results","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":662,"y":992,"wires":[["3429abc5.964a14"]]}]