Local Home Assistant Component Manager (LHACM) is a Home Assistant custom integration for managing custom components from self-hosted or remote GitLab and Gitea repositories.
LHACM is intended to follow the HACS user model while replacing the GitHub-only repository backend with GitLab and Gitea support.
Version 1.0.0 establishes the integration foundation:
- HACS-style Home Assistant config flow with no repository host URL in setup.
- GitLab and Gitea provider clients.
- Repository metadata, tree, release, archive, and raw-file helpers.
- Services to add and install custom repositories from repository URLs.
- Safe ZIP extraction into Home Assistant custom component paths.
Full HACS parity is the target. The next major areas are frontend/websocket parity, update entities, repository indexes, background queues, repair flows, and richer validation.
Copy custom_components/lhacm into your Home Assistant custom_components directory and restart Home Assistant.
Add the integration from Settings > Devices & services > Add integration > LHACM.
Setup does not ask for GitLab or Gitea URLs. Repository locations are supplied when adding a custom repository, matching the HACS flow.
For private repositories, set an environment variable for the repository host:
LHACM_TOKEN_GITLAB_EXAMPLE_COM
lhacm.add_repository
Registers and validates a repository.
Example repository value:
https://gitlab.example.com/group/custom-integration
lhacm.install_repository
Downloads a repository archive and installs it into the target Home Assistant custom location.
For Home Assistant integrations, LHACM expects one of these layouts:
custom_components/<domain>/manifest.json<domain>/manifest.jsonmanifest.jsonin repository root
The installed integration is copied to custom_components/<domain>.