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
From this article on Amazon (Germany):
Wemos D1 mini (ESP8266)* Marked *: affiliate links. As an Amazon Associate I earn from qualifying purchases.
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.
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 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.
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":
The operating-hours counter is documented incorrectly. The widely used data-point
list specifies two bytes – in reality there are four, and the value is in seconds. Reading two
bytes catches only the lower word and yields a number that looks like a plausible hour
count but is garbage. Proven via the remainder of the division – and subsequently cross-checked
by the operator on the control panel.
20.0 °C often means "no sensor". Several temperature addresses returned the
same constant value even though the corresponding sensors are demonstrably absent. It is the
control unit's substitute value. Without cross-checking the status addresses you would have four
phantom sensors on the dashboard – looking exactly like readings.
Not every status value is a yes/no. A data point whose plain-text name suggested a
fault message actually carried numeric codes and sat at a non-zero value during normal
operation. Wired up as a fault indicator it would have raised an alarm on every burner start.
Consequence: it now runs as a diagnostic numeric value and has been removed from the collective
fault until the codes are established.
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
Oil consumption in the energy dashboard. Home Assistant has no category for
heating oil. Solved with two derived sensors from the same burner hours – one in litres, one in
kilowatt-hours. The kWh variant allows the consumption to be included with cost calculation,
cleanly separated from electricity.
Operation from Home Assistant. Operating mode, hot-water setpoint and the room
temperature setpoints are writable – the write path was demonstrated on a consequence-free
setpoint and read back as confirmed by the control unit.
Fault monitoring. What is monitored is not the component's status text but whether
readings are still arriving at all. During a real fault night the status text reported "OK" while
the link was dead.
Legionella evidence. An automation documents whether the cylinder was hot long
enough and the circulation loop was flushed – both together, not just the cylinder
temperature.
What was deliberately left alone
Write access to a heating control is not a playground. A clear boundary applies here:
Coding addresses, burner control and safety limiters are off limits. Only setpoints
that are also reachable and resettable via the control unit are ever written.
Tighter limits than technically possible. The hot-water temperature is limited to a
minimum of 40 °C – below that begins the range in which legionella multiply in the cylinder.
If the cylinder is to run cold, that is what the operating mode is for, not the setpoint.
Meter readings are not reset. They are the only record of the system's history. The
same analysis can be achieved in Home Assistant without loss, using a dedicated consumption meter.
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:
Fundamentals & protocolopenv wiki – ESPHome OptolinkReference for Optolink, the P300 protocol and the construction of the read
head. Note: parts of the wiki describe older options of the component.
ESPHome componentESPHome pull request #4453 – OptolinkOptolink support is not part of the official release and is included as an
external component.
Data-point listsphilippoo66/ViessData21Device lists and data-point definitions per control type – the starting point
for the address scan.
Protocol internalssarnau/InsideViessmannVitosoftAnalysis of the Vitosoft database, among other things on the question of which
data points are writable at all.
Hardware
Wemos D1 mini (ESP8266) · IR emitter diode with series resistor · phototransistor with daylight filter
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.