Subflow in NodeRed is a group of automations, that is very easy to copy and paste and simplify the node.
I wonder, can I do this in YAML file? What code to use?
For instance, I want to trigger notifications in the same way and do not want to repeat the notifications code on many automations.