Integration: Viessmann ViCare (boilers and heat pumps)

Hello everyone,

I present to you Viessmann ViCare, a new external integration that connects Viessmann boilers (gas, oil) and heat pumps to Gladys via the ViCare app. It goes through the Viessmann cloud.

What you get

For each boiler or heat pump, the integration creates devices, with only the features that your model offers:

  • A thermostat per heating circuit: setpoint (current program temperature), mode (off, heating, cooling, automatic), operating status, ambient and flow temperatures. Each circuit can be placed in its room.
  • Domestic hot water: setpoint, mode (on recent devices and heat pumps), ballon boost, heating in progress, ballon temperature.
  • The generator: outside, boiler, flow and return temperatures, burner or compressor (running, number of starts, operating hours), daily gas and electricity consumption.

Temperatures and consumptions are stored in Gladys’ history.

Prerequisites

  • Gladys 5.1 or newer
  • A Viessmann device visible in the ViCare app
  • A client on the Viessmann developer portal. It is free and is created with your ViCare account. The free offer allows 1450 API calls per day, which is enough.

Installation

The boiler I’m supposed to use for testing is not yet connected, so I couldn’t do real tests and therefore preferred not to fully publish the integration. To install and test the integration.

  1. Install Viessmann ViCare from the Gladys integrations catalog. Click on Install from GitHub and enter https://github.com/bertrandda/gladys-viessmann
  2. On the Viessmann developer portal, create a client with the redirect URI https://my.gladysassistant.com/redirect/oauth (the address displayed under the Connect button in Gladys), then copy its client identifier (Client ID).
  3. In the Configuration tab of the integration, paste the client identifier, save, then click on Connect and log in with your ViCare account.
  4. Click on Test connection to see what has been found, then add your devices from the Discovery tab.

API Quota

The Viessmann API is limited to 1450 calls per day. The integration reads all the data from a gateway in a single call, every 120 seconds by default, i.e. approximately 720 calls per day. The interval is adjustable and adapts to the number of gateways. If the quota is reached, the integration pauses until its renewal and indicates this in the configuration screen.

Your feedback

This is a first version and as I told you I couldn’t test it yet so in case of problem, indicate your model, the message of the Test connection button and the integration logs (they never contain your credentials).

cc @ruegerth

Hi bertranda,

Great, I’m happy to test. Preparations are underway:

  • A new Gladys Assistant installation, completely empty and fresh, except for two community integrations for Roku and DNLA by Guim31.
  • Viessmann account already set up.

I’ll get back to you.

Best regards

Tom

Hi,

First feedback:

-- Connection to Viessmann worked. Maybe make it clearer to first click « Save Configuration Â» and only then on « Connect Â» … I needed one or two attempts, but in the end:

Then back to the configuration and clicked « Discover Â» and look:

Then all found devices added to Gladys: (I still need to check if I got every functionality :frowning: ) :

Congratulations so far, looks great to me. Tomorrow I’ll check the displayed values with the manufacturer app.

For info: I have a Viessmann Vitodens 200-W B2HB, product type B2HB connected with the WiFi module from Viessmann

Regards

Tom

My starting situation:

– Vitodens 200 W B2HB, a gas condensing boiler with central hot water generation

-- two circuits: hot water, heating

After the initial installation, I receive three devices as described above. I initially sorted these as follows, with each column corresponding to one device:

1: The values displayed here correspond to the values from the manufacturer’s app (Great, this works perfectly)

2: First test… hot water generation:

The displayed boost mode triggers a function called quick selection in the manufacturer’s app:

These quick selections have further functions:

Here it is visible that the one-time hot water preparation has started, i.e., the boost mode triggered above is working (Perfectly done, great)

The system reacts accordingly:

It indicates that a one-time hot water generation has been started via quick selection and it is generating hot water.

… and to conclude: « Boost off Â» works flawlessly

Overall result for hot water generation:

Displayed values are correct, triggering of the one-time hot water generation works, ending the hot water generation works.

