REST sensor help

I have some sensors that are able to call a single URL to log values. There is no place to put header values, etc. I would like to create a REST sensor in HA that would get updated via calling a URL.

So, the sensor would call something like this
http://192.168.1.82:8123/api/states/sensor.tempinhell?value=32

and HA would display the sensor and state. I have read a lot of posts and docs and I just can’t seem to get through my head how to do this - if someone could give me a quick example I would be very grateful.

Thanks

Rob

The rest api for HA is documented here

But you should note that the only way to enter data in to HA is by using a POST command. I am not aware of any way of entering data into HA with just a GET command.

Thanks, it has the option to do a POST. I did see the API docs, just couldn’t seem to get through my head how to set it up. But I did manage to start getting sensor data in with POST finally, so I’m good now, ty.

1 Like