Humidifier
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 and water heaters. 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
- Open the automation or script that should turn it up, and select Add action.
- Search for increase humidity, and select Humidifier: Increase humidity 👻.
- Under Targets, choose the humidifier.
- Leave Step empty to use the humidifier's own step, or set it, like
5for five percent. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| 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 |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
step | integer | No | The humidifier's own step |
Five percent more in the bedroom:
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. 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
- Open the automation or script that should turn it down, and select Add action.
- Search for decrease humidity, and select Humidifier: Decrease humidity 👻.
- Under Targets, choose the humidifier.
- Leave Step empty to use the humidifier's own step, or set it, like
5for five percent. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| 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 |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
step | integer | No | The humidifier's own step |
One step down, the humidifier's own:
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.
- 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, 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
- Open the automation or script that should do this, and select Add action.
- Search for turn on for, and select Humidifier: Turn on for 👻.
- Under Targets, choose the humidifiers, or a whole area.
- Set Duration to how long they should stay on, like
00:15:00for fifteen minutes. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.
| 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 |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
duration | string | Yes | 00:15:00 |
The bedroom humidifier, for half an hour:
action: humidifier.turn_on_for
target:
entity_id: humidifier.bedroom
data:
duration: "00:30:00"
- The rules of Turn on for apply: only something plainly
onoroffis 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, 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
- Open the automation or script that should do this, and select Add action.
- Search for turn off for, and select Humidifier: Turn off for 👻.
- Under Targets, choose the humidifiers, or a whole area.
- Set Duration to how long they should stay off, like
00:30:00for half an hour. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.
| 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 |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
duration | string | Yes | 00:30:00 |
The dehumidifier, while the windows are open:
action: humidifier.turn_off_for
target:
entity_id: humidifier.basement
data:
duration: "01:00:00"
- The rules of Turn off for apply: only something plainly
onoroffis 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.
How to use it
- Open the automation or script that should do this, and select Add action.
- Search for next mode, and select Humidifier: Next mode 👻. Or search for previous mode, and select Humidifier: Previous mode 👻, to go the other way.
- Under Targets, choose the humidifiers.
- Leave Cycle on to go round at the end. Turn it off to stop there.
- Leave Options empty to step through all of the modes it has, or fill in the ones to step through, in order, like
sleep,normalandboost. - Select Save.
Just want to see it work? Try next mode or try previous mode opens it in your Home Assistant, ready to run once.
| 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 |
| 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 |
| 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_modedoes. That action hands any mode to the humidifier, listed or not. Spook only steps to a mode the humidifier lists.
A button by the bed that steps the bedroom dehumidifier through three modes, one press at a time, and back to sleep after boost:
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:
action: humidifier.previous_mode
target:
entity_id: humidifier.bedroom
- 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_modewould 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.
Missing something here?
An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.
HomeKit Bridge
Spook tells you when a HomeKit Bridge in Home Assistant includes, excludes or links entities that no longer exist, right on your repairs dashboard.
Input boolean
Spook adds actions to create, change and delete input boolean (toggle) helpers in Home Assistant from your automations and scripts, and to turn them on or off for a while.


