adaptive-lighting/docs
Mathias Berglund d26fadc5bb ✨ Add adaptive_lighting.get_commands service
A service that only returns data: for each light, the `light.turn_on`
calls Adaptive Lighting would make to adapt it, now or for a given time
of day (today), without making them. Each call has its service data
and the time to wait before it (between split calls, with
`separate_turn_on_commands`).

This lets automations use Adaptive Lighting's curves for other times,
e.g. to step lights to later or earlier settings from a button: when
the automation makes the calls, Adaptive Lighting treats them like any
other change (with `take_over_control`, it stops adapting those lights
until manual control is reset).

- Only the lights and light groups in the switches' `lights` are
  allowed. Without `entity_id`, each gets the calls of the switch it's
  in (of several, the one that's on). A light group is replaced by its
  members when the switch expands light groups, as Adaptive Lighting
  does.
- Omitted options follow the switch (its adapt switches,
  `prefer_rgb_color` and `initial_transition`), and settings are for
  when the transition ends, as for the regular adaptation. Manual
  control and whether the lights are on don't change the calls.
- The calls are built by the same code as Adaptive Lighting's own,
  factored out of `prepare_adaptation_data` (`_build_service_data`) and
  `adaptation_utils.prepare_adaptation_data` (`plan_service_calls`),
  without changing their behaviour. `SunLightSettings.get_settings`
  takes an optional time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 12:41:40 +03:00
..
advanced docs: clarify persistent sleep mode and daytime dimming (#1582) 2026-09-06 22:38: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 fix: synchronize sleep mode and mixed-light split timing (#1579) 2026-09-06 21:50:32 +02:00
CNAME Add documentation site with Zensical framework (#1385) 2026-01-12 23:39:57 +01:00
configuration.md feat: add expand_light_groups option (#1462) 2026-09-06 21:13:35 +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 ✨ Add adaptive_lighting.get_commands service 2026-09-27 12:41:40 +03:00
troubleshooting.md docs: explain physical turn-ons that require reloading (#1581) 2026-09-06 22:38:25 +02:00