Hi,
Have been working with node-red for the past couple of weeks, and have successfully migrated from hass.io, extremely happy!
A newbie question:
I sometimes have a set of nodes that combine into a "function" - for example, the input payload is the name of a radio station to stream, and the nodes interpret that into a URL and then send it to the android streamer for streaming.
I call this "function" from multiple flows (some handle HTTP requests, some handle IR signals and some for automation) so I've put a link-in node at the beginning, and then when I need to set a radio station from any flow, I just set the payload and use a link-out node to attach to the radio module.
All's great, but link-out is asynchronous and does not return, so I have no way to do something when the radio stuff is done.
Is there a way to pack a set of nodes into a callable "module" of some sort, and call it synchronously?
Thanks!
Moti