How sandro-defender/esphome-max7219-matrix-clock works
This repository combines ESPHome MAX7219 clock firmware with a browser configurator. The user workflow is to choose a hardware target and settings, inspect a firmware-matched display preview, verify the published release, then download generated device YAML. The graph includes the firmware renderer and documented clock/control capabilities, plus the configurator’s UI, preview, configuration, and installer layers. Firmware YAML packages and several configurator details are not in the supplied tree, so those runtime internals are represented only where the README supports them.
Main entry points: App.tsx Configurator app · sections.tsx Settings and install sections · usePreview.ts Preview runtime · render.ts Scene renderer
Components 20
Clock firmware
- Clock renderer
packages/max7219_clock_renderer.h - ESPHome clock component
packages/max7219_clock_esphome.h - Clock and HA controls
packages/max7219_clock_renderer.h
Configurator
- Configurator app
web-configurator/src/App.tsx - Settings and install sections
web-configurator/src/sections.tsx - Entity visibility
web-configurator/src/EntityVisibility.tsx - Settings model
web-configurator/src/settingsModel.ts - Hardware targets
web-configurator/src/hardware.ts
Display preview
- Preview runtime
web-configurator/src/usePreview.ts - Scene renderer
web-configurator/src/render.ts - Preview timeline
web-configurator/src/previewTimeline.ts - Font engine
web-configurator/src/fonts.ts - Font catalog
web-configurator/src/fontCatalog.ts - Live display stage
web-configurator/src/LiveStage.tsx - Matrix canvas
web-configurator/src/MatrixCanvas.tsx
Configuration and install
- Saved configuration
web-configurator/src/storage.ts - Device YAML generator
web-configurator/src/yaml.ts - Release verification
web-configurator/src/release.ts
Other components
- Device configurator user
- GitHub releases
Connections 21
- Device configurator user → Configurator app: configures
- Configurator app → Settings and install sections: renders
web-configurator/src/App.tsx - Settings and install sections → Entity visibility: renders
web-configurator/src/sections.tsx - Configurator app → Saved configuration: saves settings
web-configurator/src/App.tsx - Configurator app → Device YAML generator: generates install YAML
web-configurator/src/App.tsx - Configurator app → Release verification: checks release
web-configurator/src/App.tsx - Release verification → GitHub releases: verifies release
- Settings and install sections → Hardware targets: selects target
web-configurator/src/sections.tsx - Saved configuration → Settings model: sanitizes settings
web-configurator/src/storage.ts - Device YAML generator → Saved configuration: sanitizes config
web-configurator/src/yaml.ts - Configurator app → Preview runtime: drives preview
web-configurator/src/App.tsx - Preview runtime → Scene renderer: renders scenes
web-configurator/src/usePreview.ts - Preview runtime → Preview timeline: advances timeline
web-configurator/src/usePreview.ts - Scene renderer → Font engine: draws text
web-configurator/src/render.ts - Scene renderer → Font catalog: selects fonts
web-configurator/src/render.ts - Font catalog → Font engine: loads preview fonts
web-configurator/src/fontCatalog.ts - Live display stage → Matrix canvas: renders matrix
web-configurator/src/LiveStage.tsx - Configurator app → Live display stage: shows preview
web-configurator/src/App.tsx - ESPHome clock component → Clock renderer: uses renderer
packages/max7219_clock_esphome.h - Clock renderer → Clock and HA controls: implements display behavior
packages/max7219_clock_renderer.h - Device YAML generator → ESPHome clock component: configures firmware