Case study

Oil boiler via Optolink in Home Assistant

A Viessmann Vitoladens 300-W with Vitotronic 200 control, brought into the smart home through a self-built optical read head – fully local, read and write, including oil consumption in the energy dashboard.

System
Viessmann Vitoladens 300-W (condensing oil boiler), Vitotronic 200 control
Interface
Optolink, P300 protocol – the manufacturer's service interface
Hardware
Wemos D1 mini (ESP8266), self-built optical head, 3D-printed housing
Software
ESPHome with Optolink component, Home Assistant
Result
44 entities in continuous operation, write path verified, fault monitoring active
Author
Julian Haag, state-certified electrical engineering technician

The task

Older heating systems are black boxes: they run, but they tell you nothing. How much oil is actually consumed, how often the burner starts, whether the cylinder got hot enough for legionella prevention – all of that sits in the service menu at best, and nowhere else.

Viessmann controls, however, have an optical service interface: the Optolink. Through it the system can be read out and – with care – operated. The goal was to make this data permanently and locally available in Home Assistant, without interfering with the heating system itself and without the manufacturer's cloud service.

Implementation

The read head

The Optolink communicates via infrared. The read head therefore consists of an IR emitter diode with a series resistor and a phototransistor as receiver, wired to the serial interface of a Wemos D1 mini. The housing comes from the 3D printer and holds the optics in position in the recess provided on the control unit.

The 3D-printed read head with emitter diode and phototransistor, next to the Optolink interface on the control unit of the Vitotronic 200
Left: the read head from the 3D printer with emitter diode and phototransistor. Right: the Optolink interface on the control unit, in front of which it sits during operation. Own system, October 2026.

Two details that decide between success and a long debugging session: the phototransistor must be the variant with a daylight filter – otherwise the status LED of the control unit swamps the signal, and no data arrives for no apparent reason. And the housing belongs in PETG rather than PLA: a boiler room gets warm enough for PLA to deform over time and pull the optics out of alignment.

Open housing: Wemos D1 mini at the top, wired to the optics at the bottom Closed housing mounted on the control unit, powered by a USB cable
Open and closed: at the top the Wemos D1 mini, at the bottom the optics facing the interface. In operation the housing sits directly on the control unit, powered over USB.

Software

Everything is handled by ESPHome together with a community Optolink component, included as an external component (see sources below). The connection to Home Assistant runs over the native API on the local network – no cloud access, no manufacturer account, no dependency on the internet.

44 entities run in continuous operation with staggered polling intervals: frequently read temperatures every minute, slow-moving meter readings far less often. That is not a minor detail – the interface runs at 4800 baud, and too dense a polling pattern fills the queue until nothing gets through at all.

ESPHome web interface of the read head listing the values read via Optolink
The ESP’s own web interface: temperatures, burner hours and starts, pumps, setpoints and the derived oil consumption, all read via Optolink. Screenshot of 19 October 2026.

What came to light

The appeal of projects like this is that the existing documentation is only the starting point. Three findings that make the difference between "looks plausible" and "is correct":

That last point is also the most honest one: a burner fault is currently not reported, because no reliable data point for it has been established yet. A false alarm on every burner start would be worse than no alarm – you get used to it and miss the real one.

Everyday result

What was deliberately left alone

Write access to a heating control is not a playground. A clear boundary applies here:

What this project demonstrates

Even a twelve-year-old oil boiler can be made transparent – without interfering with the heating system, without a manufacturer subscription and without any data leaving the house. I apply exactly this approach to heat pumps, inverters and wallboxes: first open up the existing interface properly, check every reading against reality – and only then automate.

Sources & templates used

This project would not have been possible without the groundwork of the open-source community. The sources used:

The licence terms of each source continue to apply unchanged. Please check them directly with the provider before rebuilding.

A note on rebuilding: the Optolink is the manufacturer's service interface. Read access is considered uncritical; write access changes settings on your heating system and may raise warranty and safety questions. Coding addresses and burner control should not be touched without expert knowledge.

Links marked with an asterisk are affiliate links. As an Amazon Associate I earn from qualifying purchases; the price is unchanged for you. What I recommend does not depend on it.

Would you like to make your heating system, heat pump or PV system transparent? Get in touch – the initial consultation is free.