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.
- Standard channel codes (
- 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:
- Open HACS > three dots in the top right > Custom repositories.
- Add URL:
https://github.com/burymichu/as7343-spectrum-card(Category: Dashboard). - Click Download, then refresh your browser (
Ctrl + F5).
Card YAML:
type: custom:as7343-spectrum-card
title: Light Spectrum
