home energyupdated

Heating a stone house: one heat pump, thirteen valves and a virtual room

How I let Home Assistant run my heating: seasons from degree days, setpoints by type of room, probes that correct the valves, and a single number sent to the heat pump.

My house is an old stone house from the Gironde, with thick, uninsulated walls. That gives it a huge inertia: depending on the room, it takes 41 to 80 hours to respond. The kids’ bedrooms are the exception, under the roof, behind glass wool and light framing: they cool down in a few hours. Heat comes from an air-to-water heat pump feeding radiators, and every radiator now has a Zigbee thermostatic valve, thirteen of them.

Since October, Home Assistant runs all of it. Not by replacing the heat pump’s own logic, but by giving each part of the system the one job it does well.

Who does what

One rule shaped the design: if Home Assistant stops, the house must keep heating. The heat pump keeps its water law, the valves keep their last setpoint. Home Assistant optimizes; it is never the only thing standing between the family and a cold night.

Seasons from degree days

The heat pump doesn’t need the same behaviour in October and in January, so the house has three seasons: warm (heat pump off, valves off), mid-season (the heat pump runs at night, on off-peak electricity, and during the day only if the house is really short of heat) and cold (it runs continuously).

The season follows degree days averaged over three days, with hysteresis. It moves to a colder season at 3 and 9 degree days per day, back to a warmer one at 6 and 1, and never warmer less than seven days after the last change. Getting colder is checked every hour; getting warmer only at 6 am, and only if the last 24 hours agree, a guard added after a run of mild days switched the heating off at the start of a cold snap.

Setpoints by type of room

Rather than thirteen schedules, there are six types of room, each with an occupied and an unoccupied setpoint and its own hours:

Type Occupied Unoccupied When occupied
Living rooms 20 °C 18 °C 7 am to 10 pm
Our bedroom 19 °C 17 °C 10 pm to 7 am
Kids’ bedrooms 20 °C 17 °C evenings and nights, all day when they’re home
Guest rooms 19 °C 16 °C when a guest is there
Bathroom 22 °C 18 °C 6:30 to 9 am
Buffer zones (hall, landing, utility room) 19 °C, fixed

The kids’ rooms know about school days and holidays from a calendar, and a button flips that for the odd day off. Any group can be forced occupied or unoccupied for a while, from the wall tablet or by voice.

Inertia turns the usual logic upside down. With walls that take two to three days to react, lowering the temperature at night saves little, and warming a room just in time is hopeless. So the house charges at night: during off-peak hours, every room gets its occupied setpoint, and the stone carries that heat into the day. Heat made at night costs me about 40 % less than heat made during the day.

Valves lie, so I gave them probes

A thermostatic valve measures the temperature next to the radiator. Last winter, I compared mine to independent room sensors: the living room valve read 3 °C too high on average, 4.7 °C when the water was above 55 °C. The room was actually at 17.4 °C and more than a degree below its setpoint 72 % of the time; the valve thought so only 10 % of the time.

A thermostatic radiator valve in section, its motorized head open, linked without wires to a small thermometer on the wall.

So every room now has its own small temperature probe, and an automation copies its value into the valve as an external temperature, at each reading and every 30 minutes. The details matter:

A virtual room for the heat pump

The heat pump can only listen to one room temperature. I first sent it the coldest room’s. Bad idea: the heat pump adds about 2.2 °C of water per degree of lag it receives, so the worst room kept the water about 2 °C too hot all the time, and 5 to 7 °C too hot whenever one room fell behind. A plain average was no better: warm rooms hid cold ones.

Three real rooms, each with its radiator and thermometer, feed a fourth room drawn in dashed lines: only that ghost room is connected to the heat pump.

What it receives now is a virtual room that sums up the house:

The result is smoothed to 0.2 °C every three minutes and sent as “setpoint 20 °C, room at 20 minus the demand”.

The short-cycling saga

None of that prevented the real problem of the first weeks: short cycles. In one week, 608 compressor starts, runs of six minutes, five or six starts an hour, the compressor stuck at its 31 Hz minimum. Nine stops out of ten were the heat pump reaching its water temperature and shutting off.

Three causes added up. Most valves were closed, on rooms already warm, so the heat pump couldn’t get rid of even its minimum output. Its water law was the highest of any machine using my integration (50 °C at 7 °C outside), and above 44 to 46 °C my model starts a second compressor stage with an even higher minimum output. And the setpoints I had just raised made the rooms close their valves even more.

The fixes, one at a time so each could be measured:

One night against another, at similar outdoor temperatures: starts fell from 6.9 to 3.9 an hour, runs grew from 4 to 10.6 minutes, and the heat produced per hour went from 4.1 to 6.7 kWh. Better, not solved: cycles are still short as long as the water goes above the threshold of the second stage. The next lever is the curve again.

What I keep from it

Still on the list: a learning loop for the water law, balancing three radiators that fight each other on the ground floor, and using solar surplus instead of night tariffs in mid-season. And a kid’s room under the roof that stays behind whatever I do. That one is probably a radiator, not an algorithm.