adaptive-lighting/custom_components/adaptive_lighting
Ahmad Tawakol 3b1b84e7e8 Add a per-switch intensity dial (number entity)
Adds one `number.adaptive_lighting_intensity_<name>` entity per
configuration, alongside the Sleep Mode / Adapt Brightness / Adapt Color
switches on the same device. It is a 0-100% slider that interpolates the
adaptive result towards the switch's floor:

    output = floor_value + (adaptive_value - floor_value) * intensity / 100

100 short-circuits and returns the adaptive value untouched, so it is the
default and existing configurations behave exactly as before. 0 returns
the floor. In between the light stays fully adaptive -- the sun still
moves it at every setting, so it is a scaled curve rather than a frozen
level, which is what distinguishes this from simply scaling the
brightness band.

The floor is set by a new per-switch `intensity_floor` option: the
switch's sleep settings (`sleep_brightness`/`sleep_color_temp`) by
default, or its `min_brightness`/`min_color_temp`.

`transition_until_sleep` forces the sleep floor whatever `intensity_floor`
says. With that option on, the adaptive color temperature after sunset
descends below `min_color_temp` towards `sleep_color_temp`, so a
`min_color_temp` floor would sit above the adaptive value and turning the
dial down would make the light cooler.

Documented in the README's features and a new Intensity section, and on
the docs site as advanced/intensity.md.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 14:15:59 -03:00
..
translations Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03:00
__init__.py Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03: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 Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03:00
config_flow.py Implement collapsible sections for options flow (#1313) 2026-09-06 17:18:42 +02:00
const.py Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03: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
number.py Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03:00
services.yaml feat: add expand_light_groups option (#1462) 2026-09-06 21:13:35 +02:00
strings.json Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03:00
switch.py Add a per-switch intensity dial (number entity) 2026-09-07 14:15:59 -03:00