Have been using NR very successfully in conjunction with the Hubitat Elevation smart hub for the past year or so. Have been overwhelmed by the awesomeness of the NR platform + HE community developed nodes..
One aspect of my home automation system is to create some sequences for home or away. In order to do this I am using the "node-red-contrib-presence-faker" node. This node sets some randomized timing for execution which I can configure and control through messages - it allows me to have lights/devices whatever turn on/off on a semi-random timer. Unfortunately for my purposes I want have to have a PF node for each device rather than a group of them. I can do this the manual way of course but it starts to get rather unwieldy the more HE device nodes I add.
I would like to be able to create a subflow and pass in a list of devices and then loop through said list and separately instantiate the PF node for each device. I've got enough experience to handle the looping/parsing etc so am not worried about that bit.
My question is - does the subflow do this already, instantiate separate PF nodes based on each message in the loop or do they get overwritten/replaced each time? I have looked at the docs and am unclear about that in terms of nodes.
If it does get overwritten is there a way to dynamically instantiate nodes in a subflow or dynamically generate multiple instances of a subflow in a sequence?
Any thoughts would be appreciated...