Hello,
I’ve been working on creating a subflow to handle my notifications.
At first I was sending everything trough messages to the subflow (msg.title, msg.actions,…)
I wanted to make use of the “environment variables” functionality, as I figured that way I don’t have to use a change node to define all the messages but can define them in the environment variables in the subflow node.
However, I can’t seem to fill in those environment variables with anything but static elements such as a string or JSON.
I need to pass dynamic content to the subflow, for example sometimes I want to include a security camera snapshot in notification and for that I currently define msg.imageretrieveURL as “https://theurltomyhomeassistant/local/”&data.new_state.attributes.friendly_name&$now(’[Y0001][M01][D01] [H01][m01][s01]’, ‘+0100’)&".jpg"
In the subflow in the notifcation node i then use msg.imageretrieveURL to define where the snapshot is located.
Is my understanding correct that I can’t pass such dynamic content to the subflow using environment variables, but have to continue using messages?