Compare commits

..

1 Commits

Author SHA1 Message Date
f13d3d2d9b Add sorting order to README 2021-01-08 12:46:10 +01:00

View File

@ -19,6 +19,15 @@ pip install requests
You need to specify the URL and [API Key](https://developers.home-assistant.io/docs/api/rest/¦) of your Home Assistant instance in the configuration file (e.g. location: `$HOME/.config/albert/homeassistant_config.json`). You need to specify the URL and [API Key](https://developers.home-assistant.io/docs/api/rest/¦) of your Home Assistant instance in the configuration file (e.g. location: `$HOME/.config/albert/homeassistant_config.json`).
You can generate a new long lived API Key by clicking your name in the bottom left in the Home Assistant UI. You can generate a new long lived API Key by clicking your name in the bottom left in the Home Assistant UI.
Example:
```
{
"hass_url": "http://192.168.1.2:8123",
"hass_key": "s1GeOobviEbg019H32dTs973GU2sJ3zBIMETxKSLCzoJulgljXB31m1aqq2GFWe2TsaLRxYo0J08FHxEdXxzSzNJMNZS3OjfkYVmOQDMbCRIH0kCtisGVi2EQoKbDeqq"
}
```
The item order is based on the entity class. Lights and switches are shown first, then scenes and groups etc. You can change the order in the configuration file with `sort_order`. See the default sorting order below: The item order is based on the entity class. Lights and switches are shown first, then scenes and groups etc. You can change the order in the configuration file with `sort_order`. See the default sorting order below:
```json ```json
{ ... { ...