---
title: "Valve"
description: "Spook adds actions that move a valve in Home Assistant a step further open or closed, without working out the new position yourself."
canonical_url: "https://spook.boo/valve"
---
# Valve

> Spook adds actions that move a valve in Home Assistant a step further open or closed, without working out the new position yourself.

The valve integration is how Home Assistant controls water, gas and irrigation valves.

Home Assistant can set a valve to a position, but not a bit further. Spook adds the step, the same way it does for [covers](https://spook.boo/cover).

## Actions

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

Both work the same way:

- Positions are whole percentages, from 0 for fully closed to 100 for fully open, the same as Home Assistant's own.
- The step is the one you give, or ten percent. A valve does not say how far one step is, the way a thermostat does.
- A step that would go past fully open or fully closed stops there.

### Increase position

Moves a valve a step further open, stopping at fully open.

You cannot ask Home Assistant for "a bit more water". It wants a position, so you first read where the valve is, add to it, and keep it under 100. This action does that for you. Put it on a dashboard button next to the irrigation valve, and every press opens it a little further.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **increase position**, and select **Valve: Increase position 👻**.
3. Under **Targets**, pick the valves.
4. Optionally, set **Step** to how many percent it should move. Ten when left empty.
5. Select **Save**.

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

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

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

**Technical details**

| Action properties |
| --- |
| Action | Valve: Increase position 👻 |
| Action name | `valve.increase_position` |
| Action targets | Yes, `valve` entities that can be set to a position |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=valve.increase_position) [![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=valve.increase_position) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `step` | integer | No | `10` |

**Example actions in YAML**

The garden a fifth further open:

```yaml
action: valve.increase_position
target:
  entity_id: valve.garden_irrigation
data:
  step: 20
```

### Decrease position

Moves a valve a step further closed, stopping at fully closed.

The other way round from [Increase position](#increase-position): a bit less, without working out the number, and never below fully closed.

**How to use it**

1. Open the automation or script that should do this, and select **Add action**.
2. Search for **decrease position**, and select **Valve: Decrease position 👻**.
3. Under **Targets**, pick the valves.
4. Optionally, set **Step** to how many percent it should move. Ten when left empty.
5. Select **Save**.

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

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

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

**Technical details**

| Action properties |
| --- |
| Action | Valve: Decrease position 👻 |
| Action name | `valve.decrease_position` |
| Action targets | Yes, `valve` entities that can be set to a position |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | [Try this action](https://my.home-assistant.io/redirect/developer_call_service/?service=valve.decrease_position) [![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=valve.decrease_position) |

| Action data parameters |
| --- |
| Attribute | Type | Required | Default / Example |
| `step` | integer | No | `10` |

**Example actions in YAML**

The garden ten percent further closed:

```yaml
action: valve.decrease_position
target:
  entity_id: valve.garden_irrigation
```

**Known limitations**

- A valve that can only open and close, like most shutoff valves, cannot be targeted. There is no position to step.
- A valve that has not reported a position yet is left alone.


## Sitemap

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