fix: release the bathroom drying latch at each room's own dry level #12

Merged
varl merged 1 commit from runa/hass:fix/bath-drying-baseline into main 2026-11-08 00:26:48 +01:00
Member

Master's drying latch has not released since Tue 17:37.

Why. The engage/release pair is house ambient +10/+6. Ambient fell from ~57 % in August to ~44 % once the house was heated, but master's dry level did not follow: it settles at 54-58 % with nothing left to dry, at or above both thresholds (54/50 now). So it engages, never reaches release, and re-engages at once if switched off.

Change.

  • Each room's pair rises by how far its own 48 h humidity minimum sits above ambient, 0-15 points (excess() in custom_templates/bathroom_drying.jinja, three value_min statistics sensors). A minimum rather than a percentile: these sensors report only on a ~3-point change, so a percentile of the samples is weighted towards showers. A wrong low reading only lowers the thresholds back towards the ambient ones (more drying, never less).
  • No cycle runs past 8 h. A capped room cannot engage again until it reads below its release point (input_boolean.bathroom_*_drying_capped), or the next tick would restart it.

Replay of 28 Oct-7 Nov raw history, drying hours a day:

room now this PR cycles
master 18.6 7.6 6-8 h, from the evening shower into the night; 6 of 8 hit the cap
kids 3.0 2.3 all 6 evening showers still caught, 1.7-4.1 h
guest 2.0 0 no showers there

Without the cap, master's cycles ran 6-14 h (9.6 h a day): it decays slowly. The cap is a cost/dryness trade.

Not tested live. just check-local passes; excess() rendered against sample states (master +11 now, kids 0, chronic 15, unavailable 0). Adds sensors/, so the deploy restarts HA. A follow-up PR, stacked on this one, moves the kids' drying into cheaper hours.

Master's drying latch has not released since Tue 17:37. **Why.** The engage/release pair is house ambient +10/+6. Ambient fell from ~57 % in August to ~44 % once the house was heated, but master's dry level did not follow: it settles at 54-58 % with nothing left to dry, at or above both thresholds (54/50 now). So it engages, never reaches release, and re-engages at once if switched off. **Change.** - Each room's pair rises by how far its own 48 h humidity minimum sits above ambient, 0-15 points (`excess()` in `custom_templates/bathroom_drying.jinja`, three `value_min` statistics sensors). A minimum rather than a percentile: these sensors report only on a ~3-point change, so a percentile of the samples is weighted towards showers. A wrong low reading only lowers the thresholds back towards the ambient ones (more drying, never less). - No cycle runs past 8 h. A capped room cannot engage again until it reads below its release point (`input_boolean.bathroom_*_drying_capped`), or the next tick would restart it. **Replay** of 28 Oct-7 Nov raw history, drying hours a day: | room | now | this PR | cycles | |---|---|---|---| | master | 18.6 | 7.6 | 6-8 h, from the evening shower into the night; 6 of 8 hit the cap | | kids | 3.0 | 2.3 | all 6 evening showers still caught, 1.7-4.1 h | | guest | 2.0 | 0 | no showers there | Without the cap, master's cycles ran 6-14 h (9.6 h a day): it decays slowly. The cap is a cost/dryness trade. **Not tested live.** `just check-local` passes; `excess()` rendered against sample states (master +11 now, kids 0, chronic 15, unavailable 0). Adds `sensors/`, so the deploy restarts HA. A follow-up PR, stacked on this one, moves the kids' drying into cheaper hours.
fix: release the bathroom drying latch at each room's own dry level
All checks were successful
ci/woodpecker/pr/check Pipeline was successful
0024242393
Master's latch had not released since Tue 17:37. The shared thresholds are
house ambient +10/+6, and ambient fell from ~57 % in August to ~44 % once the
house was heated, but master's dry level did not: it settles at 54-58 % with
nothing left to dry, at or above both thresholds. Replayed over 28 Oct-7 Nov
from raw history, the latch held master in drying about 18 h a day.

Each room's thresholds now rise by how far its own 48 h humidity minimum sits
above ambient (0-15 points), and no cycle runs past 8 h; a capped room cannot
engage again until it reads below its release point. Kids and guest settle at
or below ambient, so their thresholds are unchanged.

Same replay: master 18.6 -> 7.6 h a day, mostly overnight after the evening
shower; kids 3.0 -> 2.3, every shower still caught; guest 2.0 -> 0, where
nobody showers.

Adds three statistics sensors (needs a restart) and three input_booleans.
varl merged commit 0024242393 into main 2026-11-08 00:26:48 +01:00
varl deleted branch fix/bath-drying-baseline 2026-11-08 00:26:48 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
meatbag/hass!12
No description provided.