Viessmann ViCare

The Viessmann ViCare integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] connects Home Assistant to the Viessmann cloud, the same cloud the ViCare app uses. It shows the values your devices report and lets you control heating, domestic hot water (DHW), and ventilation from Home Assistant.

Supported devices

Devices that you can see in the ViCare app can be added to Home Assistant. The integration recognizes these device families:

  • Gas boilers: Vitodens, Vitocrossal, and Vitopend
  • Oil boilers: Vitoladens, Vitorondens, and Vitoradial
  • Pellet boilers: Vitoligno
  • Heat pumps: Vitocal, including hybrid systems such as the Vitocaldens
  • Fuel cell heating: Vitovalor and Vitoblo
  • Electricity storage: Vitocharge VX3
  • Ventilation: Vitoair and Vitovent units, and the Vitopure air purifier
  • Water softeners: Vitoset Aqua
  • ViCare Smart Climate: radiator thermostats, room sensors, floor heating distributors, and repeaters

Newer devices with built-in Wi-Fi connect to the cloud directly. Older devices need a Vitoconnect gateway.

Prerequisites

Home Assistant needs its own API client from the Viessmann developer portal:

  1. Sign in to the Viessmann developer portal with your ViCare app account.
  2. In the Clients section of the dashboard, select Add and create a client with these settings:
    • Name: HomeAssistant
    • Redirect URIs: https://my.home-assistant.io/redirect/oauth
    • If the form offers Google reCAPTCHA, disable it.
  3. Copy the Client ID of the new client.

Note

A new client can take up to an hour to become active. Until then, Home Assistant does not find any devices.

When Home Assistant asks for application credentials during setup, enter the Client ID. The Client Secret field is not used, so you can enter any value.

The API access is free. Viessmann currently offers no paid plans.

Configuration

To add the Viessmann ViCare hub to your Home Assistant instance, use this My button:

Viessmann ViCare can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.

Manual configuration steps

If it wasn’t discovered automatically, don’t worry! You can set up a manual integration entry:

  • Browse to your Home Assistant instance.

  • Go to Settings > Devices & services.

  • In the bottom right corner, select the Add Integration button.

  • From the list, select Viessmann ViCare.

  • Follow the instructions on screen to complete the setup.

Supported functionality

The integration creates entities for the data points your device reports, so the entities differ from device to device. A single physical device usually has entities of several types.

Heating

Each heating circuit has a Heating climate entity. It shows the room temperature if the device measures one, and the supply temperature otherwise.

The HVAC modes of the climate entity map to the Viessmann operation modes:

  • off: standby, which switches off heating and domestic hot water. Devices without standby use dhw (hot water only) or forcedReduced instead.
  • heat: forcedNormal, which permanently heats to the normal temperature.
  • auto: the first of dhwAndHeatingCooling, dhwAndHeating, heatingCooling, and heating that the device supports. These follow the schedule programmed in your device, switching between the reduced and normal temperature.
  • cool: cooling, on heat pumps that can cool.

Each heating circuit also has an Operating mode select that offers all operation modes the device reports, such as DHW only, DHW and heating, or Standby. The climate entity maps several of these modes to the same HVAC mode, but the select sets each one directly.

The climate.set_temperature action changes the temperature of the active program: the reduced or normal temperature, following your schedule, or the temperature of the preset if one is active. The presets eco and comfort are the Viessmann programs of the same name and end after 8 hours. Eco lowers the target temperature by 3 °C, and comfort heats to a temperature you configure. Number entities set the temperatures for the reduced, normal, and comfort programs, as well as the slope and shift of the heating curve.

The holiday programs appear as Holiday and Holiday at home binary sensors, with sensors for their start and end dates.

Hot water

The Domestic hot water water heater entity shows the hot water temperature and sets its target. It cannot switch hot water on or off. Use the DHW operating mode select if your device has one, or the Operating mode select of the heating circuit.

The Activate one-time charge button heats the hot water once, also outside of the schedule. Depending on the device, it heats to the normal temperature or to the DHW secondary temperature. The Deactivate one-time charge button stops it.

If your device has a domestic hot water circulation pump, you can read its weekly schedule with the Get circulation schedule action and change it with the Set circulation schedule action.

Ventilation

Ventilation units appear as fans with their speeds and presets. Their quickmodes, such as Intensive, Eco, Boost, and Silent, are switches. Only one quickmode can be active at a time, so turn the active one off before you turn on another.

Sensors

Sensors and binary sensors cover temperatures, pressures, energy and gas consumption, compressor and burner states, and more, depending on what your device reports.

The rooms of a ViCare room control appear as separate devices named Room 0, Room 1, and so on, each with a temperature and a humidity sensor and a Window and a Condensation risk binary sensor. The Viessmann API does not provide the room names, so rename the devices and assign them to areas as needed.

