How to get a sensors state with http request?

Hi there,
One of my devices (Wallbox) should get the State of Charge from my EV.
Since I am running an integration, which does connect to the online system of that car, this information could be provided by HomeAssistant.
To do this, I would like to write the sensors value into a text file - or deliver it with a http response…

for example:
http://HomeAssistant-IP:PORT/sensor_name
should then just display the sensors value

is this already possible?
Unfortunately, I can’t test this atm, since I don’t have any way to connect locally to my lan atm…

Yes.

Specifically: GET /api/states/<entity_id>

1 Like

ok, thanks :slight_smile:
That’s what I’ve found - but since I am not local connected, I just got an “401: unauthorized” - so was not sure … Will test it later at home again.