Help on climate sensor - node red

Hi, I have sucessfully integrated the climate integration from HA and use the climate sensors. For setting temperature points, I use the set_temperate call, so far OK when I use a fix number for the temperature. Right now, I want to set_temeparture by using a flow variable which was set before (I call it “SollwertBar”). This does not work, just brings me some error. Who could help me on this, may just strugglig with JSOnata expression. my test flow:

[{"id":"a3a6a728863b4b91","type":"api-call-service","z":"875324fd.7af898","name":"22.7 °C H-Lounge","server":"a11aa034.815b8","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.heizung_ventil_lounge","data":"{\"temperature\":$flowContext(\"SollwertBar\")}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1484.1777420043945,"y":115.31108474731445,"wires":[["2987053850295bbf"]]},{"id":"3b4df2977f8cfb5b","type":"inject","z":"875324fd.7af898","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1280.6222767300076,"y":116.19999843173557,"wires":[["a3a6a728863b4b91"]]},{"id":"a11aa034.815b8","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Tx - JJ

If you check the debug option in the call service node it will give you what is failing. Can you set the flow variable through a change node?

[{"id":"e8100b4f0747bc85","type":"inject","z":"f80b6c338afd5483","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":820,"wires":[["c02cc0bc645471ab"]]},{"id":"c02cc0bc645471ab","type":"change","z":"f80b6c338afd5483","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"SollwertBar","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":820,"wires":[["f2b7ef7b4632b159"]]},{"id":"f2b7ef7b4632b159","type":"debug","z":"f80b6c338afd5483","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":750,"y":820,"wires":[]}]

[quote=“Mikefila, post:2, topic:356247”]

Thank you, was checking and saw, that the flow variable “SollwertBar” was not properly set. Changed that and the used the following expression for the call serice. Works now - Tx for your help

{“temperature”:$flowContext(“SollwertBar”)}