<br />

## Description

Set the open-close state of the device

## Fields

| Key | Type | Description |
|---|---|---|
| `devices` | \[[Device](https://developers.home.google.com/automations/schema/basics.md.txt#entity)\] | Devices that support opening and closing, and in some cases opening and closing partially or potentially in more than one direction. Required |
| `openPercent` | [Number](https://developers.home.google.com/automations/schema/basics.md.txt#number) | Indicates the percentage that a device is opened, where 0 is closed and 100 is fully open. Required |
| `openDirection` | [String](https://developers.home.google.com/automations/schema/basics.md.txt#string) | Direction in which to open. Only present if device supports multiple directions, as indicated by the openDirection attribute, and a direction is specified by the user. Optional The available values depends on each device. |

## Examples

```yaml
actions:
- type: device.command.OpenClose
  devices: My Device - Room Name
  openPercent: 100
```