adaptive-lighting/custom_components/adaptive_lighting
fir3man 0a768be866 fix: handle black sleep color and anchor match_rgb trajectory at sunset
Address review findings on transition_until_sleep_ct_mode: match_rgb:

- A black `sleep_rgb_color` (or a black blend) has no chromaticity, so
  there is no color temperature to match. Fall back to the linear kelvin
  interpolation so color-temp-only lights end at `sleep_color_temp`
  instead of being clamped to `min_color_temp`.
- The kelvin -> RGB -> CCT round trip is approximate, so the CCT of the
  RGB color shown right after sunset is not exactly `min_color_temp`.
  Anchor the start of the trajectory to that CCT so there is no color
  temperature step at sunset.
- Document the accepted range (0.1-10) of `transition_until_sleep_ct_curve`
  in README.md and docs/configuration.md, as the table formatter does.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-05 06:34:45 +02:00
..
translations feat: make CT-from-RGB-blend opt-in via transition_until_sleep_ct_mode 2026-09-30 22:15:20 +02:00
__init__.py Register service actions in async_setup for Bronze tier compliance (#1403) 2026-09-06 13:04:18 +02:00
_docs_helpers.py Register service actions in async_setup for Bronze tier compliance (#1403) 2026-09-06 13:04:18 +02:00
adaptation_utils.py Fix missing follow-up commands during multi-light interception (#1560) 2026-09-06 14:03:08 +02:00
color_and_brightness.py fix: handle black sleep color and anchor match_rgb trajectory at sunset 2026-10-05 06:34:45 +02:00
config_flow.py Implement collapsible sections for options flow (#1313) 2026-09-06 17:18:42 +02:00
const.py feat: make CT-from-RGB-blend opt-in via transition_until_sleep_ct_mode 2026-09-30 22:15:20 +02:00
diagnostics.py Add on-demand Home Assistant diagnostics (#1575) 2026-09-06 19:11:55 +02:00
docs_gen.py Migrate to markdown-code-runner's built-in include_section() (#1417) 2026-01-26 09:01:50 +01:00
hass_utils.py fix: track mixed targets during light turn-off (#1584) 2026-09-07 07:41:28 +02:00
helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
manifest.json chore: release v1.32.0 (#1580) 2026-09-06 22:06:43 +02:00
services.yaml feat: add expand_light_groups option (#1462) 2026-09-06 21:13:35 +02:00
strings.json feat: make CT-from-RGB-blend opt-in via transition_until_sleep_ct_mode 2026-09-30 22:15:20 +02:00
switch.py feat: make CT-from-RGB-blend opt-in via transition_until_sleep_ct_mode 2026-09-30 22:15:20 +02:00