# Easy HASS 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. ## Open API Docs The API offers a built-in swagger; just go to `[host]:[port]/swagger` and you'll have access to a list of all possible queries and a description of each parameter. ## Installation ### Prerequisites - Bun ### Installation 1. Clone the repository and install dependencies ```sh git clone https://github.com/oriionn/easyhass.git cd easyhass bun install ``` 2. Copy the .env and edit it ```sh cp .env.example .env nano .env ``` 3. Start it ```sh bun start ``` ## License This project is under [MIT License](LICENSE).