Technical article · Home Assistant · Heating

Viessmann in Home Assistant: ViCare API, Optolink or CAN bus?

There are three routes from a Viessmann heating system to Home Assistant. The ViCare integration is quick to set up and depends on the cloud. Optolink reads locally but takes some tinkering and only fits devices with a Vitotronic controller. For the newer One Base generation there is the CAN bus. Which route fits is decided first by the device, then by what you want to do with it.

Route 1
ViCare integration: cloud, your own client ID, 1450 calls a day
Route 2
Optolink: local, reading head on the Vitotronic controller
Route 3
CAN bus with open3e: local, for One Base (E3) devices
My own system
Vitoladens 300-W with Vitotronic 200, in Home Assistant via Optolink
Status
October 2026 · primary sources below, with the date each was checked
Author
Julian Haag, state-certified electrical engineering technician

The essentials in one minute

First: which device generation?

In its developer documentation, Viessmann distinguishes two device families. Older devices, called “legacy” in the portal, have a Vitotronic controller and reach the internet via a Vitoconnect. Newer devices are based on the Viessmann One Base platform, also called E3, and have Wi-Fi built in. The API reports the family in the device roles as type:legacy or type:E3.

The Vitoconnect 100 type OPTO1 shows what the legacy route looks like physically: it plugs into the controller with an “Optolink/USB” connecting lead, joins the home network via Wi-Fi and from there connects to the Viessmann server. The manual says explicitly that connections of the Vitoconnect 100 to other servers are not possible. It lists types of the Vitotronic 200, 200-RF and 300 in single-boiler systems as supported controllers.

That gives the first fork in the road: a Vitotronic controller means ViCare via Vitoconnect or local access via Optolink. One Base means ViCare via the built-in Wi-Fi or local access via the CAN bus.

Viessmann in Home Assistant: three routes by device generation Left, the two device generations; right, Home Assistant. A Vitotronic controller either goes through the Vitoconnect into the Viessmann cloud and from there through the ViCare integration to Home Assistant (route 1, at most 1450 calls a day) or locally through an Optolink read head with ESPHome (route 2). A One Base device, also called E3, also goes to the cloud via its built-in Wi-Fi (route 1) or locally through a USB-CAN adapter with open3e (route 3). Vitoconnect and read head share the Optolink; both at once only works with a go-between such as optolink-splitter. Vitotronic legacy controller One Base (E3) built-in Wi-Fi Route 2: Optolink read head + ESPHome Route 1: ViCare Viessmann cloud max. 1450 calls/day Route 3: CAN bus USB-CAN, open3e Home Assistant Vitoconnect Wi-Fi local Cloud local Vitoconnect and read head share the Optolink: both at once only with a go-between (optolink-splitter).
Device families according to the Viessmann developer documentation, the daily limit according to the Home Assistant documentation of the ViCare integration (basic access). Route 2 is the one my own system uses, photos of it in the Optolink section.

Route 1: the ViCare integration

Home Assistant ships with the Viessmann ViCare integration. It works via Viessmann's REST API, is classified as “Cloud Polling” in the documentation and should support most recent network-connected Viessmann devices. Setting it up:

  1. Sign in to the Viessmann developer portal with your ViCare app credentials.
  2. Under Clients, select Add to create a client: name e.g. HomeAssistant, Google reCAPTCHA disabled, redirect URI https://my.home-assistant.io/redirect/oauth.
  3. Copy the Client ID. According to the documentation, a new client can take up to an hour to become active; until then no devices appear.
  4. Add the integration in Home Assistant and enter the client ID. The Client Secret field is not used because sign-in uses PKCE; any value will do.

Two errors come up often. Anyone who copies the client ID from an older guide, the one of the ViCare app itself, gets “Invalid redirection URI”, because that client only allows vicare://oauth-callback/everest. And anyone who had the integration before gets “Client not registered”, because Home Assistant keeps the old client ID as application credentials; delete it under Settings › Devices & services via the three-dot menu before entering the new one.

