Please sign in to access this page
A simple API to simplify the usage of the Home Assistant API
The API is based on an internal object system: the user must first provide his Home Assistant API root and API key, then you can list all compatible entities available on your account, then you must create an object by specifying an entity name and id, then you can do a simple on/off with the API.
You can also add groups with several objects, where you can switch all the devices in the group on or off.
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
I've implemented a whole system of accounts, groups and objects in order to have a clean and efficient API.
First of all, I added an account system to let the user choose his api key and root api.
Then I created a route to retrieve entities compatible with the API, and an object system to simplify requests to Home Assistant.
At first I made POST requests on the state of the entities, but having encountered certain bugs, I use the Home Assistant ‘turnoff’ and ‘turnon’ services to avoid bugs.
I've also added a group system, so that the user only has to make a few requests to turn off a large number of devices.