feat: heat the bathroom floors for use, not for relative price #14

Merged
varl merged 1 commit from runa/hass:feat/bath-charge-before-use into main 2026-11-08 11:48:47 +01:00
Member

Why. The cheap-price branch charged each floor to 25 °C whenever binary_sensor.electricity_price_low was on (bottom 35 % of the day's range), and it ranked above the time setbacks, so it ran whether anyone was there or not. On a flat, dear day "cheap" is most hours — 62 % on 7-8 Nov, still ~4.2 SEK/kWh. Since autumn mode came on (Fri 15:00), per day:

room total cheap branch outside use + 3 h before
kids 33 SEK 14.8 h, 6.0 kWh, 25.5 SEK (25 °C air) 4.3 kWh, 18.6 SEK
master 20 SEK mostly the stuck drying (fixed in #12) —
guest 4.8 SEK 14.8 h, 1.1 kWh 0.6 kWh

The 20 °C branches drew nothing: the rooms sit near 20 on their own. All the cost is the 25 °C charge and drying.

Change. Each floor holds comfort in its use windows, preheats in the cheapest stretch of the 3 h before each, and sets back otherwise. Same schedule every day (agreed with varl).

room windows in use lead off
master 06:30-08:00, 20:00-23:00 25 (~27 slab) 150 min 18
kids 06:30-07:30, 18:00-20:00 22 °C air 60 min 20
guest 08:00-16:00 20 60 min 18

custom_templates/bathroom_schedule.jinja: phase() returns use/preheat/off; the preheat starts at the quarter-hour, from 3 h to lead before the window, whose first lead minutes are cheapest (ties to the later start; no prices → lead before). Drying and summer mode still come first. The price-tier triggers go from these three automations.

Expected. Roughly 15-20 SEK a day across the three, most of it kids (~12 after allowing that some of its heat displaced heat-pump heat on floor 2). Estimated from 1.8 weekend days; not yet observed.

Unmeasured: the leads. Master's 150 min comes from August's 2.8-3.6 °C/h slab rise; kids and guest's 60 min are first guesses. If a room is cold at the start of its window, raise its lead.

Validated: just check-local passes; phase() rendered over sample days — preheat lands on a cheap stretch when there is one, on the latest start when prices are flat or missing, and windows and off-hours switch on the minute.

**Why.** The cheap-price branch charged each floor to 25 °C whenever `binary_sensor.electricity_price_low` was on (bottom 35 % of the day's range), and it ranked above the time setbacks, so it ran whether anyone was there or not. On a flat, dear day "cheap" is most hours — 62 % on 7-8 Nov, still ~4.2 SEK/kWh. Since autumn mode came on (Fri 15:00), per day: | room | total | cheap branch | outside use + 3 h before | |---|---|---|---| | kids | 33 SEK | 14.8 h, 6.0 kWh, 25.5 SEK (25 °C *air*) | 4.3 kWh, 18.6 SEK | | master | 20 SEK | mostly the stuck drying (fixed in #12) | — | | guest | 4.8 SEK | 14.8 h, 1.1 kWh | 0.6 kWh | The 20 °C branches drew nothing: the rooms sit near 20 on their own. All the cost is the 25 °C charge and drying. **Change.** Each floor holds comfort in its use windows, preheats in the cheapest stretch of the 3 h before each, and sets back otherwise. Same schedule every day (agreed with varl). | room | windows | in use | lead | off | |---|---|---|---|---| | master | 06:30-08:00, 20:00-23:00 | 25 (~27 slab) | 150 min | 18 | | kids | 06:30-07:30, 18:00-20:00 | 22 °C air | 60 min | 20 | | guest | 08:00-16:00 | 20 | 60 min | 18 | `custom_templates/bathroom_schedule.jinja`: `phase()` returns use/preheat/off; the preheat starts at the quarter-hour, from 3 h to `lead` before the window, whose first `lead` minutes are cheapest (ties to the later start; no prices → `lead` before). Drying and summer mode still come first. The price-tier triggers go from these three automations. **Expected.** Roughly 15-20 SEK a day across the three, most of it kids (~12 after allowing that some of its heat displaced heat-pump heat on floor 2). Estimated from 1.8 weekend days; not yet observed. **Unmeasured:** the leads. Master's 150 min comes from August's 2.8-3.6 °C/h slab rise; kids and guest's 60 min are first guesses. If a room is cold at the start of its window, raise its lead. **Validated:** `just check-local` passes; `phase()` rendered over sample days — preheat lands on a cheap stretch when there is one, on the latest start when prices are flat or missing, and windows and off-hours switch on the minute.
feat: heat the bathroom floors for use, not for relative price
Some checks are pending
ci/woodpecker/pr/check Pipeline is pending approval
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
6c6abd1169
The cheap-price branch charged each floor to 25 °C whenever the hour was in
the bottom 35 % of the day's range, and it ranked above the time setbacks, so
it ran whether anyone was there or not. On the flat, dear weekend of 7-8 Nov
that was 62 % of hours: kids, whose 25 is room air, spent 14.8 h a day there,
6 kWh and ~25 SEK, of 33 SEK a day in all.

Each floor now holds comfort in its use windows, preheats in the cheapest
stretch of the 3 h before each, and sets back otherwise, the same every day:

  master  06:30-08:00, 20:00-23:00  25 (~27 slab), lead 150 min, else 18
  kids    06:30-07:30, 18:00-20:00  22 °C air,      lead  60 min, else 20
  guest   08:00-16:00               20,             lead  60 min, else 18

Drying and summer mode still come first. The expensive-price and
time-of-day branches go with the cheap one; nothing else reads the price
tiers from these automations.
varl merged commit 6c6abd1169 into main 2026-11-08 11:48:47 +01:00
varl deleted branch feat/bath-charge-before-use 2026-11-08 11:48:47 +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!14
No description provided.