The integration then creates whatever the device provides: a climate entity for the heating circuit, a water heater, sensors, number entities for example for the heating curve and setpoints, switches and selects. The climate entity sets the operating mode; off means permanently reduced and also switches off hot water, heat permanently normal, and auto follows the boiler's schedule.

The log occasionally shows GATEWAY_OFFLINE. According to the documentation, the API loses contact with the gateway from time to time; it usually resolves itself, otherwise restarting the gateway helps.

Rate limit and API packages

The Viessmann API counts every call. In the free Basic tier, the Home Assistant documentation names two limits, and Viessmann confirms the daily one in its FAQ:

Limits in the Basic tier
Time windowCallsConsequence if exceeded
10 minutes120blocked for 24 hours
24 hours1450

The integration polls every 60 seconds and stays within the limits. With several gateways it lengthens the interval by the corresponding factor. Every additional request counts too, including changing a temperature from Home Assistant and using the ViCare app. If you also run your own scripts against the API, they come out of the same budget.

The Home Assistant documentation points out another limit: thermostats (TRVs) and climate sensors are said to be accessible only in the most expensive “Advanced” package. As of the date checked, however, Viessmann's pricing page says the paid packages have been discontinued and can no longer be bought; new packages are in preparation. Anyone starting today therefore plans with Basic access.

The API belongs to the manufacturer, and the manufacturer changes it. On 30.04.2025 Viessmann renamed data points and switched off the old endpoints, explicitly as a “breaking change”. Integrations that did not update in time stopped delivering values. For a display that is bearable; for control it is a risk worth knowing about.

Devices with a Vitotronic controller have an optical service interface, the Optolink. A reading head in front of it passes the data serially to a microcontroller or computer. There are two protocol families, KW (VS1) and P300 (VS2); the VitoWiFi library supports both plus the older GWG. My own system runs this way: a Vitoladens 300-W with Vitotronic 200, a home-made reading head, ESPHome with a community Optolink component, 44 entities, no cloud and no account. As of the date checked, the Optolink component is still not part of the official ESPHome release and is included as an external component.

How the reading head is built is on the project page Oil boiler via Optolink in Home Assistant. How to map data points reliably and which of them a control system really needs is in the article Reading a Viessmann boiler locally.

The boiler as a device in Home Assistant with control, sensor and diagnostic entities
The author’s boiler as a device in Home Assistant: control (operating mode, setpoints), sensors and diagnostics, all local via ESPHome. MAC address removed.

The conflict with the Vitoconnect

The Optolink connection is exclusive: while one reading head is talking, nobody else talks to the controller. But that is exactly where the Vitoconnect for the ViCare app plugs in. Anyone who wants both, the ViCare app for the family and local data for Home Assistant, needs an intermediary.

The community project optolink-splitter takes on that role. A Raspberry Pi connects to the boiler with the reading head and to the Vitoconnect with a USB-TTL adapter, reads for itself and passes the connection through. It outputs the values via MQTT or TCP/IP, and Home Assistant picks them up via MQTT. The project names the Vitoconnect 100 OPTO1 and OPTO2; with the OPTO1 the power-on order matters, splitter first, then the Vitoconnect. For devices with the KW protocol, the project is still looking for testers with a Vitoconnect.

Route 3: CAN bus on E3 devices

One Base devices have an internal CAN bus over which several control units talk to each other; on a Vitocal, for example, the main controller, the indoor unit, the outdoor unit and the control panel. The community project open3e addresses these control units via CAN or via DoIP, the IP variant the device uses in Wi-Fi access point mode. According to the project this works with Vitocal, Vitodens and the Vitocharge VX3.

This is the most demanding of the three routes, and it goes inside the device. Anyone taking it should have the connection made by a qualified electrician and follow the same rule as with Optolink when writing: only values that can also be reached and reset on the control panel. For the Vitocal 250 the open3e wiki also describes how to use Smart Grid Ready; how Viessmann lets the heat pump be controlled under section 14a is in the article Viessmann and section 14a EnWG.

The three routes compared

