---
title: "Climate"
description: "Spook adds actions that turn a thermostat's temperature or humidity up or down a step, step it to its next or previous mode, preset or fan speed, and put it in a mode, on or off for a while, and back when the time is up, also across a restart."
canonical_url: "https://spook.boo/climate"
---
# Climate

> Spook adds actions that turn a thermostat's temperature or humidity up or down a step, step it to its next or previous mode, preset or fan speed, and put it in a mode, on or off for a while, and back when the time is up, also across a restart.

The climate integration is how Home Assistant controls thermostats, heat pumps and air conditioners.

Home Assistant can set a thermostat to a temperature, but not turn it up a step. A "one degree warmer" button has to read the setpoint (the temperature the thermostat aims for), add to it, and send it back. For a thermostat with two setpoints, nobody gets that template right on the first try. Spook adds the step, for the target humidity of a thermostat that keeps the air moist or dry as well.

Home Assistant can put a thermostat in a mode, but not for a while. Spook adds that too, with a time that survives a restart.

Home Assistant can step a select to its next option, but not a thermostat to its next preset, fan speed or mode. A remote button that goes through `eco`, `comfort` and `boost` has to be a template. Spook adds that step as well.

## Actions

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

### Increase temperature

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

Think of a "one degree warmer" button on a dashboard, or an automation that makes the bathroom a bit warmer on a cold morning. Without this, each of those is a template that reads the setpoint, adds to it and sends it back. For a thermostat that heats and cools with two setpoints, that template is where people give up. This action does the step for you.

**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 **Climate: Increase temperature 👻**.
3. Under **Targets**, choose the thermostats.
4. Leave **Step** empty to use the thermostat's own step, or fill in how many degrees, like `1`.
5. Select **Save**.

Just want to see it work? [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.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-climate-increase-temperature.webp)

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Increase temperature 👻 |
| Action name | `climate.increase_temperature` |
| Action targets | Yes, `climate` 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=climate.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=climate.increase_temperature) |

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

Both actions, increase and decrease, work the same way:

- The step is the one you give, or the thermostat's own step, or half a degree (one degree in Fahrenheit) when it has none, the same fallback the Home Assistant interface uses.
- A thermostat with one setpoint has it moved. A thermostat that heats below one setpoint and cools above another has both moved, so the band between them keeps its width. In heat and cool mode, the band is what moves, also on a thermostat that reports a single setpoint as well.
- The setpoint stays within the minimum and maximum the thermostat reports. A step that would cross one stops at it, and a band stops whole when either side reaches a limit.
- A thermostat that is off gets its setpoint moved and stays off.

**Example actions in YAML**

Turn the living room up one degree:

```yaml
action: climate.increase_temperature
target:
  entity_id: climate.living_room
data:
  step: 1
```

**Known limitations**

- A thermostat without a setpoint, like one that only does fan speeds, cannot be targeted.
- A thermostat in a mode without a setpoint at that moment, or that has not reported one yet, is left alone.
- A setpoint already past one of the thermostat's own limits, which some integrations report, is left where it is and not pulled back. So turning it up never makes it colder or jumps it further than the step.

### Decrease temperature

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

The other way round from [Increase temperature](#increase-temperature): a "bit cooler" button, or an automation that turns the bedroom down a step at night. Same rules and limits, the other direction.

**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 **Climate: Decrease temperature 👻**.
3. Under **Targets**, choose the thermostats.
4. Leave **Step** empty to use the thermostat's own step, or fill in how many degrees, like `1`.
5. Select **Save**.

Just want to see it work? [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.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-climate-decrease-temperature.webp)

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Decrease temperature 👻 |
| Action name | `climate.decrease_temperature` |
| Action targets | Yes, `climate` 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=climate.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=climate.decrease_temperature) |

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

Both actions, increase and decrease, work the same way:

- The step is the one you give, or the thermostat's own step, or half a degree (one degree in Fahrenheit) when it has none, the same fallback the Home Assistant interface uses.
- A thermostat with one setpoint has it moved. A thermostat that heats below one setpoint and cools above another has both moved, so the band between them keeps its width. In heat and cool mode, the band is what moves, also on a thermostat that reports a single setpoint as well.
- The setpoint stays within the minimum and maximum the thermostat reports. A step that would cross one stops at it, and a band stops whole when either side reaches a limit.
- A thermostat that is off gets its setpoint moved and stays off.

**Example actions in YAML**

Turn the living room down by the thermostat's own step:

```yaml
action: climate.decrease_temperature
target:
  entity_id: climate.living_room
```

**Known limitations**

- A thermostat without a setpoint, like one that only does fan speeds, cannot be targeted.
- A thermostat in a mode without a setpoint at that moment, or that has not reported one yet, is left alone.
- A setpoint already past one of the thermostat's own limits, which some integrations report, is left where it is and not pulled back. So turning it up never makes it colder or jumps it further than the step.

### Increase humidity

Turns up a thermostat's target humidity a step, within the limits it reports.

Some thermostats and air conditioners keep the air moist or dry as well as warm. A "bit more humid" button for one of those has the same problem as a "one degree warmer" button: a template that reads the target, adds to it and keeps it under the maximum. This action does the step for you, the same way the humidifier actions do.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **increase humidity**, and select **Climate: Increase humidity 👻**.
3. Under **Targets**, choose the thermostats.
4. Leave **Step** empty to use the thermostat'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=climate.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-climate-increase-humidity.webp)

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

**Technical details**

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

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

Both actions, increase and decrease, work the same way:

- The step is the one you give, in whole percentages, or the thermostat's own step, or one percent when it has none. The same as the humidifier actions.
- The target humidity stays within the minimum and maximum the thermostat reports. A step that would cross one stops at it.
- A thermostat that is off gets its target humidity moved and stays off.

**Example actions in YAML**

Five percent more in the living room:

```yaml
action: climate.increase_humidity
target:
  entity_id: climate.living_room
data:
  step: 5
```

**Known limitations**

- A thermostat without a target humidity, which is most of them, cannot be targeted. A humidifier on its own has [its own actions](https://spook.boo/humidifier#increase-humidity).
- A thermostat that has not reported a target humidity yet is left alone.
- A target humidity already past one of the thermostat's own limits is left where it is and not pulled back. So turning it up never makes it drier or jumps it further than the step.

### Decrease humidity

Turns down a thermostat's target humidity a step, within the limits it reports.

The other way round from [Increase humidity](#increase-humidity): a "bit drier" button, or an automation that lets an air conditioner dry the bedroom a little more on a sticky summer night. Same rules and limits, the other direction.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **decrease humidity**, and select **Climate: Decrease humidity 👻**.
3. Under **Targets**, choose the thermostats.
4. Leave **Step** empty to use the thermostat'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=climate.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-climate-decrease-humidity.webp)

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

**Technical details**

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

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

Both actions, increase and decrease, work the same way:

- The step is the one you give, in whole percentages, or the thermostat's own step, or one percent when it has none. The same as the humidifier actions.
- The target humidity stays within the minimum and maximum the thermostat reports. A step that would cross one stops at it.
- A thermostat that is off gets its target humidity moved and stays off.

**Example actions in YAML**

Turn the living room down by the thermostat's own step:

```yaml
action: climate.decrease_humidity
target:
  entity_id: climate.living_room
```

**Known limitations**

- A thermostat without a target humidity, which is most of them, cannot be targeted. A humidifier on its own has [its own actions](https://spook.boo/humidifier#increase-humidity).
- A thermostat that has not reported a target humidity yet is left alone.
- A target humidity already past one of the thermostat's own limits is left where it is and not pulled back. So turning it up never makes it drier or jumps it further than the step.

### Set HVAC mode for

Puts thermostats in a mode for a while, like `heat` for eight hours, and back in the mode each had when the time is up. Spook stores when each one is due back and the mode it goes back to, so a restart of Home Assistant in between does not stop that.

It works like [Turn on for](https://spook.boo/misc#turn-on-for), for thermostats only, with a mode in place of on and off. Named outright, anything that is not a thermostat 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 **set HVAC mode for**, and select **Climate: Set HVAC mode for 👻**.
3. Under **Targets**, choose the thermostats, or a whole area.
4. Set **HVAC mode** to the mode they should be in, like `heat`.
5. Set **Duration** to how long they should stay in it, like `08:00:00` for eight hours.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Set HVAC mode for 👻 |
| Action name | `climate.set_hvac_mode_for` |
| Action targets | Yes, `climate` 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=climate.set_hvac_mode_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=climate.set_hvac_mode_for) |

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

**Example actions in YAML**

The living room on heat for eight hours:

```yaml
action: climate.set_hvac_mode_for
target:
  entity_id: climate.living_room
data:
  hvac_mode: heat
  duration:
    hours: 8
```

**Known limitations**

- The mode has to be one of the thermostat's own modes, and so does the mode it is in, the one it goes back to. A thermostat without them is refused when named, and passed over in an area.
- A thermostat that is unavailable, or does not say which mode it is in, is refused when named, and passed over in an area.
- A thermostat already in that mode is left alone, and Spook says so in the log.
- Changing its mode yourself ends the hold, whichever mode you pick. Spook leaves it alone from then on, also when the time is up.
- Asking again, for the same mode or another, moves the time it goes back. It still goes back to the mode it had before the first time. Asking for that mode itself puts it back in it now, and ends the hold.
- Spook puts it in the mode, and back, with `climate.set_hvac_mode` and nothing else, so its setpoint is up to the thermostat.
- A thermostat that is out of reach when its time comes is put back once it is back, unless it comes back in another mode.

### Turn on for

Turns thermostats 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 works like [Turn on for](https://spook.boo/misc#turn-on-for), for thermostats only, where on is any mode but `off`. Named outright, anything that is not a thermostat 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 **Climate: Turn on for 👻**.
3. Under **Targets**, choose the thermostats, or a whole area.
4. Set **Duration** to how long they should stay on, like `01:00:00` for an hour.
5. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Turn on for 👻 |
| Action name | `climate.turn_on_for` |
| Action targets | Yes, `climate` 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=climate.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=climate.turn_on_for) |

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

**Example actions in YAML**

The bedroom on for an hour:

```yaml
action: climate.turn_on_for
target:
  entity_id: climate.bedroom
data:
  duration: "01:00:00"
```

**Known limitations**

- A thermostat that is on already, in any mode, is left alone, and Spook says so in the log.
- Spook turns it on with `climate.turn_on`, so the mode it lands in is up to the thermostat. It turns it back off with `climate.turn_off`.
- Changing it to another mode yourself keeps it on, so the hold stands. Turning it off yourself ends the hold.
- A thermostat that cannot be turned both on and off is refused when named, and passed over in an area. There would be no way back. The same goes for one that is unavailable, or does not say which mode it is in.

### Turn off for

Turns thermostats off for a while, and back in the mode each had when the time is up, not in a mode the thermostat picks. Spook stores when each one is due back and the mode it goes back to, so a restart of Home Assistant in between does not stop that.

It works like [Turn off for](https://spook.boo/misc#turn-off-for), for thermostats only, and goes back to the mode each had rather than to on. Named outright, anything that is not a thermostat 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 **Climate: Turn off for 👻**.
3. Under **Targets**, choose the thermostats, 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=climate.turn_off_for) opens it in your Home Assistant, ready to run once.

**Technical details**

| Action properties |
| --- |
| Action | Climate: Turn off for 👻 |
| Action name | `climate.turn_off_for` |
| Action targets | Yes, `climate` 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=climate.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=climate.turn_off_for) |

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

**Example actions in YAML**

The living room off for half an hour, while the windows are open:

```yaml
action: climate.turn_off_for
target:
  entity_id: climate.living_room
data:
  duration:
    minutes: 30
```

**Known limitations**

- Spook turns it off with `climate.set_hvac_mode` to `off`, and back with `climate.set_hvac_mode` to the mode it had. So `off` has to be one of the thermostat's own modes, and so does the mode it is in. A thermostat without them is refused when named, and passed over in an area.
- A thermostat that is off already is left alone, and Spook says so in the log.
- Turning it on yourself, in any mode, ends the hold. Spook leaves it alone from then on, also when the time is up.
- A thermostat that is unavailable, or does not say which mode it is in, is refused when named, and passed over in an area.

### Next and previous preset mode

Steps a thermostat to its next preset, like from `eco` to `comfort`, or back to the previous one. Only through the presets you pick, if you like.

Think of a button on a remote that goes through `eco`, `comfort` and `boost`, one press at a time. Home Assistant can do that for a select, with `select.select_next`, but not for the presets of a thermostat. Without this, that button is a template that finds the preset in the list, takes the one after it, and starts over at the end. This action does the step for you.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **next preset mode**, and select **Climate: Next preset mode 👻**. Or search for **previous preset mode**, and select **Climate: Previous preset mode 👻**, to go the other way.
3. Under **Targets**, choose the thermostats.
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 thermostat's presets, or fill in the ones to step through, in order, like `eco`, `comfort` and `boost`.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Next preset mode 👻 |
| Action name | `climate.next_preset_mode` |
| Action targets | Yes, `climate` entities with presets |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.next_preset_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=climate.next_preset_mode) |

| Action properties |
| --- |
| Action | Climate: Previous preset mode 👻 |
| Action name | `climate.previous_preset_mode` |
| Action targets | Yes, `climate` entities with presets |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.previous_preset_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=climate.previous_preset_mode) |

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

These actions, next and previous for every kind of mode, work the same way:

- Without **Options**, they step through the thermostat's own list, in the order the thermostat gives it.
- With **Options**, they step through those, in the order you give them, and skip the rest.
- A thermostat in 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 thermostat at the end stays there, and is sent nothing.
- A thermostat 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 the Home Assistant action for it does, like `climate.set_preset_mode`, with the same checks.

**Example actions in YAML**

A button on the living room remote that goes through three presets, one press at a time, and back to `eco` after `boost`:

```yaml
triggers:
  - trigger: state
    entity_id: event.living_room_remote_button_1
    not_from: unavailable
    not_to: unavailable
actions:
  - action: climate.next_preset_mode
    target:
      entity_id: climate.living_room
    data:
      options:
        - eco
        - comfort
        - boost
```

One preset back, through all of the thermostat's own:

```yaml
action: climate.previous_preset_mode
target:
  entity_id: climate.living_room
```

**Known limitations**

- A thermostat without presets 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 presets but lists none is sent nothing, also when named outright, and also with **Options**.
- Every option has to be one the thermostat has. One it does not have refuses the whole call with an error that names it, and no thermostat 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 thermostat is at.

### Next and previous HVAC mode

Steps a thermostat to its next mode, like from `heat` to `cool`, or back to the previous one. Only through the modes you pick, if you like.

A single button that switches the heat pump between heating and cooling, or goes through every mode it has. The same as the presets above, for the HVAC mode: what the thermostat is doing, like `heat`, `cool` or `off`.

> **Note:** `off` is one of the modes, when the thermostat has it. Without **Options**, a step from the mode before it turns the thermostat off. Give the modes you want in **Options**, like `heat` and `cool`, 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 HVAC mode**, and select **Climate: Next HVAC mode 👻**. Or search for **previous HVAC mode**, and select **Climate: Previous HVAC mode 👻**, to go the other way.
3. Under **Targets**, choose the thermostats.
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 thermostat's modes, or fill in the ones to step through, in order, like `heat` and `cool`.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Next HVAC mode 👻 |
| Action name | `climate.next_hvac_mode` |
| Action targets | Yes, `climate` 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=climate.next_hvac_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=climate.next_hvac_mode) |

| Action properties |
| --- |
| Action | Climate: Previous HVAC mode 👻 |
| Action name | `climate.previous_hvac_mode` |
| Action targets | Yes, `climate` 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=climate.previous_hvac_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=climate.previous_hvac_mode) |

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

They work the same way as [next and previous preset mode](#next-and-previous-preset-mode): with or without **Options**, with or without **Cycle**, and from a mode outside the list.

**Example actions in YAML**

Switch the living room between heating and cooling, without ever turning it off:

```yaml
action: climate.next_hvac_mode
target:
  entity_id: climate.living_room
data:
  options:
    - heat
    - cool
```

**Known limitations**

- Every thermostat has HVAC modes, so any thermostat can be targeted. One that lists none is sent nothing, also with **Options**.
- Every option has to be one the thermostat has. One it does not have refuses the whole call with an error that names it, and no thermostat 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 thermostat is at.

### Next and previous fan mode

Steps a thermostat's fan to its next speed, like from `low` to `medium`, or back to the previous one. Only through the speeds you pick, if you like.

A "faster" and a "slower" button for the air conditioner in the bedroom. The same as the presets above, for the fan.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **next fan mode**, and select **Climate: Next fan mode 👻**. Or search for **previous fan mode**, and select **Climate: Previous fan mode 👻**, to go the other way.
3. Under **Targets**, choose the thermostats.
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 thermostat's fan modes, or fill in the ones to step through, in order, like `low`, `medium` and `high`.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Next fan mode 👻 |
| Action name | `climate.next_fan_mode` |
| Action targets | Yes, `climate` entities with a fan mode |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.next_fan_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=climate.next_fan_mode) |

| Action properties |
| --- |
| Action | Climate: Previous fan mode 👻 |
| Action name | `climate.previous_fan_mode` |
| Action targets | Yes, `climate` entities with a fan mode |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.previous_fan_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=climate.previous_fan_mode) |

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

They work the same way as [next and previous preset mode](#next-and-previous-preset-mode): with or without **Options**, with or without **Cycle**, and from a mode outside the list.

**Example actions in YAML**

One step faster, stopping at the fastest rather than going round to the slowest:

```yaml
action: climate.next_fan_mode
target:
  entity_id: climate.bedroom
data:
  cycle: false
  options:
    - low
    - medium
    - high
```

**Known limitations**

- A thermostat without a fan mode 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 fan modes but lists none is sent nothing, also when named outright, and also with **Options**.
- Every option has to be one the thermostat has. One it does not have refuses the whole call with an error that names it, and no thermostat 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 thermostat is at.

### Next and previous swing mode

Steps a thermostat to its next swing mode, the way its louvers move up and down, or back to the previous one. Only through the swing modes you pick, if you like.

The swing button of the remote that came with the air conditioner, on a dashboard or a button of your own. The same as the presets above, for the swing mode.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **next swing mode**, and select **Climate: Next swing mode 👻**. Or search for **previous swing mode**, and select **Climate: Previous swing mode 👻**, to go the other way.
3. Under **Targets**, choose the thermostats.
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 thermostat's swing modes, or fill in the ones to step through, in order, like `off` and `on`.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Next swing mode 👻 |
| Action name | `climate.next_swing_mode` |
| Action targets | Yes, `climate` entities with a swing mode |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.next_swing_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=climate.next_swing_mode) |

| Action properties |
| --- |
| Action | Climate: Previous swing mode 👻 |
| Action name | `climate.previous_swing_mode` |
| Action targets | Yes, `climate` entities with a swing mode |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.previous_swing_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=climate.previous_swing_mode) |

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

They work the same way as [next and previous preset mode](#next-and-previous-preset-mode): with or without **Options**, with or without **Cycle**, and from a mode outside the list.

**Example actions in YAML**

Go through the bedroom's swing modes, in the order the air conditioner lists them:

```yaml
action: climate.next_swing_mode
target:
  entity_id: climate.bedroom
```

**Known limitations**

- A thermostat without a swing mode 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 swing modes but lists none is sent nothing, also when named outright, and also with **Options**.
- Every option has to be one the thermostat has. One it does not have refuses the whole call with an error that names it, and no thermostat 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 thermostat is at.

### Next and previous horizontal swing mode

Steps a thermostat to its next horizontal swing mode, the way its louvers move left and right, or back to the previous one. Only through the ones you pick, if you like.

The same as the swing mode above, for the louvers that move sideways.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **next horizontal swing mode**, and select **Climate: Next horizontal swing mode 👻**. Or search for **previous horizontal swing mode**, and select **Climate: Previous horizontal swing mode 👻**, to go the other way.
3. Under **Targets**, choose the thermostats.
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 thermostat's horizontal swing modes, or fill in the ones to step through, in order, like `off` and `on`.
6. Select **Save**.

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

**Technical details**

| Action properties |
| --- |
| Action | Climate: Next horizontal swing mode 👻 |
| Action name | `climate.next_swing_horizontal_mode` |
| Action targets | Yes, `climate` entities with a horizontal swing mode |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.next_swing_horizontal_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=climate.next_swing_horizontal_mode) |

| Action properties |
| --- |
| Action | Climate: Previous horizontal swing mode 👻 |
| Action name | `climate.previous_swing_horizontal_mode` |
| Action targets | Yes, `climate` entities with a horizontal swing mode |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=climate.previous_swing_horizontal_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=climate.previous_swing_horizontal_mode) |

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

They work the same way as [next and previous preset mode](#next-and-previous-preset-mode): with or without **Options**, with or without **Cycle**, and from a mode outside the list.

**Example actions in YAML**

One horizontal swing mode back in the living room:

```yaml
action: climate.previous_swing_horizontal_mode
target:
  entity_id: climate.living_room
```

**Known limitations**

- A thermostat without a horizontal swing mode 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 horizontal swing modes but lists none is sent nothing, also when named outright, and also with **Options**.
- Every option has to be one the thermostat has. One it does not have refuses the whole call with an error that names it, and no thermostat 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 thermostat is at.


## Sitemap

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