ArmDisarmCommand

说明

设置设备的警报级别。

字段

键 类型 说明
devices [设备]

可以开启或关闭的设备,例如安防系统。

必填

arm 布尔值

true:开启设备;false:关闭设备。

必填

cancel 布尔值

true,以取消 arm 值。

可选

如需使用此字段,则不能使用以下所有字段:armLevel

armLevel 字符串

要设定的 level_name。

可选

可用值取决于每个设备。

示例

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