#Does Home Assistant have an API?

1 messages · Page 1 of 1 (latest)

warped zinc
#

I'd like to build a minimal linux Xorg GUI app to display the info from my homeassistant dashboard. I'm wondering, is there an API or RPC protocol I can use to get this information from?

Worst case I figure I can just curl the web server and scrape the data, but thought I would ask.

warped zinc
celest flicker
# warped zinc ahh, ok, found this: https://developers.home-assistant.io/docs/api/rest/

yeah is the rest API and also a websocket API

depending on your requirements.

the developer documentation is the place for details though.

if you end up with specific questions relating to it then you will want the dev support section which you need to get the developer role (from the channels and roles section) to be able to see.

Home Assistant hosts a WebSocket API at /api/websocket. This API can be used to stream information from a Home Assistant instance to any client that implements WebSockets. We maintain a JavaScript library which we use in our frontend.

warped zinc
#

ahh, thanks, didn't know about the dev docs or the dev role. that makes sense.

celest flicker