---
title: "Water heater"
description: "Spook adds actions that turn a water heater in Home Assistant up or down a step, within the limits it reports, and that step it to its next or previous operation mode."
canonical_url: "https://spook.boo/water-heater"
---
# Water heater

> Spook adds actions that turn a water heater in Home Assistant up or down a step, within the limits it reports, and that step it to its next or previous operation mode.

The water heater integration is how Home Assistant controls boilers, heat pump water heaters and other things that keep water hot.

Home Assistant can set a water heater to a temperature, but not turn it up a step. Spook adds the step, the same way it does for [thermostats](https://spook.boo/climate). It also steps a water heater to its next operation mode, like from `eco` to `performance`.

## Actions

Spook adds four actions for water heaters. You find them wherever you add an action, marked with a 👻.

The two that turn it up or down work the same way:

- The step is the one you give, in Home Assistant's unit, or the water heater's own step, or half a degree (one degree in Fahrenheit) when it has none, the same fallback the Home Assistant interface uses.
- The setpoint stays within the minimum and maximum the water heater reports. A step that would cross one stops at it.
- Everything is worked out in the water heater's own unit, so one in Fahrenheit is stepped in whole Fahrenheit degrees and meets its own limits exactly.
- A water heater that is off gets its setpoint moved and stays off.

### Increase temperature

Turns up a water heater's setpoint a step, within the limits it reports.

"A bit warmer" normally means reading the setpoint, adding to it, and keeping it under the maximum yourself. This does all of that. Put it on a button in the bathroom: one press for a slightly hotter shower, without anybody opening the app.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **increase temperature**, and select **Water heater: Increase temperature 👻**.
3. Under **Targets**, pick the water heaters.
4. Optionally, set **Step** to how many degrees it should go up. Leave it empty to use the water heater's own step.
5. Select **Save**.

Just want to see it work? [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.increase_temperature) opens it in your Home Assistant, ready to run once.

![The Actions tool with Increase temperature 👻 picked and filled in with an example.](https://spook.boo/images/screenshots/en/light/action-water-heater-increase-temperature.webp)

What **Try this action** opens, filled in with an example.

**Technical details**

| Action properties |
| --- |
| Action | Water heater: Increase temperature 👻 |
| Action name | `water_heater.increase_temperature` |
| Action targets | Yes, `water_heater` entities with a setpoint |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.increase_temperature) [![Open your Home Assistant instance and show the Actions tool with a specific action selected.](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.increase_temperature) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `step` | float | No | The water heater's own step |

**Example actions in YAML**

Two degrees up for the boiler:

```yaml
action: water_heater.increase_temperature
target:
  entity_id: water_heater.boiler
data:
  step: 2
```

### Decrease temperature

Turns down a water heater's setpoint a step, within the limits it reports.

The other way round from [Increase temperature](#increase-temperature): a bit cooler, never below the minimum. Turn the boiler down a step when everybody has left for the day, without having to know where it was set.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **decrease temperature**, and select **Water heater: Decrease temperature 👻**.
3. Under **Targets**, pick the water heaters.
4. Optionally, set **Step** to how many degrees it should go down. Leave it empty to use the water heater's own step.
5. Select **Save**.

Just want to see it work? [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.decrease_temperature) opens it in your Home Assistant, ready to run once.

![The Actions tool with Decrease temperature 👻 picked and filled in with an example.](https://spook.boo/images/screenshots/en/light/action-water-heater-decrease-temperature.webp)

What **Try this action** opens, filled in with an example.

**Technical details**

| Action properties |
| --- |
| Action | Water heater: Decrease temperature 👻 |
| Action name | `water_heater.decrease_temperature` |
| Action targets | Yes, `water_heater` entities with a setpoint |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.decrease_temperature) [![Open your Home Assistant instance and show the Actions tool with a specific action selected.](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.decrease_temperature) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `step` | float | No | The water heater's own step |

**Example actions in YAML**

One step down for the boiler, its own:

```yaml
action: water_heater.decrease_temperature
target:
  entity_id: water_heater.boiler
```

**Known limitations**

- A water heater without a setpoint, like one that can only be switched on and off, cannot be targeted.
- A water heater that has not reported a setpoint yet is left alone.
- A setpoint already past one of the water heater's own limits, which some integrations report, is left where it is, and not pulled back.

### Next and previous operation mode

Steps a water heater to its next operation mode, like from `eco` to `performance`, or back to the previous one. Only through the modes you pick, if you like.

A button in the bathroom that switches the heat pump water heater to `performance` before a bath, and back to `eco` after. Home Assistant can set a water heater to an operation mode, but not step it to the next one. Spook adds that step, the same way it does for [the presets of a thermostat](https://spook.boo/climate#next-and-previous-preset-mode).

> **Note:** `off` is one of the operation modes, when the water heater lists it, and plenty do. Without **Options**, a step from the mode before it turns the water heater off. Give the modes you want in **Options**, like `eco` and `performance`, to leave `off` out.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **next operation mode**, and select **Water heater: Next operation mode 👻**. Or search for **previous operation mode**, and select **Water heater: Previous operation mode 👻**, to go the other way.
3. Under **Targets**, choose the water heaters.
4. Leave **Cycle** on to go round at the end. Turn it off to stop there.
5. Leave **Options** empty to step through all of the operation modes it has, or fill in the ones to step through, in order, like `eco` and `performance`.
6. Select **Save**.

Just want to see it work? [Try next operation mode](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.next_operation_mode) or [try previous operation mode](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.previous_operation_mode) opens it in your Home Assistant, ready to run once.

**Technical details**

| Action properties |
| --- |
| Action | Water heater: Next operation mode 👻 |
| Action name | `water_heater.next_operation_mode` |
| Action targets | Yes, `water_heater` entities with operation modes |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.next_operation_mode) [![Open your Home Assistant instance and show the Actions tool with a specific action selected.](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.next_operation_mode) |

| Action properties |
| --- |
| Action | Water heater: Previous operation mode 👻 |
| Action name | `water_heater.previous_operation_mode` |
| Action targets | Yes, `water_heater` entities with operation modes |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.previous_operation_mode) [![Open your Home Assistant instance and show the Actions tool with a specific action selected.](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=water_heater.previous_operation_mode) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `cycle` | boolean | No | `true` |
| `options` | list | No | All of the water heater's own |

Both work the same way:

- Without **Options**, they step through the water heater's own list, in the order the water heater gives it.
- With **Options**, they step through those, in the order you give them, and skip the rest.
- A water heater at a operation mode that is not in that list, or that does not say, goes to the first one with next, and to the last one with previous.
- With **Cycle** on, the last goes round to the first, and the first back to the last. With **Cycle** off, a water heater at the end stays there, and is sent nothing.
- A water heater already where the step would take it, like one with a single operation mode in the list, is sent nothing.
- Spook sets the new operation mode the way `water_heater.set_operation_mode` does, with the same checks.

**Example actions in YAML**

A button in the bathroom that switches the water heater between `eco` and `performance`, without ever turning it off:

```yaml
triggers:
  - trigger: state
    entity_id: event.bathroom_button
    not_from: unavailable
    not_to: unavailable
actions:
  - action: water_heater.next_operation_mode
    target:
      entity_id: water_heater.boiler
    data:
      options:
        - eco
        - performance
```

**Known limitations**

- A water heater without operation modes cannot be targeted. Named outright, it is refused with an error. Picked up through an area, a device, a floor or a label, it is passed over, and the others are stepped. One that says it has operation modes but lists none is sent nothing, also when named outright, and also with **Options**.
- Every option has to be one the water heater has. One it does not have refuses the whole call with an error that names it, and no water heater in the call is changed, not even the ones that have it.
- An option given twice is refused: at that mode, there is no telling which of the two the water heater is at.


## Sitemap

See the full [sitemap](https://spook.boo/sitemap.md) for all pages.
