Install a HACS repository
hacs_install_hacs_repositoryInstall a known HACS repository to add integrations, plugins, or themes, with optional version pinning. Downloads the release from its source and requires a component restart.
Instructions
Install a HACS repository, optionally pinning a version.
Calls the hacs/repository/download WebSocket command (HACS has no
separate "install" command — download installs when not yet
installed, or re-downloads in place when it is), which fetches the
repository's release from its source (typically GitHub) — an outbound
fetch beyond this HA instance and its host.
Use when: adding a HACS-managed integration/plugin/theme that is already
known to HACS (via the default store or hacs_add_custom_repository).
Not for: adding a repository HACS does not know about yet — use
hacs_add_custom_repository first.
Returns: HACS's install result, or {"error": ..., "hint": ...} if the
WebSocket call fails.
Errors: {"error": str(exception), "hint": "HACS may not be installed, or the WS command name has changed"} when repo_id/version is
invalid or the WebSocket command fails.
Limits: downloads the release over the network; requires a restart of
the affected component for most categories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | HACS repository id to install, e.g. from `hacs_list_hacs_repositories`. | |
| version | No | Specific version/tag to pin. Omit to install the latest available version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |