How do I make values of selected sensors available via API?

Hey,
for a project, I want to access selected sensor data of home assistant (i.e., temperature readings of a zigbee sensor) via an API endpoint, provided by home assistant. The data shall be accessed via HTTP get from an external server.
I managed to do this via the bearer-token on the same port as the web frontend. However, this exposes every entity which I don’t want to do (i.e., for security reasons).

Is there a way to only expose selected sensors or entities via API endpoints instead of granting full access?

Thanks for your help,
Alex

But I do not think there is a way to limit the access to only certain sensors.

You might be able to use Node Red instead and then make HTTP nodes that handle it like you want.

1 Like

Thanks for this idea. Got it to work with Node red :slight_smile: