<br />

## Description

Set the alarm level of the device.

## Fields

| Key | Type | Description |
|---|---|---|
| `devices` | \[[Device](https://developers.home.google.com/automations/schema/basics.md.txt#entity)\] | Devices that can be armed or disarmed such as security systems. Required |
| `arm` | [Bool](https://developers.home.google.com/automations/schema/basics.md.txt#bool) | `true` to arm the device, `false` to disarm. Required |
| `cancel` | [Bool](https://developers.home.google.com/automations/schema/basics.md.txt#bool) | `true` to cancel the **arm** value. Optional <br /> To use this field, all the following fields CANNOT be used: *armLevel* <br /> |
| `armLevel` | [String](https://developers.home.google.com/automations/schema/basics.md.txt#string) | The **level_name** to arm to. Optional The available values depends on each device. |

## Examples

```yaml
actions:
- type: device.command.ArmDisarm
  devices: My Device - Room Name
  arm: true
```