Set circulation schedule

Use this action to configure the weekly schedule of the domestic hot water (DHW) circulation pump on your Viessmann device. The circulation pump keeps hot water moving through your pipes so it reaches the tap faster, at the cost of extra energy use, so most people only run it during the hours they actually need instant hot water.

Using this action from the user interface

If you prefer building automations and scripts visually, Home Assistant walks you through this action step by step. You pick what to target, tweak a few options, and save. No YAML knowledge required.

To set the circulation schedule from an automation or a script:

  1. Go to Settings > Automations & scenes.
  2. Open an existing automation or script, or select Create automation > Create new automation.
  3. If you’re setting up a new automation, add a trigger in the When section. Scripts don’t need a trigger. They run when something else calls them.
  4. In the Then do section, select Add action.
  5. Select what you want to control. Under By target (see Targets), select the water heater entity of your Viessmann device.
  6. From the actions shown for that target, select Set circulation schedule.
  7. For each day you want to change, add the time slots for that day. Days you leave out keep their current schedule.
  8. Select Save.

Options in the UI

Monday (Optional)

The circulation slots for Monday. Each slot has a from time, a to time, and a mode. See Good to know for details. If left out, Monday keeps its current schedule.

Tuesday (Optional)

The circulation slots for Tuesday. If left out, Tuesday keeps its current schedule.

Wednesday (Optional)

The circulation slots for Wednesday. If left out, Wednesday keeps its current schedule.

Thursday (Optional)

The circulation slots for Thursday. If left out, Thursday keeps its current schedule.

Friday (Optional)

The circulation slots for Friday. If left out, Friday keeps its current schedule.

Saturday (Optional)

The circulation slots for Saturday. If left out, Saturday keeps its current schedule.

Sunday (Optional)

The circulation slots for Sunday. If left out, Sunday keeps its current schedule.

Using this action in YAML

If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required. For how an automation or a script is built in YAML, refer to Automations in YAML and Scripts.

In YAML, refer to this action as vicare.set_circulation_schedule. Each weekday field is a list of time slots for that day. A basic example looks like this:

ActionAn action makes Home Assistant do something, for example, turn on a light, send a notification, or activate a scene. Automations and scripts run a list of actions. [Learn more]
action: vicare.set_circulation_schedule
target:
  entity_id: water_heater.main_water_heater
data:
  monday:
    - from: "06:00"
      to: "22:00"
      mode: "on"
  sunday: []

This runs the circulation pump on Monday from 6:00 AM to 10:00 PM and turns it off on Sunday. All other days keep their current schedule.

Options in YAML

monday list (Optional)

The circulation slots for Monday. See Good to know for the fields each slot needs. If left out, Monday keeps its current schedule.

tuesday list (Optional)

The circulation slots for Tuesday. If left out, Tuesday keeps its current schedule.

wednesday list (Optional)

The circulation slots for Wednesday. If left out, Wednesday keeps its current schedule.

thursday list (Optional)

The circulation slots for Thursday. If left out, Thursday keeps its current schedule.

friday list (Optional)

The circulation slots for Friday. If left out, Friday keeps its current schedule.

saturday list (Optional)

The circulation slots for Saturday. If left out, Saturday keeps its current schedule.

sunday list (Optional)

The circulation slots for Sunday. If left out, Sunday keeps its current schedule.

Targets of the action

This action requires a target. The target is the object of the action. You can point the action at a single entityAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more], a device, an area, a floor, or a label, and Home Assistant will run the action on every matching water_heater entity behind that target.

  • Entity: one specific water_heater entity, such as water_heater.living_room.
  • Device: every water_heater entity that belongs to a device.
  • Area: every water_heater entity in a room or area.
  • Floor: every water_heater entity on a floor.
  • Label: every water_heater entity that shares a label.

You can also select different target types in one action. For example, you can add a specific entity and an area as targets in the same action to run the action on both of them at once.

To learn which entities Home Assistant includes for a device, area, floor, or label, and how it handles several entities, refer to Automation targets.

To leave out some of these entities, refer to Excluding targets. For example, you can leave out one water_heater entity in an area.

Good to know

Each time slot in a day’s list has the following fields:

  • from: Required. The time the pump turns on, such as 06:00 or 06:10. Times must be on a 10-minute grid.
  • to: Required. The time the pump turns off, on a 10-minute grid. Use 00:00 or 24:00 for the end of the day. It must be later than from.
  • mode: Required. The circulation mode for this slot: on (the pump runs continuously), cycles_5_25 (5 minutes on, 25 minutes off), or cycles_5_10 (5 minutes on, 10 minutes off). In the UI, these are shown as On, 5/25 cycles, and 5/10 cycles. Which modes your device supports varies by model. If you use a mode your device doesn’t support, the action fails and the error message lists the modes it does support.

To turn off circulation for a day, pass an empty list for that day, for example sunday: [].

The maximum number of slots per day depends on your device. If you exceed it, the action fails and the error message comes from your device.

To see the current schedule, use the Get circulation schedule action. Its response is keyed by entity ID, and the value for each water heater uses the same format as this action. To restore a saved schedule, pass only that value as data, for example data: "{{ saved['water_heater.main_water_heater'] }}", not the whole response.

Not all devices have a circulation pump. If yours doesn’t, the action fails with an error saying the device does not support a domestic hot water circulation schedule.

Try it yourself

Ready to test this? Open Settings > Tools > Actions, search for this action, fill in the fields, and select Perform action. You see what happens on your actual entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more] without writing a line of YAML.

More examples

Real scenarios where this action shows up in automations and scripts. Copy any example and adapt it to your setup. In the visual editor, select the UI options listed in the example or paste the YAML code.

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: Turn off circulation on weekends

This automation turns off the circulation pump on Saturday and Sunday every Friday evening, for example if you’re usually away on weekends. 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
Show example YAML
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: []

Automation: Restore the weekend schedule

This automation puts the weekend circulation schedule back every Monday morning, so the pump runs again next weekend. Adjust the times to match the hours you want the pump to run.

  • Trigger: Time
    • At time: 06:00:00
    • Weekdays: Monday
  • Action: Viessmann ViCare: Set circulation schedule
    • Target: Main water heater
    • Saturday and Sunday: one slot from 8:00 AM to 10:00 PM in mode on
Show example YAML
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Restore weekend circulation schedule"
triggers:
  - trigger: time
    at: "06:00:00"
    weekday: mon
actions:
  - action: vicare.set_circulation_schedule
    target:
      entity_id: water_heater.main_water_heater
    data:
      saturday:
        - from: "08:00"
          to: "22:00"
          mode: "on"
      sunday:
        - from: "08:00"
          to: "22:00"
          mode: "on"

Still stuck?

To test the action on its own, run it in the automation editor with Run action, and check the message that it shows. To see what the action did when the automation ran, open the trace of that run. For details, refer to Testing automations. For common problems and their solutions, refer to Troubleshooting automations.

If that doesn’t help, the Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the action you’re calling and what you expected to happen, or share on our subreddit /r/homeassistant.

Tip

AI assistants like ChatGPT or Claude can also explain actions or suggest the right one when you describe what you want in plain language.

Related actions

Explore related actions: