adaptive-lighting/custom_components/adaptive_lighting
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
..
translations Implement add-output-sensors: 36/41 tasks complete 2026-05-21 10:11:52 +02:00
__init__.py Implement add-lux-target: reduce-only ambient lux gate 2026-05-25 16:11:52 +02:00
adaptation_utils.py Individual manual control of brightness and color (#1356) 2025-12-22 22:55:16 -08:00
color_and_brightness.py Implement add-lux-target: reduce-only ambient lux gate 2026-05-25 16:11:52 +02:00
config_flow.py Fix options-flow conditional reveal + empty lux-sensor save 2026-05-30 22:06:59 +02:00
const.py Implement add-lux-target: reduce-only ambient lux gate 2026-05-25 16:11:52 +02:00
hass_utils.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
manifest.json Implement add-lux-target: reduce-only ambient lux gate 2026-05-25 16:11:52 +02:00
number.py Implement add-output-sensors: 36/41 tasks complete 2026-05-21 10:11:52 +02:00
sensor.py Implement add-lux-target: reduce-only ambient lux gate 2026-05-25 16:11:52 +02:00
services.yaml Groups 8 + 9: strings, services.yaml, README, CHANGELOG (37/53) 2026-05-16 14:59:09 +02:00
strings.json Implement add-lux-target: reduce-only ambient lux gate 2026-05-25 16:11:52 +02:00
switch.py lux_reduction sensor: report reduction %, not retained factor 2026-05-30 22:35:59 +02:00