<br />

## Description

Turn the device on or off.

## Fields

| Key | Type | Description |
|---|---|---|
| `devices` | \[[Device](https://developers.home.google.com/automations/schema/basics.md.txt#entity)\] | Device can be turned on/off such as light, coffee maker etc. Required |
| `on` | [Bool](https://developers.home.google.com/automations/schema/basics.md.txt#bool) | Whether to turn the device on or off. Required |

## Examples

```yaml
actions:
- type: device.command.OnOff
  devices: My Device - Room Name
  on: true
```