adaptive-lighting/openspec/specs
Casey 76f04237d7 lux_reduction sensor: report reduction %, not retained factor
The 'Lux reduction' sensor published the retained brightness factor, so it
read 100% when nothing was being reduced (0% actual reduction) — the label
and value were inverses. Now it publishes the actual reduction:
100 - round(factor*100), so 0% = no dimming, higher = more cut, None when
the gate is inactive.

Updates the output-sensors spec scenarios to match (71 -> 29, 100 -> 0,
adds the gate-inactive None case) and adds a publish-level value test
(none existed — the prior scenarios were never enforced in code).
2026-05-30 22:35:59 +02:00
..
lux-feedback Archive add-lux-target: 26/26 + sync main specs 2026-05-25 16:15:16 +02:00
options-flow Archive add-lux-target: 26/26 + sync main specs 2026-05-25 16:15:16 +02:00
output-sensors lux_reduction sensor: report reduction %, not retained factor 2026-05-30 22:35:59 +02:00
runtime-range-controls Implement add-output-sensors: 36/41 tasks complete 2026-05-21 10:11:52 +02:00