Add a custom HACS repository
hacs_add_custom_repositoryRegister a custom repository with HACS by URL and category so it becomes installable. Use when the repository is not in the default store and must be added before installation.
Instructions
Register a custom repository with HACS so it becomes installable.
Calls the hacs/repositories/add WebSocket command (plural — distinct
from the singular hacs/repository/* commands used elsewhere in this
namespace) with url as its repository field and category. This
only registers the repository — it does not install it.
Use when: a repository is not in HACS's default store and needs adding
before it can be installed.
Not for: installing an already-registered repository — use
hacs_install_hacs_repository.
Returns: HACS's add 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 url/category is invalid
or the WebSocket command fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the repository to register with HACS, e.g. a GitHub repo URL. | |
| category | Yes | HACS category for the repository: integration, plugin, theme, template, appdaemon or python_script. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |