AS7343 14-Channel Light Spectrum Card (adaptation of @goatboynz's AS7341 card)

Hey everyone!

I wanted to share a custom Lovelace card for the ams-OSRAM AS7343 14-channel spectral sensor:

GitHub Repository: GitHub - burymichu/as7343-spectrum-card · GitHub


Origin & Credit

This card is an adaptation of HA-par-spectrum-card by @goatboynz, which was originally created for the AS7341 sensor. Thanks to @goatboynz for open-sourcing their work!


What’s adapted for the AS7343:

The newer AS7343 sensor has 14 channels (spanning 405nm up to 855nm NIR, plus broadband VIS clear) instead of the 8 channels on the AS7341. This card adapts the visualization for the new hardware:

  • 14-Channel Mapping: Configured for the AS7343 wavelength distribution (F1–F8, FZ, FY, FXL, NIR, and clear).
  • Auto-Discovery: With 14 channels, typing out every entity ID in YAML can be tedious. The card automatically detects your sensor entities:
    • Standard channel codes (_f1, _fz, _fxl, _nir…)
    • Nanometer naming used in @latonita’s ESPHome branch (380nm, 415nm, 445nm, 590nm, 910nm…)
    • Generic entity names or manual YAML overrides if you prefer.
  • Summary Ratio Tiles: Added real-time calculation badges below the chart:
    • R:FR (690nm / 745nm): Phytochrome balance for plant morphology.
    • B:R (450nm / 690nm): Blue to red proportion.
    • PPFD / PAR Proxy: Photosynthetic flux approximation.
    • Lux & CCT: Automatically displayed if matching illuminance/color temp sensors are active.
  • Glitch Filter: Discards occasional corrupted I2C packet spikes (>18k counts).

Quick Installation:

You can install it via HACS:

  1. Open HACS > three dots in the top right > Custom repositories.
  2. Add URL: https://github.com/burymichu/as7343-spectrum-card (Category: Dashboard).
  3. Click Download, then refresh your browser (Ctrl + F5).

Card YAML:

type: custom:as7343-spectrum-card
title: Light Spectrum

Updated to version 1.1.0

What’s Changed in v1.1.0

  • 1:1 ams-OSRAM Mathematical Spectrum Reconstruction: Full vendor basis matrix (SPECTRAL_BASIS.as7343) with 125 spectral points (380–1000 nm at 5 nm steps). Based on GitHub - latonita/HA-par-spectrum-card · GitHub
  • Physical Spectral Irradiance: Graph and Y-axis scaled to absolute physical units in mW/(m²·nm) via Planck-Einstein energy integration across the PAR waveband.
  • Dynamic Peak Wavelength Tracker: Header badge tracking dominant peak wavelength with spectral color indicator.
  • Universal Optical Metrics: Clean summary grid showing Peak Wavelength & Band, calibrated R:FR (690/745 nm), B:R (450/690 nm), and PPFD / Lux / Clear.
  • Interactive Inspection Tooltip: Hover/touch inspection displaying exact wavelength, physical irradiance, and raw physical sensor counts.
  • Universal Auto-Discovery: Seamless compatibility with burymichu/esphome-as7343, latonita, and generic naming schemes.