For all actions, you can specify a target property to specify the device to send the action or refer to.
yaml
target:
device_id: a1b2c3d4e5f6g7h8i9j0actiondiagral.arm_groupsrequired
Activate one or more groups
yaml
action: diagral.arm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "3"yaml
action: diagral.arm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "[2,3]"The data object should contain the following properties:
group_idsstringrequired
Group(s) to arm. One or many (as array)
actiondiagral.disarm_groupsrequired
Disarm one or more groups
yaml
action: diagral.disarm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "3"yaml
action: diagral.disarm_groups
target:
device_id: a1b2c3d4e5f6g7h8i9j0
data:
group_ids: "[2,3]"The data object should contain the following properties:
group_idsstringrequired
Group(s) to disarm. One or many (as array)
actiondiagral.register_webhookrequired
Register webhook in Diagral Cloud - Only one webhook can be registered for an installation
yaml
action: diagral.register_webhook
target:
device_id: a1b2c3d4e5f6g7h8i9j0actiondiagral.unregister_webhookrequired
Unregister Webhook in Diagral Cloud
yaml
action: diagral.unregister_webhook
target:
device_id: a1b2c3d4e5f6g7h8i9j0