Vitoset Aqua water softeners have the following sensors:

  • Salt supply: the number of days the salt lasts
  • Water consumption: the total water consumption, in liters
  • Water consumption today: the water consumed today, in liters
  • Water flow: the current water flow, in liters per minute

Heat pumps that report the heat they produce have the following sensors:

  • Heat production: the current heat output
  • Heating heat production today: the heat produced for heating today
  • DHW heat production today: the heat produced for domestic hot water today

Devices that report their internal pump have an Internal pump binary sensor that shows whether the pump is running.

Devices that report the modulation of their internal pump have the following sensors:

  • Internal pump modulation: the current modulation of the internal pump, in percent
  • Internal pump target modulation: the modulation the device requests from the internal pump, in percent

Not every device reports both. Some gas boilers only report the target.

List of actions

The Viessmann ViCare integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.

  • Get circulation schedule (vicare.get_circulation_schedule) Gets the domestic hot water circulation pump schedule.

  • Set circulation schedule (vicare.set_circulation_schedule) Sets the domestic hot water circulation pump schedule.

  • Set ViCare mode (vicare.set_vicare_mode) Sets the mode of the climate device as defined by Viessmann.

For an overview of every action across all integrations, see the actions reference.

Viessmann ViCare automation examples

With your heating in Home Assistant, you can combine it with your other devices, for example a solar system or a weather station. Here are a few ideas to get you started.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the visual automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Automation: Heat the hot water with surplus solar power

Raise the hot water target to 60 °C when you feed more than 2 kW of solar power into the grid for 10 minutes. The device heats the hot water only within the times of its hot water schedule, so make sure the schedule covers the sunny hours. In this example, the grid power sensor reports export as a negative value. Lower the target again with a second automation, for example in the evening.

  • Trigger: Numeric state crossed threshold
    • Entity: Your grid power sensor
    • Below: -2000
    • For: 10 minutes
  • Action: Set water heater target temperature
    • Target: The Domestic hot water entity of your device
    • Temperature: 60
YAML example for heating the hot water with surplus solar power
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Hot water boost with solar surplus"
triggers:
  - trigger: numeric_state
    entity_id: sensor.grid_power
    below: -2000
    for: "00:10:00"
actions:
  - action: water_heater.set_temperature
    target:
      entity_id: water_heater.vitocal_domestic_hot_water
    data:
      temperature: 60

Automation: Hot water only in summer

Stop heating once it stays warm outside for a day, and keep the hot water running.

  • Trigger: Numeric state crossed threshold
    • Entity: The Outside temperature sensor of your device
    • Above: 18
    • For: 24 hours
  • Action: Select option
    • Target: The Operating mode select of your heating circuit
    • Option: DHW only
YAML example for hot water only in summer
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Summer mode for the heating"
triggers:
  - trigger: numeric_state
    entity_id: sensor.vitocal_outside_temperature
    above: 18
    for: "24:00:00"
actions:
  - action: select.select_option
    target:
      entity_id: select.vitocal_operating_mode
    data:
      option: dhw

Automation: Notify when the heating goes offline

Get a notification when your heating has been unavailable in Home Assistant for an hour, for example because the gateway lost its connection.

  • Trigger: State
    • Entity: The Heating climate entity of your device
    • To: Unavailable
    • For: 1 hour
  • Action: Send a notification message
    • Target: My Device (notify.my_device)
YAML example for a notification when the heating goes offline
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Heating offline"
triggers:
  - trigger: state
    entity_id: climate.vitocal_heating
    to: unavailable
    for: "01:00:00"
actions:
  - action: notify.send_message
    target:
      entity_id: notify.my_phone
    data:
      message: "The heating has been offline in Home Assistant for an hour."

Automation: Pause circulation while nobody is home

This automation saves the circulation schedule when everyone leaves, turns the pump off, and restores the saved schedule once someone comes back.

  • Trigger: Numeric state crossed threshold
    • Entity: Home
    • Below: 1
  • Action: Viessmann ViCare: Get circulation schedule
    • Target: Main water heater
    • Response variable: saved
  • Action: Viessmann ViCare: Set circulation schedule
    • Target: Main water heater
    • Monday to Sunday: selected, with no slots
  • Action: Wait for a trigger
    • Trigger: Numeric state crossed threshold
      • Entity: Home
      • Above: 0
  • Action: Viessmann ViCare: Set circulation schedule
    • Target: Main water heater
    • Data (in YAML mode): the saved schedule of the water heater, as shown in the example YAML
YAML example for pausing circulation while nobody is home
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Pause circulation while nobody is home"
triggers:
  - trigger: numeric_state
    entity_id: zone.home
    below: 1
actions:
  - action: vicare.get_circulation_schedule
    target:
      entity_id: water_heater.main_water_heater
    response_variable: saved
  - action: vicare.set_circulation_schedule
    target:
      entity_id: water_heater.main_water_heater
    data:
      monday: []
      tuesday: []
      wednesday: []
      thursday: []
      friday: []
      saturday: []
      sunday: []
  - wait_for_trigger:
      - trigger: numeric_state
        entity_id: zone.home
        above: 0
  - action: vicare.set_circulation_schedule
    target:
      entity_id: water_heater.main_water_heater
    data: "{{ saved['water_heater.main_water_heater'] }}"

