Thank you very much for your advice. It works now!
Greatly appreciated....and thanks for your patience.
Some background
The Iungo is an energy manager which gets its data from the utility smart meter port.
It has a z-wave radio for adding z-wave wall plugs and has been pretty reliable over the years. However its processing capability is limited. Though it publicizes all its data through MQTT too, adding logic for directing the wall plugs was not facilitated. Guess that might affect reliability too so the manufacturer wants to avoid that. So I have a Raspbery Pi with MQTT server and Node Red to get data also by MQTT from a Temperature and Humidity sensor and have that drive a ventilation switch (incorporated in my heat pump driven hot water supply) in order to control the humidity in our house.
As a new user I am not allowed to upload the json as an attachment so this code proved to work:
In order to post this I had to replace the IP with XXXX
[{"id":"62558479d2a986e8","type":"tab","label":"test","disabled":false,"info":"","env":},{"id":"cb1dfcde.fd153","type":"function","z":"62558479d2a986e8","name":"set payload and headers","func":"msg.url = XXXX'/iungo/api_request/object_prop_set';\nmsg.payload = {}\nmsg.payload.oid = "b05dd514";\nmsg.payload.prop = "command";\nmsg.payload.value = "on";\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":,"x":390,"y":280,"wires":[["8b7724bbca9c6524","b2d1e9d68abec398"]]},{"id":"8b7724bbca9c6524","type":"http request","z":"62558479d2a986e8","name":"Switch Extra1","method":"GET","ret":"obj","paytoqs":"query","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":true,"authType":"","senderr":false,"headers":,"x":660,"y":280,"wires":[["62d1deafa032670b"]]},{"id":"62d1deafa032670b","type":"debug","z":"62558479d2a986e8","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":280,"wires":},{"id":"db0803a027b9f5b3","type":"inject","z":"62558479d2a986e8","name":"On","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Switch","payload":"On","payloadType":"str","x":150,"y":280,"wires":[["cb1dfcde.fd153"]]},{"id":"b2d1e9d68abec398","type":"debug","z":"62558479d2a986e8","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":380,"wires":}]
Result (successful switch activation):
2/24/2025, 8:06:33 PMnode: debug 7Switch : msg.payload : Object
{ oid: "b05dd514", prop: "command", value: "on" }
2/24/2025, 8:06:33 PMnode: debug 5
Switch : msg.payload : Object
object
ok: true
type: "response"
time: 0.02093876095023
rv: object
systime: 1740423994
seq: 1
error: false