ArmDisarmCommand

說明

設定裝置的警報等級。

欄位

鍵 類型 說明
devices [裝置]

可啟動或解除的裝置,例如保全系統。

必填

arm Bool

true 啟動裝置,false 關閉。

必填

cancel Bool

true:取消 arm 值。

選用

如要使用這個欄位,則「不得」使用下列所有欄位:armLevel

armLevel String

要啟動的 level_name。

選用

可用值取決於各裝置。

範例

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