Appearance
05 — Asking the boiler for heat
This is the scenario where the device raises the CH-enable bit for the first time and the boiler acts on it. It proves the load-bearing safety invariant of the whole firmware: the CH bit never rises before the held ID 1 has gone out, so the boiler is never asked to heat to a value nobody chose. It also covers the boost, the boiler's own floor, and the fact that in Home Assistant mode the local page owns none of these commands.
Have the curl harness and the bus monitor from 00-setup-and-safety.md running. The device ships asking for no heat: local mode, heating season off, CH switch off (see 01-first-bring-up.md). Every write below carries the password and the JSON content type, as in 00 §1 — without -u it answers 401, without the Content-Type header 415.
SAFETY — stand at the boiler for §1–§4. Everything here can make the house heat. Do the first items with the boiler in sight, and not on a hot afternoon. The witness that something reached the boiler is the boiler's own answers on the wire, not a device log line.
1. Turning the heat on in local mode
- [ ]
curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":1}' http://$OT/api/entities/heating_season→202 {"applied":{"command":N}};GET /api/controlstatebecomeslocal. - [ ]
curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":50}' http://$OT/api/entities/ch_setpoint→202; within seconds an ID 1 write of 50.0 (raw12800) appears in/api/ot/raw, then repeats ~every 10 s. - [ ] The invariant. Starting with
ch_enableoff, change the setpoint to a value it is not already holding and raise CH back-to-back:sh curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":55}' http://$OT/api/entities/ch_setpoint curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":1}' http://$OT/api/entities/ch_enableBoth answer202. In/api/ot/rawthe ID 1countsteps to the newraw(14080 for 55.0) no later than the sample where ID 0'sraw & 256(the CH bit) is set — never the other way round. The burner lights.
If the boiler answers
UNKNOWN-DATAIDto ID 1, the setpoint is still sent, the re-send continues, and CH still rises — the log says so once. Likewise forDATA-INVALIDon ID 1 (then compareflow_min_dc..flow_max_dcwith the boiler's own range). Neither is a defect.
2. The CH bit waits for the held setpoint
- [ ] Right after the back-to-back change in §1, sample
GET /api/statetwice a second: for a second or twoch_enablereadstruewhilech_enable_effectiveis stillfalse, then both aretrue.
If
ch_enable_effectiveis evertruebefore the new-value ID 1 write appears, the invariant is broken — stop. A boiler asked for heat with a setpoint nobody chose is exactly what this bit exists to prevent.
3. Turning it off, and the band
- [ ]
curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":0}' http://$OT/api/entities/heating_seasondrops the CH bit within seconds, whateverch_enablesays (confirm at the boiler). - [ ]
curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":35}' http://$OT/api/entities/ch_setpointwithflow_min_dc400→422,value out of range— refused, never clamped to the band.
4. The floor is the boiler's, not ours
- [ ] Ask a setpoint below the boiler's own minimum-flow parameter (param
E≈ 40). The default band refuses anything under 40.0 (§3), so lower it first, then ask 32:sh curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"flow_min_dc":300}' http://$OT/api/config curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":32}' http://$OT/api/entities/ch_setpointRead the flow the boiler actually settles at; if it holds 40, the firmware obeys and the boiler does not — indistinguishable from outside. Put the band back afterwards ({"flow_min_dc":400}, or the value from the next item); a held setpoint below the new floor is raised to it. - [ ] Record the boiler's parameters
EandE.from its menu (E.:0ignore,1heat at minimum,2heat at maximum — a2turns a low request into a hot house). IfE≠ 40, setflow_min_dcin the config to match (E× 10).
5. ID 1 goes first; an owed ID 56 follows; the readback is real
These prove the frame ordering and the DHW readback. Use a Data-ID this boiler acknowledges — not ID 14 or ID 57.
- [ ] ID 1 before an owed ID 56. With
ch_setpointheld and re-sent, pick adhw_setpointthe boiler is not already holding, then hand-write another writable Data-ID and the DHW setpoint back-to-back:sh curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":20}' http://$OT/api/entities/room_setpoint curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"value":50}' http://$OT/api/entities/dhw_setpointBoth answer202— the hand write{"queued":{"data_id":16,"raw":5120}}, the DHW setpoint{"applied":{"command":4}}(a409orunknown-dataidmeans the item tested nothing — use a Data-ID the boiler acks). The ID 56 write is owed and goes out at the next idle slot — it is never dropped. DO NOT send the hand write after the DHW one; that can evict the queued ID 56. - [ ] The re-write cap. Write a
dhw_setpointthe boiler cannot hold exactly (e.g. 50.5) and sample ID 56 for ten minutes: exactly three ID 56 writes — the first at once, then one after each disagreeing poll read (≥ a minute apart), then none. Not one (the readback never reached the executor); not one-a-minute (the boiler's echo of our own write is not a readback). - [ ] The readback is wired. With a
dhw_setpointwritten and agreed, change the DHW setpoint on the boiler's own panel: within ~70 s an ID 56write-ackappears and the panel shows the device's value again. Nothing happening means the readback is not wired.
6. Persistence across a power cycle
- [ ] Power-cycle the device: the local values persist, and the boiler resumes after the reboot window (see 00-setup §4).
7. The boost — a row of the ladder
- [ ] Season on, local:
curl -sS -u ":$OTPASS" -H 'Content-Type: application/json' -d '{"setpoint":50,"minutes":2}' http://$OT/api/ops/boost→202;/api/controlstateboost,boost.activetrue,remaining_snear 120. The burner lights and the flow climbs to 50; the boost ends by itself at two minutes and the state returns tolocal. - [ ] Season off, the same request →
409(heating_season is off: a boost would not heat). - [ ] Refusals, season on, each
422and leaving a running boost unchanged:setpoint95 (out of range),minutes0,minutes1.5,minutes481 (minutes must be a whole number 1..480). - [ ] Start a 10-minute boost,
curl -sS -u ":$OTPASS" -X POST http://$OT/api/ops/boost_off(no body, so no content type is needed) →202, and the CH bit drops within seconds. A secondboost_offalso answers202. - [ ] Start a boost and power-cycle:
/api/controlshowsboost.activefalse,status_highwithout the CH bit — the boost is never restored across a reboot.
Known, not a defect: after a boost ends the boiler keeps the boost's setpoint (ID 1 is never read back). The held setpoint the executor maintains in normal operation is what closes this — the boost is the exception.
8. The same controls from the page, in local mode
With control_mode 0 and the boiler in sight:
- [ ] Heating season On → the page shows
202and state "Local control". - [ ] CH On →
202; "CH command" on, then "CH asked of the boiler" on within seconds, the burner lighting if the boiler follows. - [ ] A new flow setpoint (55) →
202, "Flow setpoint held" 55.0 °C, the hint reading the band "40.0 … 70.0 °C". - [ ] A flow setpoint of 35 (below
flow_min) → the value is sent and refused: headline "Flow setpoint: the value was refused",HTTP 422, detailvalue out of range; nothing on the card changes. - [ ] Typing
abcand pressing Set → "not a number" beside the box and no request in the Network tab. - [ ] Hot water Off → "Hot water asked" off within seconds (the tap likely runs cold); On right after brings it back.
- [ ] Boost 50 °C / 2 min from the page → state "Boost" counting down, ending by itself; a boost with season Off → "Boost: refused by the device",
HTTP 409,heating_season is off: a boost would not heat.
9. In Home Assistant mode the page owns nothing
With control_mode ha (see 06-home-assistant.md), no button is disabled — a write is still sent, and the device's own answer is shown:
- [ ] CH On → "CH: refused by the device",
HTTP 409, detailowned by Home Assistant: control_mode is ha. The same for a new flow setpoint, hot water On/Off, a new hot-water setpoint, and a boost start.
Use a hot-water setpoint inside the boiler's ID 48 range (50) for this — a 90 would come back
422and prove nothing about ownership.
- [ ] Heating season Off then On from the card in HA mode: the device answers
202both times (by the rule that only the thermostat, never Home Assistant, turns the season on).
Notes
- The
rawvalues (12800 = 50.0, 14080 = 55.0) are this unit's f8.8 encoding; the flow band40.0..70.0is the shipped default. - Watchdog and failsafe behaviour once Home Assistant is driving is
07-watchdog-and-failsafe.md; the broker and discovery are06-home-assistant.md.