---
title: "Humidifier"
description: "Spook adds actions that turn the target humidity of a humidifier in Home Assistant up or down a step, without working out the new value yourself, that step it to its next or previous mode, and that turn a humidifier on or off for a while."
canonical_url: "https://spook.boo/humidifier"
---
# Humidifier

> Spook adds actions that turn the target humidity of a humidifier in Home Assistant up or down a step, without working out the new value yourself, that step it to its next or previous mode, and that turn a humidifier on or off for a while.

The humidifier integration is how Home Assistant controls humidifiers and dehumidifiers.

Home Assistant can set a humidifier to a target humidity, but not turn it up a step. Spook adds the step, the same way it does for [thermostats](https://spook.boo/climate) and [water heaters](https://spook.boo/water-heater). It also adds a way to turn a humidifier on or off for a while, and to step it to its next mode.

## Actions

Spook adds six actions for humidifiers. You find them wherever you add an action, marked with a 👻.

### Increase humidity

Turns the target humidity of a humidifier up a step, within the limits it reports.

Setting a humidifier to a number means you have to know the number. A button on the wall that says "a bit more" does not. Without this action, that button needs a template that reads the current target, adds to it, and keeps it under the maximum. This action does all of that.

**How to use it**

1. Open the automation or script that should turn it up, and select **Add action**.
2. Search for **increase humidity**, and select **Humidifier: Increase humidity 👻**.
3. Under **Targets**, choose the humidifier.
4. Leave **Step** empty to use the humidifier's own step, or set it, like `5` for five percent.
5. Select **Save**.

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

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

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

**Technical details**

| Action properties |
| --- |
| Action | Humidifier: Increase humidity 👻 |
| Action name | `humidifier.increase_humidity` |
| Action targets | Yes, `humidifier` entities |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=humidifier.increase_humidity) [![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=humidifier.increase_humidity) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `step` | integer | No | The humidifier's own step |

**Example actions in YAML**

Five percent more in the bedroom:

```yaml
action: humidifier.increase_humidity
target:
  entity_id: humidifier.bedroom
data:
  step: 5
```

### Decrease humidity

Turns the target humidity of a humidifier down a step, within the limits it reports.

The other way round from [Increase humidity](#increase-humidity). Handy for a "bit less" button, or for a dehumidifier in the basement that should back off a little once the rain stops.

**How to use it**

1. Open the automation or script that should turn it down, and select **Add action**.
2. Search for **decrease humidity**, and select **Humidifier: Decrease humidity 👻**.
3. Under **Targets**, choose the humidifier.
4. Leave **Step** empty to use the humidifier's own step, or set it, like `5` for five percent.
5. Select **Save**.

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

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

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

**Technical details**

| Action properties |
| --- |
| Action | Humidifier: Decrease humidity 👻 |
| Action name | `humidifier.decrease_humidity` |
| Action targets | Yes, `humidifier` entities |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=humidifier.decrease_humidity) [![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=humidifier.decrease_humidity) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `step` | integer | No | The humidifier's own step |

**Example actions in YAML**

One step down, the humidifier's own:

```yaml
action: humidifier.decrease_humidity
target:
  entity_id: humidifier.bedroom
```

Increase humidity and Decrease humidity work the same way:

- The step is the one you give, or the humidifier's own step, or one percent when it has none. That is the same as the slider in Home Assistant.
- Steps are whole percentages, since Home Assistant hands a humidifier its target as a whole number. A step of its own that is not one, like half a percent, moves a whole percent.
- The target stays within the minimum and maximum the humidifier reports. A step that would cross one stops at it.
- A humidifier that is off gets its target moved and stays off.

**Known limitations**

- A humidifier that has not reported a target yet is left alone.
- A target already past one of the humidifier's own limits, which some integrations report, is left where it is, and not pulled back.

### Turn on for

Turns humidifiers on for a while, and turns them back off when the time is up. Spook stores when each one is due back, so a restart of Home Assistant in between does not stop that.

It is [Turn on for](https://spook.boo/misc#turn-on-for), with the same rules, for humidifiers only. Named outright, anything that is not a humidifier is refused with an error. Picked up through an area, a device, a floor, a label or a group, it is passed over.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **turn on for**, and select **Humidifier: Turn on for 👻**.
3. Under **Targets**, choose the humidifiers, or a whole area.
4. Set **Duration** to how long they should stay on, like `00:15:00` for fifteen minutes.
5. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Humidifier: Turn on for 👻 |
| Action name | `humidifier.turn_on_for` |
| Action targets | Yes, `humidifier` entities |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=humidifier.turn_on_for) [![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=humidifier.turn_on_for) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `duration` | string | Yes | `00:15:00` |

**Example actions in YAML**

The bedroom humidifier, for half an hour:

```yaml
action: humidifier.turn_on_for
target:
  entity_id: humidifier.bedroom
data:
  duration: "00:30:00"
```

**Known limitations**

- The rules of [Turn on for](https://spook.boo/misc#turn-on-for) apply: only something plainly `on` or `off` is held. Something already on is left alone, and turning it off yourself ends the hold.

### Turn off for

Turns humidifiers off for a while, and turns them back on when the time is up. Spook stores when each one is due back, so a restart of Home Assistant in between does not stop that.

It is [Turn off for](https://spook.boo/misc#turn-off-for), with the same rules, for humidifiers only. Named outright, anything that is not a humidifier is refused with an error. Picked up through an area, a device, a floor, a label or a group, it is passed over.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **turn off for**, and select **Humidifier: Turn off for 👻**.
3. Under **Targets**, choose the humidifiers, or a whole area.
4. Set **Duration** to how long they should stay off, like `00:30:00` for half an hour.
5. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Humidifier: Turn off for 👻 |
| Action name | `humidifier.turn_off_for` |
| Action targets | Yes, `humidifier` entities |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=humidifier.turn_off_for) [![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=humidifier.turn_off_for) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `duration` | string | Yes | `00:30:00` |

**Example actions in YAML**

The dehumidifier, while the windows are open:

```yaml
action: humidifier.turn_off_for
target:
  entity_id: humidifier.basement
data:
  duration: "01:00:00"
```

**Known limitations**

- The rules of [Turn off for](https://spook.boo/misc#turn-off-for) apply: only something plainly `on` or `off` is held. Something already off is left alone, and turning it on yourself ends the hold.

### Next and previous mode

Steps a humidifier to its next mode, like from `normal` to `boost`, or back to the previous one. Only through the modes you pick, if you like.

A button by the bed that puts the dehumidifier in `sleep` for the night, `normal` in the morning, and `boost` after a shower. Home Assistant can set a humidifier to a 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).

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **next mode**, and select **Humidifier: Next mode 👻**. Or search for **previous mode**, and select **Humidifier: Previous mode 👻**, to go the other way.
3. Under **Targets**, choose the humidifiers.
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 modes it has, or fill in the ones to step through, in order, like `sleep`, `normal` and `boost`.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Humidifier: Next mode 👻 |
| Action name | `humidifier.next_mode` |
| Action targets | Yes, `humidifier` entities with 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=humidifier.next_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=humidifier.next_mode) |

| Action properties |
| --- |
| Action | Humidifier: Previous mode 👻 |
| Action name | `humidifier.previous_mode` |
| Action targets | Yes, `humidifier` entities with 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=humidifier.previous_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=humidifier.previous_mode) |

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

Both work the same way:

- Without **Options**, they step through the humidifier's own list, in the order the humidifier gives it.
- With **Options**, they step through those, in the order you give them, and skip the rest.
- A humidifier at a 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 humidifier at the end stays there, and is sent nothing.
- A humidifier already where the step would take it, like one with a single mode in the list, is sent nothing.
- Spook sets the new mode the way `humidifier.set_mode` does. That action hands any mode to the humidifier, listed or not. Spook only steps to a mode the humidifier lists.

**Example actions in YAML**

A button by the bed that steps the bedroom dehumidifier through three modes, one press at a time, and back to `sleep` after `boost`:

```yaml
triggers:
  - trigger: state
    entity_id: event.bedside_button
    not_from: unavailable
    not_to: unavailable
actions:
  - action: humidifier.next_mode
    target:
      entity_id: humidifier.bedroom
    data:
      options:
        - sleep
        - normal
        - boost
```

One mode back, through all of the humidifier's own:

```yaml
action: humidifier.previous_mode
target:
  entity_id: humidifier.bedroom
```

**Known limitations**

- A humidifier without 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 modes but lists none is sent nothing, also when named outright, and also with **Options**.
- Every option has to be one the humidifier has. One it does not have refuses the whole call with an error that names it, and no humidifier in the call is changed, not even the ones that have it. `humidifier.set_mode` would send it anyway; this check is the only one.
- An option given twice is refused: at that mode, there is no telling which of the two the humidifier is at.


## Sitemap

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