Actions
For all actions, you can specify a target
property to specify the device to send the action or refer to.
target:
device_id: a1b2c3d4e5f6g7h8i9j0
Arm Group(s)
action
diagral.arm_groups
required
Activate one or more groups
action: diagral.arm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "3"
action: diagral.arm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "[2,3]"
The data
object should contain the following properties:
group_ids
string
required
Group(s) to arm. One or many (as array)
Disarm Group(s)
action
diagral.disarm_groups
required
Disarm one or more groups
action: diagral.disarm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "3"
action: diagral.disarm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "[2,3]"
The data
object should contain the following properties:
group_ids
string
required
Group(s) to disarm. One or many (as array)