<br />

## Description

Lock or unlock the device.

## Fields

| Key | Type | Description |
|---|---|---|
| `devices` | \[[Device](https://developers.home.google.com/automations/schema/basics.md.txt#entity)\] | Device can be locked/unlocked such as door, garage, window etc. Required |
| `lock` | [Bool](https://developers.home.google.com/automations/schema/basics.md.txt#bool) | `true` to lock the device, `false` to unlock. Required |

## Examples

```yaml
actions:
- type: device.command.LockUnlock
  devices: My Device - Room Name
  lock: true
```