Request node JSON body using variables or payload #87
Unanswered
fuzzydunlop1976
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Unfortunately I cannot help you (atm) with your question, but maybe if you can help me with my own (see my discussion. Can you send me an export from your flow using program tag etc?) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've just started to play around with node-red and this contrib is helping me learn - many thanks for all of the work that must have gone into it. I'm in awe of the possibilities that open up. One quick question.
I've managed to start my washer using the 'request' node, selecting the 'program' tag, using the 'start_program' action, giving my HAID and then providing the program name formatted as 'data' and 'key' that I want to start in the JSON body.
Is it possible to reference either the incoming msg payload or a variable in the body or does it need to be written as JSON each time?
Earlier in my flow, I'd saved the program that had been set on the machine when the door closes as a flow variable object. I was hoping to be able to utilise this object back in the request node when the time comes to actually start the washer. The error messages suggest the field is expecting JSON - Could anyone point me in the direction of if this is possible?
Beta Was this translation helpful? Give feedback.
All reactions