#Example Flow Request for HTTP GET to HA Sensor

1 messages · Page 1 of 1 (latest)

cosmic mountain
#

Can someone create me an example flow to GET from a http endpoint to send to a sensor to HA? If there is a better way (using Node RED), not using the REST integration, I would like to know. I have a large sum of data to parse from JSON/XML i want to visualize in HA as a device with sensors.

#

Example Flow Request for HTTP GET to HA Sensor

edgy idol
#

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

cosmic mountain
#

Same thing I have done already and I didn't see anything.

coral schooner
#

You just need a rest sensor with attributes? That's not something you need to do in NR. How large is the JSON payload?

edgy idol
#

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.

cosmic mountain
cosmic mountain
coral schooner
#

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.

cosmic mountain
#

"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

coral schooner
cosmic mountain
#

Thanks. Ill check it out when i get back home this afternoon