Automation: Turn off circulation on weekends

This automation turns off the circulation pump on Saturday and Sunday every Friday evening. The weekday schedule stays as it is.

  • Trigger: Time
    • At time: 20:00:00
    • Weekdays: Friday
  • Action: Viessmann ViCare: Set circulation schedule
    • Target: Main water heater
    • Saturday and Sunday: selected, with no slots
YAML example for turning off circulation on weekends
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Turn off circulation on weekends"
triggers:
  - trigger: time
    at: "20:00:00"
    weekday: fri
actions:
  - action: vicare.set_circulation_schedule
    target:
      entity_id: water_heater.main_water_heater
    data:
      saturday: []
      sunday: []

Data updates

The integration pollsData polling is the process of querying a device or service at regular intervals to check for updates or retrieve data. By defining a custom polling interval, you can control how frequently your system checks for new data, which can help optimize performance and reduce unnecessary network traffic. [Learn more] the Viessmann cloud every 60 seconds. Devices behind the same gateway share one request. With more than one gateway, the interval grows with the number of gateways, so that the total stays within the API limit: every 120 seconds with two gateways, every 180 seconds with three.

Viessmann allows 1,450 API calls in 24 hours for each API client. Polling uses most of them, and every command you send from Home Assistant counts as well. When the limit is reached, Viessmann blocks further requests until the 24-hour window ends, and the entities become unavailable in the meantime. The ViCare app uses its own client and does not count toward the limit of Home Assistant.

Important

Use your API client only for one Home Assistant installation. Two installations or other tools that share a client ID also share its limit and run into it.

Known limitations

  • Values are as fresh as the last poll. A change made in the ViCare app or at the device shows up in Home Assistant with the next poll.
  • The water heater entity sets the target temperature only. Switching hot water on or off goes through the operating mode selects.
  • The Viessmann API does not provide the names of the rooms of a ViCare room control.

Reporting a new device or a missing value

The integration only creates entities for the data points that the Viessmann API reports for your device. If your device has only a few entities, or a value you see in the ViCare app is missing in Home Assistant, it most likely needs support in PyViCare, the library that reads the data for Home Assistant:

  1. Go to Settings > Devices & services, open the Viessmann ViCare integration, and select Download diagnostics. The file contains the data points of all your devices, with gateway IDs and credentials replaced by placeholders.
  2. Open a new issue in the PyViCare repository, name your device model, describe the value you are missing, and attach the diagnostics file.

Troubleshooting

Invalid redirection URI

When adding or re-authenticating the integration, you get this error in the browser:

{"error":"invalid_request", "error_description":"Invalid redirection URI."}

Set the Redirect URIs on your API client in the Viessmann developer portal to exactly https://my.home-assistant.io/redirect/oauth, save (it may take up to an hour to become active), and try again.

This error can also happen if you use a Client ID from older guides, like the one used by the ViCare app. That client only allows the redirect URI vicare://oauth-callback/everest, which Home Assistant cannot use. Instead of trying to change the redirect URI, create your own API client (see prerequisites) and use its Client ID.

Client not registered

When adding the integration, you get this error in the browser:

{"error":"invalid_request", "error_description":"Client not registered."}

The Client ID sent to Viessmann does not match a client in the developer portal. This usually happens after you have set up ViCare before: Home Assistant keeps your old Client ID as an application credential and reuses it automatically, even after you remove the integration. To enter a new Client ID, delete the stored one first:

  1. Go to Settings > Devices & services.
  2. In the top right corner, select the three dots menu and select Application credentials.
  3. Select the Viessmann ViCare credential, select the three dots menu and select Delete.
  4. Add the integration again. Setup now prompts for the application credentials again; enter the Client ID from your current client in the Viessmann developer portal.

Devices are unavailable for a while

The Viessmann cloud loses contact with the gateway from time to time, and the Home Assistant log shows GATEWAY_OFFLINE. This usually resolves itself after a while. If it persists, power cycle the gateway.

Removing the integration

This integration follows standard integration removal. Once the integration is removed, you can remove the API client (assuming it was only used by this integration) by going to the Viessmann developer portal and deleting the client you created for Home Assistant.

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. Next to the entry you want to remove, select the three dots menu. Then, select Delete.
    • Depending on the integration, the entries are listed under one of the following headings:
      • Devices
      • Hubs
      • Services
      • Integration entries
  3. To confirm, select Delete.
    • Home Assistant also deletes the devices and entities of the entry.
  4. If Home Assistant asks you to restart, restart Home Assistant.
  5. If Home Assistant asks whether to also delete the application credentials, select Remove or Keep.