OpenCloseCommand

Description

Set the open-close state of the device

Fields

Key Type Description
devices [Device]

Device can be opened/closed such as curtain, blinds etc.

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