Arm and disarm an Ajax hub from a workflow
Arm or disarm an Ajax hub automatically from a workflow, the same way the ARM and DISARM buttons on the receiver card do it. You need no API for this: the workflow step Send Virtual Device Control Request sends the command.
Before you start
You need:
- the hub connected to evalink talos, with the Ajax account and the Ajax Hub ID on its receiver. Check it: on the receiver card, Remote Control shows the Arm Status. See Connect an Ajax hub directly;
- to arm or disarm single groups: groups switched on in the hub;
- in evalink talos, the right to edit workflows.
1. Add the step to the workflow
Open the workflow in the editor and add the step Send Virtual Device Control Request where the hub should be armed or disarmed.
2. Choose the command
In Control Type, select what the step does:
| Control Type | Does | Address |
|---|---|---|
| Arm All | Arms the whole hub | Not needed |
| Disarm All | Disarms the whole hub | Not needed |
| Arm Partition | Arms the groups you list | The group IDs, comma-separated |
| Disarm Partition | Disarms the groups you list | The group IDs, comma-separated |
| Panic | Raises a panic alarm on the whole hub | Not needed |
| Read Status | Reads the state without changing it | Not needed |
The group IDs are the IDs of the hub's groups. Sync Partitions & Zones on the receiver card copies the groups into the site's partitions with the same IDs, so you find them there. See Copy the hub's partitions and zones to the site.
For example, to disarm groups 1 and 2:
Control Type: Disarm Partition
Address: 1,2
Night mode can't be commanded.
3. Pick the receiver
Leave Virtual Device Selection empty if the site has only one receiver: the step then uses it. If the site has several receivers, enter the hub's receiver as dc09: followed by its DC-09 ID:
dc09:<DC-09 ID>
4. Handle the result
The step has a success and a failure branch. It takes the success branch when the hub has confirmed the command. Use the failure branch to tell an operator, for example with a manual step.
5. Test it
Try the workflow on a test site or with the site in test mode before you use it on a real site. The command changes the real hub on site.
To send the same commands from your own system, see Virtual devices in the API reference.
See also Virtual Device Control and Arm or disarm the hub.