Please sign in to access this page

EasyHASS

EasyHASS

1 devlog
9h 19m
•  Ship certified
Created by Orion

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.

Timeline

Ship 1

0 payouts of shell 0 shells

Orion

1 day ago

Orion Covers 1 devlog and 9h 19m
Orion
Orion
9h 19m 1 day ago

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.

Update attachment