Great, it couldn’t be better.

The test of the heating circuit will follow tomorrow, but already in advance: Why not use the thermostat widget developed here? That would be perfect for controlling the heating circuits, wouldn’t it?

Regards

Tom

Good evening @bertrandda and @ruegerth

Thanks to @ruegerth for solving my connection issue: thanks to the tip « back up first, connect afterward, Â» my integration is now working :folded_hands:

I’ll now organize everything and see what kind of nice dashboard I can create…

Thanks a lot,

Have a nice evening,

Jean

Thanks to both of you, I’ll improve the configuration form for better understanding.

Hello @bertrandda and @ruegerth

Here’s what this integration allows me to achieve under Gladys, it’s really awesome :star_struck:

Could you tell me what the « Eco Â» mode displayed here corresponds to:

In the settings of the different departures, you can optimize the heating curve on the official application. Could Gladys offer this optimization by taking advantage of the recorded data?

Also, would it be possible to have the display of the scheduling proposed by the native application?

I noticed that the boiler time was offset by a few minutes: could Gladys take care of automatically correcting the date and time?

Would it be possible to have a widget displaying the heating schedule?

Thanks already for this superb work,

Have a nice day,

Jean

Hi, that all looks great, doesn’t it? I think so.

Quick question: @jean_bruder: What system do you have? Heating circuit? Hot water circuit?

Best regards

Tom

Good evening @ruegerth

The boiler is a Vitodens 222-F B2SF-32. It heats the domestic hot water (with a tank) and provides heating for the underfloor heating circuits on the ground floor and the first floor. We have a spare circuit (reserve) for the attic, which will be converted in the coming years :slight_smile:

Have a nice evening,

Jean

Good evening @ruegerth, good evening @jean_bruder,

Thank you for your tests and feedback. I just made a release with some improvements.

The configuration form will be clearer in the next version: the steps are numbered, and it is now clearly stated that you must first save the configuration, and only then click on “Connect”. However, it is not possible to reorder the buttons; the design of external integrations in Gladys requires the “Save” button to be at the bottom of the page.

I think this has already been possible since Gladys 5.2, without modifying the integration.

  1. In Integrations → Thermostat, create an external thermostat.
  2. Choose as the setpoint the “Target temperature” feature of the heating circuit, as the mode “Mode”, and as the state “Operating state”.

It then appears in the thermostat widget, with a Gladys schedule if you wish.

An important point: the setpoint changes the temperature of the active program in ViCare (normal, reduced, comfort). If you want Gladys’ schedule to decide, set a single “normal” range for the entire day for this circuit in the ViCare app. Otherwise, the setpoints land in turn in the normal program and in the reduced program.

The “Eco” mode is the hot water mode reported by the boiler. Gladys groups under “Eco” the economic modes of ViCare (eco, efficient, efficientWithMinComfort, named “Eco” or “Efficient” in the app depending on the model). Gladys does not have a “Comfort” mode for water heaters: the Comfort mode of ViCare is displayed as “Manual”. Can you confirm what the ViCare app indicates on your side?

The new version adds a “Heating Program” widget. For each circuit, it displays the current program, the setpoint, the weekly schedule, and the heating curve. The schedule remains read-only and is modified in the ViCare app. Gladys 5.2 also offers its own schedule, via an external thermostat, explained in the documentation.

Are you talking about the native thermostat functionality in Gladys?
Gladys does not calculate automatic optimization. However, the widget displays the slope and the parallel and allows you to modify them from the dashboard (Gladys 5.2). The usual method, using the history of indoor and outdoor temperatures:

  • too cold when it’s freezing outside but correct in mid-season: increase the slope
  • too cold or too hot regardless of the weather: adjust the parallel
  • in small steps (0.1 for the slope, 1 for the parallel), waiting a few days between adjustments.

As with the first version, I was not able to really test the changes (if everything goes well tomorrow or the day after, I should be able to), so do not hesitate to test thoroughly and provide feedback