#mustache templates question
1 messages · Page 1 of 1 (latest)
You can use the Python get function in Jinja as well
So flow.get(flow.get("light") should work
You can also do
flow[flow.light]
I will try that later, thanks
This one does not work in a event state node, entity_id fiel.
I am trying to access a flow variable at the parent from a subflow.
flow.get("light") gives me $parent.light_main_light, then I need to use flow.get("$parent.light_main_light") to get flow from parent, which will be the final entity_id.
this does not work
.
this gives me $parent.light_main_light, as expected
"InputError: Entity could not be found in cache for entityId: "
this one gives me
message: "InputError: Entity could not be found in cache for entityId: $parent.light_main_light"
@hushed ravine Apologies for jumping in, but did you say the flow variable is in a subflow? It might be violating context. This link and the following video may help. https://discourse.nodered.org/t/flow-variables-in-subflows/65938