#Example Flow Request for HTTP GET to HA Sensor
1 messages · Page 1 of 1 (latest)
Hi @cosmic mountain,
Personally I have not used this. But if you put this string into a search engine, basically your title, I see stuff that may help...
site:home-assistant.io Example Flow Request for HTTP GET to HA Sensor
Same thing I have done already and I didn't see anything.
You just need a rest sensor with attributes? That's not something you need to do in NR. How large is the JSON payload?
This was the 2nd link in that search and it is 23 posts of how to and why... https://community.home-assistant.io/t/http-get-command/3792. I don't believe you put that string in, just fluffed it off... I checked it before I sent it to you...
Well this is me just fluffing off. I don't think I can be of any more help to you. You want someone to write it for you, I don't do that. Noone should.
this is not using node red
I am asking specifically for Node-RED, not rest. I understand using REST is possible, but I am not asking to use that.
You simply need to use a http node to create a get request to the API. Then, you can use a JSON node to parse the data and then pass that into a sensor or action node.
"then pass that into a sensor or action node." thats the issue i am having. i am not sure how
i have no issues with node red, when i am sending data from node red into home assistant thats where i am running into issues.
i do not understand what goes where and how it needs to be formatted
https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/action.html#input Everything coming out of the JSON node should be under msg.payload already. So, you should be able to access them with msg.payload.<property> pretty easily.
Thanks. Ill check it out when i get back home this afternoon