Skip to content

fix(bias): idle=circadian joins night_look out of window, instead of going dark - #13

Merged
cnewkirk merged 1 commit into
mainfrom
fix/bias-idle-joins-night-look-v2
Aug 8, 2026
Merged

fix(bias): idle=circadian joins night_look out of window, instead of going dark#13
cnewkirk merged 1 commit into
mainfrom
fix/bias-idle-joins-night-look-v2

Conversation

@cnewkirk

@cnewkirk cnewkirk commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Re-landing 251af28 through a proper PR (originally direct-pushed to main,
reverted in #9).

Confirmed live 2026-08-08: with night_look configured, the driven zone sat
at a dim red ambient look all night while every idle=circadian bias light
(the whole viewing set in the live config) went fully off out of the
circadian window. Read as broken, not intentional — the design intent
(already stated in CLAUDE.md: "TV off -> ... matches the rest of the room")
was that TV-on is the only thing that should set a light apart from the rest
of the home; TV off should mean rejoin the theme. The out-of-window half of
that was never actually implemented.

bias_actions() gains a night_look parameter: idle=circadian, out of
window (or in-window with no curve sample), night_look configured -> holds
that same look. Falls back to off when night_look isn't configured.

3 pure tests + 1 daemon-level integration test, verified to fail on the
pre-fix code (branch disabled, ran red, restored).

…going dark

Confirmed live 2026-08-08: with night_look configured, the driven
zone (Circadian Core) sat at a dim red ambient look all night while
every idle=circadian bias light (the whole viewing set in the live
config -- Play bars, couch, light tree, dining table, side table) went
fully off out of the circadian window. Read as broken, not
intentional -- the design intent (already stated in CLAUDE.md: "TV off
-> ... matches the rest of the room") was that TV-on is the *only*
thing that should set a light apart from the rest of the home; TV off
should mean rejoin the theme, not switch to its own separate
day/night schedule. The out-of-window half of that was never actually
implemented -- only the in-window (follow the curve) half was.

bias_actions() gains a night_look parameter: idle=circadian, out of
window (or in-window with no curve sample), night_look configured ->
BiasHold at that same look, same as the main zone's own parked state.
Falls back to off when night_look isn't configured, unchanged.
idle=off is untouched either way. Reuses BiasHold (already carries a
full LightState, hex included) rather than extending BiasDrive, which
is mirek-only.

3 pure tests + 1 daemon-level integration test, verified to fail on
the pre-fix code (branch disabled, ran red, restored) and pass on the
fix. Full suite (397 tests) + mypy clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cnewkirk
cnewkirk merged commit 2842499 into main Aug 8, 2026
1 check passed
@cnewkirk
cnewkirk deleted the fix/bias-idle-joins-night-look-v2 branch August 8, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant