adaptive-lighting/.github
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
..
ISSUE_TEMPLATE Update bug-report.md (#1046) 2024-10-06 22:42:03 -07:00
workflows ⬆️ Update docker/setup-qemu-action action to v4.4.0 (#1608) 2026-09-22 16:05:07 -07:00
auto-comment.yml Create auto-comment.yml 2021-08-01 16:43:09 +02:00
CODEOWNERS Release 1.9.1 (#522) 2023-04-03 02:07:05 -07:00
config.yml Create config.yml 2021-08-01 16:41:16 +02:00
FUNDING.yml Fix alias in FUNDING.yml (#677) 2023-07-28 17:20:01 -07:00
release-drafter.yml Add full changelog to releases 2023-08-09 15:01:00 -07:00
renovate.json Add Mend Renovate bot (#1077) 2024-12-05 11:14:08 -08:00
update-services.py ✨ Add adaptive_lighting.get_commands service 2026-09-27 12:41:40 +03:00
update-strings.py Implement collapsible sections for options flow (#1313) 2026-09-06 17:18:42 +02:00