ViCare, Optolink and CAN bus
ViCare integrationOptolinkCAN bus (open3e)
Devicesconnected devices of both generationsVitotronic controllerOne Base (E3)
Internet neededyes, Viessmann cloudnono
Account and client IDyesnono
Update rate60 s per gateway, daily limityour choice, limited by the interfaceyour choice
HardwareVitoconnect or built-in Wi-Fireading head and microcontrollerUSB-CAN adapter, connection inside the device
Effortlowmedium, data points need checkinghigh
Maintained byViessmann and the Home Assistant projectcommunitycommunity

My recommendation follows from the purpose. If you only want to see what the boiler is doing and can live with an occasional gap, take the ViCare integration. If the heating system becomes part of a control loop, for example to heat hot water on PV surplus or to run the heat pump by electricity price, take a local route. A controller that waits for a third-party service fails with it, and a daily limit of 1450 calls leaves little room for your own logic. Why this matters especially for heat pumps is in the article Running a heat pump on electricity prices.

Electricity and gas consumption

People often look for the electricity consumption of a Viessmann heat pump in Home Assistant. The ViCare integration creates sensors for it if the device provides the values: electricity consumption today, this week, this month and this year, separately for heating and hot water, and correspondingly gas consumption for gas appliances. They are set up as energy sensors with an increasing meter reading and can therefore be added to the energy dashboard. Some of them are disabled after setup and have to be enabled in the entity settings.

These are values the device calculates itself. If you want to measure consumption independently, for example to recalculate the seasonal performance factor, put your own meter in the supply line. What that looks like in the distribution board is in the article Energy metering in the distribution board.

Frequently asked questions

Do I need my own client ID for the ViCare integration?

Yes. The client ID is created in the Viessmann developer portal with your ViCare app credentials, using the redirect URI https://my.home-assistant.io/redirect/oauth. The client ID of the ViCare app itself does not work because it only allows the address vicare://oauth-callback/everest. A new client can take up to an hour to become active.

Does the Viessmann API cost anything?

Basic access is free and, according to Viessmann, unlimited in time. It is limited to 1450 calls in 24 hours and, according to the Home Assistant documentation, also to 120 calls in 10 minutes. According to Viessmann's pricing page, the paid packages have been discontinued and cannot currently be booked.

How often does the ViCare integration update?

Every 60 seconds per gateway. With several gateways the integration lengthens the interval accordingly so that the daily limit is sufficient. Every additional request, such as changing a temperature or using the ViCare app, counts too; anyone who exceeds a limit is blocked for 24 hours.

Can I use the ViCare app and an Optolink reading head at the same time?

Not without help, because the Vitoconnect for the ViCare app itself plugs into the Optolink interface, and the connection is exclusive. The community project optolink-splitter solves this: a Raspberry Pi sits between the boiler and the Vitoconnect, reads locally and passes the connection on to the Vitoconnect.

How do I read a new Viessmann heat pump locally?

Newer devices of the One Base generation, also called E3, have built-in Wi-Fi and an internal CAN bus. Locally, the community reads them with open3e via this CAN bus, using a USB-CAN adapter and a connection inside the device. The Optolink route with the well-known data point lists belongs to devices with a Vitotronic controller.

Does ViCare work without internet?

No. The integration polls the Viessmann cloud, and according to its manual the Vitoconnect connects exclusively to the Viessmann server. If the internet or the server fails, Home Assistant receives no values. Local operation without internet is only possible via Optolink or, on E3 devices, via the CAN bus.

Sources

Statements about the ViCare integration come from the Home Assistant documentation and source code and from Viessmann's developer portal, those about the Vitoconnect from the manufacturer's manual, and those about Optolink and the CAN bus from the projects themselves and from my own system. Viessmann sets the API's limits and packages and can change them.

Optolink and the CAN bus are the manufacturer's service interfaces, not documented customer interfaces. Read access is uncritical; write access is at your own risk. Haag Automation has no business relationship with Viessmann or the projects mentioned.

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.

You want to bring your Viessmann heating system into Home Assistant reliably, locally or via ViCare? I can set it up with you – the first conversation is free.