adaptive-lighting/custom_components
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
..
adaptive_lighting fix: handle black sleep color and anchor match_rgb trajectory at sunset 2026-10-05 06:34:45 +02:00