Hi, plese help a newbie which can't even formulate its questions properly I have two of them:
- Lets say i have a switch, which after action sends what was done like a confirmation that task was done:
http://...../switch?id=sw1&action=off
or...&action=on
- this is my httpIn node.
I want to store this value in to flow.sw1.action variable. Is it possible to do this with "change" node?
I tried set flow.{{msg.payload.id}}.action
to 0
, but after i looked into context data tab i found some mess with all this curly brackets inside
- Before my switch performs any action it does similar call to the same httpIn node to get current state -
http://...../switch?id=sw1&action=get
I want to format response based on another variable flow.sw1.state and return it to my switch.
I tried to use template node and form responce like this {{flow.{{msg.payload.id}}.state}}
, but again, result not as i expected. I get .req}}.state}}
in the response body.
How can i use variable value as part of name of the another variable?
Regards
PetrasL