Skip to content

Architecture ​

How LCARdS is built: the Home Assistant integration, the frontend bundle, the core singletons and the cards on top of them. These pages are written for contributors and checked against the code; each cites the source files it describes. To build something, start with the Development guides; for configuring cards, see the user docs.

Read Systems Overview first: it shows how the pieces fit at runtime and links everything else.


Overview ​

PageWhat it covers
Systems OverviewRuntime diagram, which element runs where, the core services, packs
Home Assistant IntegrationThe Python custom integration: boot, static paths, bundle loading, WebSocket API, actions, push channel, diagnostics, build and release

Cards ​

PageWhat it covers
Card FoundationLCARdSNativeCard and LCARdSCard: lifecycle hooks, config processing, HASS flow, entity access, templates, actions, rules integration, cleanup
Layout View and Layout Cardlcards-layout-view, lcards-layout-card and the Layout Studio: the shared grid engine, the editor overlay, persistence, visibility-driven row sizing
Shell StrategyThe custom:lcars-shell dashboard strategy: registration, options, what generate() builds
ChartsThe chart card: sources[], the series fetcher, the ApexCharts adapter
AstrometricsThe astrometrics card: three.js scene, camera, ephemeris and clock, models
MSD PipelineThe MSD card: config processing, anchors, overlays, rendering, controls
Routing Engine (RouterCore)MSD line routing: trunks, lanes, corners

Animation ​

PageWhat it covers
Animation ArchitectureWho fires each trigger, scopes, presets, playback features, the files

Core subsystems ​

The singletons on window.lcards.core, one page each, plus the initialization order and how HASS reaches them: start at Core Subsystems. The ones cards meet most often are the Systems Manager, Rules Engine, Theme System, Config Manager, Animation Manager and the per-card Action Handler.

Internals ​

Lower-level implementation notes: Internals covers background animations, data source buffers, entity display formatting, the backend actions and push channel, persistent storage and shape textures.

Released under the MIT License. | About