Conditions and headers
The conditions you can put in the braces of an alarm expression, and the headers alarms carry that you can match.
Conditions
| Condition | Value | Matches when |
|---|---|---|
zone, partition |
Text | The zone or partition fits. Leading zeros don't matter. |
zoneName, partitionName |
Text | The name fits exactly, including upper and lower case. |
payload |
Text | The whole payload fits. For "contains", use *text*. |
message |
Text | The alarm message fits. |
outcome |
Text | The alarm's outcome fits. |
source |
Text | The alarm's source fits. |
type |
Text | The alarm type fits, for example BURGLARY. |
severity |
Number | The severity is exactly this number, 0 to 7. |
technical, test |
true or false |
The alarm is, or is not, technical or a test alarm. |
headers.<name> |
Text | The header with this name fits. |
Examples:
BA { zone = 5 }
BA { zoneName = Entrance hall }
BA { payload = *12345* }
BA { type = BURGLARY }
BA { severity = 7 }
BA { technical = true }
BA { headers.message = 12345 }
Text values take the wildcards * and ?. Where both sides are numbers, they are compared as numbers, and leading zeros don't matter: zone = 5 matches 05 and 005. This doesn't depend on the company's Remove leading zeros from zones and partitions setting.
Alarm types
GENERAL, CALL, MOTION, BURGLARY, ARM_DISARM, ACCESS_CONTROL, FIRE, GAS, HOLD_UP, HEAT, MEDICAL, CONNECTION, TECHNICAL, PANIC, EMERGENCY, POLLING, REMOTE_ACCESS, WATER, TAMPER, FREEZE. The type comes from the alarm definition of the code; see Alarm definitions.
Conditions when an expression creates an alarm
In the fields that create an alarm, such as the Trigger Alarm step, the expression describes the new alarm. These conditions are set on it: zone, partition, zoneName, partitionName, payload, message, outcome, technical, test and every headers.<name>.
type, severity and source are not taken from the expression.
+BA { zone = 3, partition = 1, message = Door forced, headers.location = BackDoor }
Headers
Alarms carry headers: values that the receiver, an integration or evalink talos adds. You see them in the alarm's details. Any header that arrives can be matched with headers.<name>, also your own.
| Header | Holds |
|---|---|
x-receiver |
The transmitter, as receiver_type:unique_property. Take the value from an alarm the transmitter sent. |
x-tags |
The site's tags, sorted and separated by ; |
x-source |
Where the alarm comes from, for example schedule for schedule alarms |
x-channel |
The path of an IP alarm: ethernet or mobile |
latitude, longitude |
The position where the alarm was raised |
location, room |
The place where the alarm was raised |
message |
A text message that came with the alarm |
Examples:
+350 { headers.x-receiver = flexc:53343068 }
* { headers.x-tags = *CustomTag* }
* { headers.x-channel = mobile }
* { headers.latitude = 55.018803, headers.longitude = 9.533952 }
* { headers.DC09EventId = 123456789 }
x-tags holds all tags of the site in one value. To match one tag of several, put stars around it, as above.
Attachments
An alarm shows headers that start with attachment. on its Attachments tab. A Trigger Alarm step can add a link or an external image this way:
+BA { headers.attachment.url = https://example.com/camera-1 }
+BA { headers.attachment.image = https://example.com/snapshot.jpg }
An address with = in it, as in a query string, breaks the expression. An embedded widget needs a value with =, so it can't be set in an expression; add it through the API. See Alarms.