Node Red - Inject node into Call service node

Hi, I am clearly missing something basic here and I have been banging my head against the wall for two days now… Ive watched youtube videos etc and I have been able to create flows so long as I dont need to start using message subjects and stuff… which is obviously an integral part of NR…and something I need to get my head around… but I just cant seem to get it…

Could someone please paste the export for a very simple flow for me? literally just an inject node which sends a target temperature to a call service node?

[{“id”:“04dce6466ae0d59d”,“type”:“tab”,“label”:“Heating”,“disabled”:false,“info”:“”},{“id”:“c50ece0cbcadb775”,“type”:“inject”,“z”:“04dce6466ae0d59d”,“name”:“”,“props”:[{“p”:“data.attributes”,“v”:“22”,“vt”:“num”}],“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“topic”:“”,“payloadType”:“str”,“x”:650,“y”:140,“wires”:[[“24bfb869df318434”,“34fb28ea44928c76”]]},{“id”:“24bfb869df318434”,“type”:“api-call-service”,“z”:“04dce6466ae0d59d”,“name”:“”,“server”:“910b0331.f3aae”,“version”:3,“debugenabled”:false,“service_domain”:“climate”,“service”:“set_temperature”,“entityId”:“climate.studytrv”,“data”:“{ "temperature":{{payload}} }”,“dataType”:“jsonata”,“mergecontext”:“”,“mustacheAltTags”:false,“outputProperties”:,“queue”:“none”,“x”:1080,“y”:140,“wires”:[]},{“id”:“34fb28ea44928c76”,“type”:“debug”,“z”:“04dce6466ae0d59d”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:“”,“statusType”:“auto”,“x”:1010,“y”:220,“wires”:},{“id”:“910b0331.f3aae”,“type”:“server”,“name”:“Home Assistant”,“version”:1,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true}]

Hi there please paste the code inside ``` so that the formatting is not changed. Only then it would be possible to import it to nodered.

is that better?

No, it seems there are errors in code, Please go to nodered and export a fresh code. Also try this code. It is the very basic code you asked. Hope this solves your problem

[{"id":"49e663de.e54aac","type":"inject","z":"51045e07.bbf87","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"25","payloadType":"num","x":250,"y":900,"wires":[["708cdb5b6d370a89"]]},{"id":"708cdb5b6d370a89","type":"api-call-service","z":"51045e07.bbf87","name":"Climate Set Temp","server":"d177950.2a5aa68","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.studytrv","data":"{\"temperature\":\"{{payload}}\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":420,"y":900,"wires":[[]]},{"id":"d177950.2a5aa68","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

thanks, I was SO close!

Hope it solved that, please do post if you want any more pointers