Skip to content

ComputerWhisperers/LHACM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LHACM

Version Home Assistant Providers License

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.

Current scope

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.

Installation

Copy custom_components/lhacm into your Home Assistant custom_components directory and restart Home Assistant.

Configuration

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

Services

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.

Repository layout

For Home Assistant integrations, LHACM expects one of these layouts:

  • custom_components/<domain>/manifest.json
  • <domain>/manifest.json
  • manifest.json in repository root

The installed integration is copied to custom_components/<domain>.

About

Local Home Assistant Component Manager for GitLab and Gitea custom repositories

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages