Techncially, i have done my first Node-Red flow using an inject -> http-request -> html nodes.
This way i see e.g. my current Temp (example: “15.4”).
What i am struggling around is how to get this value back into HA to see it on the Lovelace UI ?
If you just want to get the temperature value over time you don’t need node red for this
I’d suggest to use a command line sensor instead (and you can use this value in bode red later if needed!)
[{"id":"3c080ae1.d10b86","type":"http in","z":"5eb3594f.d294b8","name":"","url":"/currenttemp","method":"get","upload":false,"swaggerDoc":"","x":238,"y":992,"wires":[["40b6de61.a2f"]]},{"id":"3850921d.7a778e","type":"http response","z":"5eb3594f.d294b8","name":"","statusCode":"200","headers":{},"x":764,"y":992,"wires":[]},{"id":"40b6de61.a2f","type":"template","z":"5eb3594f.d294b8","name":"Do the stuff to get temp. Set payload to temp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"22","output":"str","x":506,"y":992,"wires":[["3850921d.7a778e"]]}]
just tried with a template node, code: { "data": { "entity_id":"sensor.mywetter_temp","value" : {{payload}} } }
Unfortunately, did not work.
Surely i do s.th. silly but simple wrong…
@Ralf I had no idea they were doing that. i just looked into it.
I have not used my api key in a while as my weather station died a few months back. i just got a new one at xmas, but have not added the api/weather stuff back to my home assistant yet.