mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-16 08:44:03 +02:00
Promotes the master switch's current_brightness, current_color_temp, and sun_position attributes to first-class sensor entities with SensorStateClass.MEASUREMENT so HA's recorder graphs them as numerics. This is the explicit complement to the killed add-lovelace-card: stock apexcharts-card / History panel becomes the charting story once values live on graphable entities. Architecture: master switch publishes computed outputs to hass.data[DOMAIN][entry_id]["outputs"] after each curve tick, then fires a per-entry dispatcher signal. Sensors subscribe to the signal and read from the cache. Single computation path; pure-reader sensors. Naming: "Output brightness" / "Output color temp" disambiguate from adapt-brightness switch and min/max number entities. "Sun position" needs no prefix. sun_position is solar elevation in degrees (unit °) sourced from the user's configured Sun2 / sensor.sun_* entity. 4 artifacts: proposal, design (8 decisions), spec (5 requirements, 13 scenarios), tasks (7 groups, 33 checkboxes). Strict-validate green. |
||
|---|---|---|
| .. | ||
| changes | ||
| specs | ||
| config.yaml | ||