I am trying to write som Python scripts that needs to access Home Assistant. There are 2 different API’s, the REST one and the websocket one.
- The REST API seems to be obsolete, but there is nothing in the docs that actually state that. Reading closed issues though, it is very obvious that any proposed fixes/changes gets closed with some “don’t want to” comment.
- The websocket API is obviously tailored for the frontend and not external applications. For instance, there seems to be no way to fetch state of a single entity?
I cannot find ANY reference in either API for areas, which is what I need in my application. I found a refused PR to add it to the REST interface, so I am not the only one that needs it.