OpenCloseCommand

Description

Set the open-close state of the device

Fields

Key Type Description
devices [Device]

Devices that support opening and closing, and in some cases opening and closing partially or potentially in more than one direction.

Required

Variable is allowed.

openPercent Number

Indicates the percentage that a device is opened, where 0 is closed and 100 is fully open.

Required

Variable is allowed.

openDirection 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

Variable is allowed.

The available values depends on each device.

Examples

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