RotationAbsoluteCommand

说明

设置设备的绝对旋转。

字段

类型 说明
devices [设备]

支持旋转的设备。

必填

rotationDegrees Number

一个绝对值(以度为单位),用于指定设备的最终顺时针旋转角度。

可选

如需使用此字段,则不得使用以下所有字段:rotationPercent

部分设备可能不支持此字段。

rotationPercent Number

一个绝对值(以百分比表示),用于指定设备的最终旋转角度。

可选

如需使用此字段,则不得使用以下所有字段:rotationDegrees

部分设备可能不支持此字段。

示例

actions:
- type: device.command.RotateAbsolute
  devices: My Device - Room Name
  rotationDegrees: 90