ArmDisarmCommand

说明

设置设备的警报级别。

字段

密钥 类型 说明
devices [设备]

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

必需

arm Bool

true 可开启设备,false 可关闭设备。

必需

cancel Bool

true 可取消 arm 值。

可选

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

armLevel 字符串

要设定的安保等级level_name

可选

可用的值取决于具体设备。

示例

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