Releases: CaseyRo/adaptive-lighting
Releases · CaseyRo/adaptive-lighting
v2.4.0-cdit.1 — lower/upper sliders + new defaults
Changed
- Range sliders renamed:
Min/Max brightness→ Brightness lower/upper,Min/Max color temp→ Color temp lower/upper. The HA device page sorts entities alphabetically by name, so each quantity's lower bound now lists above its upper bound (previously Max always sorted above Min). - Entity_ids are unaffected: existing profiles keep their registry entity_ids; new profiles pin
suggested_object_idto the field keys, so they still slugnumber.<profile>_min_brightnessetc. Automations need no changes. - New-profile defaults: brightness 10–90 % (was 5–100 %), color temp 2000–5500 K (was 2200–5500 K). Existing profiles keep their saved values.
Internal
- Lint is fully green: ruff target bumped to py312 (matches
requires-python), all remaining ruff errors fixed or explicitly noqa'd with justification. - Specs synced (
runtime-range-controls,output-sensors); two new tests cover the slug pin and name composition.
Full diff: v2.3.1-cdit.1...v2.4.0-cdit.1
v2.3.1-cdit.1 — new-group defaults fix
Bugfix + polish release for the CDiT fork of basnijholt/adaptive-lighting.
Fixes
- New-group defaults (bug): a profile created with only a name seeded its runtime range sliders from
native_min, so a brand-new group ran at max_brightness=1% and a collapsed 1000–1000K color-temp range until the options dialog was saved once. Range entities now fall back to sensibleDEFAULT_*(5 / 100 / 2200 / 5500). Adds a regression test. - Section collapse defaults: the options dialog now opens with Targets + Daytime curve expanded and the rest (Sun schedule, Ambient lux, Light control, Advanced, Diagnostics) collapsed — 2 open / 5 closed.
Notes
- Existing profiles are unaffected — their options are already saved; only newly-created groups get the corrected seed.
Attribution: core curve math, light interception, and HACS plumbing are upstream's work by @basnijholt and contributors.
v2.3.0-cdit.1 — CDiT fork
CDiT-opinionated fork of basnijholt/adaptive-lighting.
Not a drop-in replacement for the upstream HACS integration — existing upstream config entries will not load (see openspec/changes/cdit-config-redesign/design.md).
CDiT changes on top of upstream
- Sectioned config dialog — six collapsible groups replace upstream's flat 40-field form; native HA selectors; reload-on-save.
- Entity-driven sun timing —
sunrise_entity/sunset_entity. - Reduce-only ambient lux gate (
add-lux-target) +lux_reductionsensor (reports reduction %). - Output sensors (
add-output-sensors). - 3-switch model per profile (no sleep switch).
Attribution
The curve math, light.turn_on interception, HACS plumbing, and the long tail of real-world fixes are upstream's work by @basnijholt and 130+ contributors. For the canonical, multi-feature integration, use upstream and report core bugs there.