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)

actiondiagral.arm_groupsrequired

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_idsstringrequired

Group(s) to arm. One or many (as array)

Disarm Group(s)

actiondiagral.disarm_groupsrequired

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_idsstringrequired

Group(s) to disarm. One or many (as array)

Register Webhook

actiondiagral.register_webhookrequired

Register webhook in Diagral Cloud - Only one webhook can be registered for an installation

action: diagral.register_webhook
target:
  device_id: a1b2c3d4e5f6g7h8i9j0

Unregister Webhook

actiondiagral.unregister_webhookrequired

Unregister Webhook in Diagral Cloud

action: diagral.unregister_webhook
target:
  device_id: a1b2c3d4e5f6g7h8i9j0