I have a function node with this:
msg.payload = {
data: {
"num_repeats": 1,
"delay_secs": 0.4,
"hold_secs": 0,
"device": "ac",
"command": "down"
}
};
return msg;
which flows into a call service node with just the domain (remote), service (send_command), and entity (remote.broadlink).
I want to use the msg.payload as Data, but when I try to use {{ payload }} as an expression or JSON I get an error:
JSONataError: Expected ":", got "}"
How do I write this properly?