Need help on Climate sensor

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":"8d4e585f02fee72c","type":"debug","z":"875324fd.7af898","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1584.2222328186035,"y":160.80000495910645,"wires":[]},{"id":"842731a923c2c56a","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":1401.9999504089355,"y":161.1110897064209,"wires":[["8d4e585f02fee72c"]]},{"id":"741f200c9452ae3e","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":1198.4444851345486,"y":162.000003390842,"wires":[["842731a923c2c56a"]]},{"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

What error?

Your flow just consists of an inject node, an HA node and a debug node. Before I imported it I assumed you were picking up the variable from the context and passing it to the node. If you have configured it in the node then you may have to ask on an HA forum as very few (if any) here use HA.

Thank you, its just about the Syntax how to add the variable which I called SollwertBar, Tx

Von meinem/meiner Galaxy gesendet

Your jsonata has quotes around the $flowContext() remove them

{"temperature":"$flowContext('SollwertBar')"

should be
{"temperature":$flowContext("SollwertBar")}

[edit] Just spotted the missing } at end

API Error

Tried that as well, didn't really work.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.