Im wondering if it is somehow possible to save a variable from within a subflow and change node to a dynamic path like:
flow.$parent.$env('Device Name').temperature
or simmilar.
to get a flow variable stored in the path of mydevicename.temperature
I found out how to do it in a function node (see below if you are searching for that) but was wondering if escapeing $ inside a change node is possible...
Function node solution:
flow.set("$parent."+env.get('Device Name')+".temperature", msg.payload);