Viessmann Vitorondens 222-F in Home Assistant: free smart heating over Optolink
A free, open kit to connect a Viessmann oil boiler (Vitotronic 200 KO1B/KO2B) to Home Assistant over Optolink and MQTT, then drive heating from a schedule, presence and holidays.
Get the kit on GitHub: Soprez/viessmann-optolink-ha (free, GPL-3.0, docs in English and French).
Where it started
The house runs on a Viessmann Vitorondens 222-F oil boiler with a Vitotronic 200 KO1B/KO2B controller. It does its job, but it only knows one thing: its timer program. It has no idea whether anyone is home, whether the family is away on holiday, or how long the house takes to go from 16 to 20 °C.
Then there is the evening puzzle many Vitotronic owners know: you turn the setpoint up… and nothing happens. It is not a fault. The controller gives hot water priority: while the tank is recharging, the heating circuit waits. Nothing on the boiler tells you so.
So the goal was twofold: see what the boiler is doing, and drive it from Home Assistant.
The setup: Optolink, a Raspberry Pi and MQTT
Viessmann boilers have an optical service port on the front, the Optolink. The chain is short:
- an Optolink USB cable on the controller;
- a Raspberry Pi running optolink-splitter, philippoo66's project that handles the conversation with the boiler;
- MQTT to carry the values;
- Home Assistant, where about 30 entities (
sensor.chaudiere_*) show up through auto-discovery: outside, boiler, flow, hot-water and flue-gas temperatures, burner state and hours, burner starts, pumps, mode, heating curve and setpoints.
The repository is not a fork and contains none of optolink-splitter's code. It adds what you need to get going quickly on this model: a ready-made poll list for the 20CB controller, a table of validated and invalid addresses, Home Assistant YAML and step-by-step guides (wiring, udev, systemd service, MQTT, safety).
The overview dashboard (French UI): burner, room temperature, current setpoint, schedule mode, pre-heating forecast and estimated oil level.
Smart heating
Once the data is in Home Assistant, a single package (helpers, sensors, automations) takes over from the boiler's own program:
- Comfort / Reduced schedule in Home Assistant, edited from the UI, with several slots per day.
- Early pre-heating: Home Assistant measures how fast the house actually warms up (°C/h) and starts early enough to reach the target when the Comfort slot begins, not two hours later.
- Heating cut when the house is empty (presence) and during holidays (one calendar per person).
- Manual override: change the setpoint by hand and it holds until the next slot change.
- "Hot water in progress" indicator with an estimated end time, so the evening puzzle becomes visible.
- Heating curve left to the boiler: slope and level stay with the weather-compensated controller; smart heating only changes room setpoints.
- Oil use estimated from burner hours, with daily, weekly, monthly and yearly counters, plus a hot-water tank loss measurement.
The settings card (French UI): operating mode, hot-water setpoint, heating-curve slope and level. Smart heating never touches the curve.
If Home Assistant goes down, the boiler keeps the last setpoint written and carries on regulating on its own.
Known pitfalls
The address table in the repository saves you from finding these the hard way:
- Addresses specific to the 20CB controller: some addresses from the community tables do not answer or return implausible values on this model. The repository lists the ones checked against the boiler's own display.
- Spar / Party writes do nothing: the boiler acknowledges them, then ignores them. Don't build an "eco" or "party" feature on top.
- The boiler's oil counter always reads 0: it needs a physical flow meter, hence the estimate from burner hours.
- Hot water capped at 60 °C: the controller rejects anything higher.
- Operating mode: one of the values switches everything off. The guide lists the safe ones.
The repository's advice stands: start read-only, compare with the boiler display, and only then add writes.
Going further: the technical lessons learned and mistakes to avoid covers the protocol, addresses, writes and stability in detail.
Compatibility
- Validated: Vitorondens 222-F with Vitotronic 200 KO1B/KO2B (device ID 20CB).
- Probably compatible, not tested: other boilers with the same controller.
- Other Vitotronic generations (gas Vitodens, for example): the Optolink, MQTT and Home Assistant chain applies, but addresses differ. Validate them read-only first.
Reports from other models are welcome through the repository's issues.
What's in the repository
Everything is free under GPL-3.0: the poll list, the address table, the installation guide, the smart-heating guide with its FAQ, the YAML files (package, hot-water indicator, oil estimate, example dashboard) and screenshots, including the weekly schedule.
Credits: optolink-splitter (philippoo66), which does the real work of talking to the boiler; the openv community address tables; vcontrold. Independent project, not affiliated with Viessmann.
☕ Buy me a coffee
This kit is free. If it saved you time, a coffee is much appreciated: buymeacoffee.com/soprez.
Heating installers and engineers: this kit saves you a lot of time on every job (validated addresses, wiring, service, MQTT and Home Assistant config ready to paste). A coffee is welcome and helps keep the project maintained.
→ Get the kit: github.com/Soprez/viessmann-optolink-ha