Skip to main content

LCN panel for Home Assistant

Project description

LCN Frontend

Buy Me A Coffee

This repository contains the frontend files for the Home Assistant LCN configuration panel.

A detailed guide can be found in the documentation.

Feel free to use the issue tracker to report bugs, give feetback or share ideas for improvements.

If you want to participate in development (great!) head down to the development section.

Features

Device Configuration

  • Set up modules and groups for all your LCN integrations.

    Device Configuration

  • Search for modules and groups and have them added automatically.

  • Select a module or group to access the respective Entity Configuration panel.

Entity Configuration

  • Set up Home Assistant entities for each module or group.

    Entity Configuration

  • Create new entities that map the functions of your LCN modules and configure their parameters.

    Create entity

  • New entities are automatically added to your Home Assistant configuration and you can add them to your dashboards just like for any other integration.

Development

Setting up the development environment

  • To display and test the frontend during development, you need to prepare a Home Assistant development environment. For this it is recommended to follow the instructions here.

  • You need to have node.js installed to build the frontend. Using nvm is the preferred method of installing node.js. Install nvm using the instructions provided here. Install the correct node.js version by running the following command in the root directory of your checkout working tree.

$ nvm install
$ make bootstrap
$ yarn install

Building the frontend

During development use the following command to build the frontend automatically whenever you make code changes:

$ make develop

A production build can be created by issuing:

$ make build

Preparing the frontend

Next is to symlink the build directory lcn_frontend into the Home Assistant configuration directory:

$ ln -s <lcn-frontend-dir>/lcn_frontend <hass-dir>/config/deps/lib/python3.xx/site-packages/
  • <lcn-frontend-dir> is the root working directory of the repository's checkout directory
  • <hass-dir> is the root working directory of the home-assistant-core repository's checkout directory

The <hass-dir>/config directory is created when first starting Home Assistant. Usually you have to create the mentioned sub-paths by your own. Use the appropriate Home Assistant's Python version in the path.

Alternatively, if you are working with a venv install:

export PYTHONPATH=<lcn-frontend-dir>

Starting Home Assistant

Start Home Assistant using:

$ hass -c config

Updating the Home Assistant frontend

Replace [commit_id] with the desired commit or tag name.

$ cd homeassistant-frontend
$ git fetch
...
$ git checkout [commit_id]
...
$ cd ..
$ rm -f yarn.lock
$ node ./script/merge_requirements.js
...
$ make bootstrap
$ yarn install

Code quality

You may use the following commands to ensure code quality:

  • Code formatting: yarn run format
  • Code linting: yarn run lint
  • Type linting: yarn run lint:types

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcn_frontend-0.2.6.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lcn_frontend-0.2.6-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

File details

Details for the file lcn_frontend-0.2.6.tar.gz.

File metadata

  • Download URL: lcn_frontend-0.2.6.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for lcn_frontend-0.2.6.tar.gz
Algorithm Hash digest
SHA256 ecf7542351bc8e67a68d2e7fac0fbcf1847a8ae82df3ff688edb94dba9c56b5b
MD5 cf90131d4e6aa75a5c20e0b08a0c2c4f
BLAKE2b-256 f3a759a08800a20a47fd0a16bbb46ca5eb397fd03bca5f211e5eee5516aaf04c

See more details on using hashes here.

File details

Details for the file lcn_frontend-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: lcn_frontend-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for lcn_frontend-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c53fa085957d9230a7591e5d2ecb1dc3e4e722d9e6845fe0e55e8cf3cffa8e4b
MD5 c6034a83cfde2836c1920c2d16d6db98
BLAKE2b-256 e3b8fd555442ecf32311d2a8f3c3e3ff328635cd513e10009ca0421e7b3f9701

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page