adaptive-lighting/docs
Alistair Galbraith 9e29a21197
Add manual_control_on_external_turn_on option (#1490)
* feat: add `adapt_only_on_ha_turn_on` to skip adapting externally turned-on lights

When a light turns on from `off` via a source outside Home Assistant — a
physical wall switch or a hub/manufacturer scene (e.g. Lutron) — and
`detect_non_ha_changes` is enabled, Adaptive Lighting adapts the light on the
resulting `off` → `on` event, overriding the brightness/color the external
source just set. Disabling `detect_non_ha_changes` avoids this but also stops
detection of manual changes to already-on lights; the two behaviors were
coupled to a single flag.

Add `adapt_only_on_ha_turn_on` (default `false`, requires `take_over_control`).
When enabled, an `off` → `on` transition with no matching HA `light.turn_on`
context is marked `manual_control` and left untouched, independent of
`detect_non_ha_changes`, decoupling the two behaviors.

The off→on guard reduces to the previous expression when the option is `false`,
so existing configurations are unaffected. Includes a parametrized regression
test, docs, and regenerated strings/services/README via
scripts/update-generated-content.

Refs #435

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Shorten generated turn-on option description

* Document shared turn-on policy limitations

* Name external turn-on policy after manual-control behavior

* Clarify settings needed to adapt unmatched turn-ons

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2026-09-06 21:02:30 +02:00
..
advanced Add manual_control_on_external_turn_on option (#1490) 2026-09-06 21:02:30 +02:00
assets Add documentation site with Zensical framework (#1385) 2026-01-12 23:39:57 +01:00
overrides/partials/integrations/analytics Add documentation site with Zensical framework (#1385) 2026-01-12 23:39:57 +01:00
automation-examples.md Pause brightness at minimum using existing manual-control resets (#1578) 2026-09-06 20:46:14 +02:00
CNAME Add documentation site with Zensical framework (#1385) 2026-01-12 23:39:57 +01:00
configuration.md Add manual_control_on_external_turn_on option (#1490) 2026-09-06 21:02:30 +02:00
getting-started.md ci: support one year of Home Assistant releases (#1546) 2026-09-06 12:17:22 +02:00
index.md docs: clarify that UI setup needs no YAML entry (#1031) 2026-09-06 10:43:37 +02:00
run_markdown_code_runner.py Add documentation site with Zensical framework (#1385) 2026-01-12 23:39:57 +01:00
see-also.md Migrate to markdown-code-runner's built-in include_section() (#1417) 2026-01-26 09:01:50 +01:00
services.md Register service actions in async_setup for Bronze tier compliance (#1403) 2026-09-06 13:04:18 +02:00
troubleshooting.md Add manual_control_on_external_turn_on option (#1490) 2026-09-06 21:02:30 +02:00