Skip to content

alarmgroup:armed

The alarmgroup:armed event is emitted when an alarm group is set to armed, overriding its schedule.

This operation is performed by a user, via either web- or mobile applications, or via a peripheral state source.

Read more about alarm groups.

Resets the alarmgroup:disarmed and alarmgroup:schedule events.

Event specific attributes

  • Origin code (name: originCode, type: string:enum, values: user|peripheral)
  • Origin data (name: originData, type: object)

For now, origin code will only be user or peripheral, but that may change in the future when other origins, such as centralstation may exist.

The schema of origin data depends on the origin code.

User origin

When the origin code is user, the origin data object will have the following attributes:

  • User ID (name: userId, type: string)
  • User name (name: userName, type: string)
  • User email (name: userEmail, type: string)

Peripheral origin

When the origin code is peripheral, the origin data object will have the following attributes:

  • Peripheral ID (name: peripheralId, type: string)
  • Peripheral name (name: peripheralName, type: string)

Payload example for user origin

json
{
    "eventTopic": "alarmgroup",
    "eventCode": "armed",
    "eventDescription": "Alarm group armed",
    "eventOccurred": "2023-09-07T10:18:41+02:00",
    "eventId": "1ee4d572-7b62-6136-86c8-35b55032bfe2",
    "eventData": {
        "groupId": "cf84e116-ee61-4bd8-b078-3d2fadfcc9ac",
        "groupName": "F1",
        "groupDescription": "Floor 1",
        "siteId": "182140d9-d99c-4dc8-ae14-0071a01d7e98",
        "siteName": "HQ",
        "siteDescription": "Company headquarters in NYC",
    },
    "originCode": "user",
    "originData": {
        "userId": "1ed40bf2-f3ac-6e95-bd58-513ccd4eb85b",
        "userName": "Name of the user that clicked",
        "userEmail": "john.doe@acme.org"
    }
}

Payload example for peripheral origin

json
{
    "eventTopic": "alarmgroup",
    "eventCode": "armed",
    "eventDescription": "Alarm group armed",
    "eventOccurred": "2023-09-07T10:18:41+02:00",
    "eventId": "1ee4d572-7b62-6136-86c8-35b55032bfe2",
    "eventData": {
        "groupId": "cf84e116-ee61-4bd8-b078-3d2fadfcc9ac",
        "groupName": "F1",
        "groupDescription": "Floor 1",
        "siteId": "182140d9-d99c-4dc8-ae14-0071a01d7e98",
        "siteName": "HQ",
        "siteDescription": "Company headquarters in NYC",
    },
    "originCode": "peripheral",
    "originData": {
        "peripheralId": "cbd9e89a-b97b-11f0-a01a-e337b5563b4d",
        "peripheralName": "ALARM-PANEL"
    }
}

This site is under active development. Links may break.