Manage HACS
ha_manage_hacsInstall or update HACS repositories using numeric ID or owner/repo path, and add custom GitHub repositories to HACS by specifying category.
Instructions
Manage HACS (Home Assistant Community Store) — install/update or add custom repositories.
Use action="download" to install or update a repository, or
action="add_repository" to register a custom GitHub repository with HACS. This
tool performs writes; to search the store or read repository details use
ha_get_hacs_info.
Examples:
Install latest: ha_manage_hacs(action="download", repository_id="441028036")
Install a version: ha_manage_hacs(action="download", repository_id="piitaya/lovelace-mushroom", version="v4.0.0")
Add a custom repo: ha_manage_hacs(action="add_repository", repository="owner/repo", category="lovelace")
Caveats: Installing an integration usually needs a Home Assistant restart to
activate; new Lovelace cards need a browser cache clear. repository_id accepts a
numeric HACS ID or an owner/repo path; add_repository requires owner/repo
format plus a matching category.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'download' to install/update, or 'add_repository' | |
| version | No | Specific version to install (action='download') | |
| category | No | Repository category (action='add_repository') | |
| repository | No | GitHub repo 'owner/repo' to add (action='add_repository') | |
| repository_id | No | Numeric HACS ID or 'owner/repo' path (action='download') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||