RiWo
23 March 2024 14:17
1
I'm trying to send a variable from Node-Red to Domoticz via http. In Node-red I make a variable available in a msg.payload, but if I do it as below, I get the value 0 for the dummy variable in Domoticz.
/json.htm?type=command¶m=udevice&idx=&nvalue=0&svalue={{msg.payload}}
In Domoticz I always see the value 0 appear, but if I change {{msg.payload}} to 21, then I see exactly 21 appear in Domoticz.
What am I doing wrong?
E1cid
23 March 2024 14:19
2
Hi and welcome.
Try {{payload}}
not {{msg.payload}}
from the sidebar help text
For example, if the url is set to example.com/{{{topic}}}
, it will have the value of msg.topic
RiWo
23 March 2024 15:38
3
Hi E1cid,
Thank you!
It functions. I searched and tried all day. Sometimes the solution can apparently be very simple.
Greeting,
Rien
system
Closed
25 June 2024 19:43
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.