Rest API / Websocket API / custom frontend


I would like to make a custom simple web frontend in html/css/JS for my HA installation.

I have read some docs about rest/restful API and websocket API, but this is currently not very clear for me…

Should I use the Websocket or Rest API? Are there any limitation for using one of them? Are all types of entities adressable through these APIs?

Any help would be very appreciated,


I’m currently trying to do a similar thing and by the looks of it, WebSockets have very similar (limited) capabilities compared to the REST APIs.