evalinkdocs

Write an alarm expression

An alarm expression is an alarm code, optionally followed by conditions in braces. Copy the examples below and change the values.

FA
+350 { zone = 5, partition = 1 }

The alarm code

Write the code in any notation: BA or FA in SIA, 350 in CID, 61H in VdS. A code alone is a complete expression.

An expression matches when the alarm code or the event code of the alarm fits.

Alarm or restore

For CID and VdS codes, a sign in front picks alarms or restores:

Write Matches
350 Alarms and restores
+350 Alarms only
-350 Restores only

Add conditions

Put conditions in braces after the code, separated by commas. All of them must fit.

BA { zone = 5 }
+350 { zone = 5, partition = 1 }
FA { zone = 5, zoneName = Fire Zone }

Spaces don't matter: FA{zone=3} works too. For every condition you can use, see Conditions and headers.

Use wildcards

* stands for any number of characters, ? for exactly one. They work in the code and in the text values of conditions.

Expression Matches
* Any alarm
+* Any alarm, but no restores
??H VdS codes
35? 350, 351, 352 and so on
B? { zone = * } SIA codes starting with B that have a zone
* { payload = *12345* } Any alarm whose payload contains 12345

test and technical are true or false: they take no wildcards. severity is a number: a wildcard there makes the whole expression invalid.

Combine several expressions

Commas outside the braces separate whole expressions. The list matches when any one of them does.

FA, BA { zone = 5 }, +350

Commas inside the braces separate conditions; commas outside them separate expressions.

What a value can't contain

A value can't contain these characters: , = ! < > { }. There is no quoting: quotes become part of the value. Colons, slashes, semicolons and spaces are fine.

Values are case-sensitive: zoneName = entrance doesn't match Entrance.

A leading ! doesn't turn an expression around. Anywhere but a site's Ignored Alarms and Rejected Alarms fields, !400 matches nothing. In those two fields it makes an exception for the site. See Exceptions for one site.

Recipes

Any alarm from zone 5, whatever the code. This also matches zone 05 and 005:

* { zone = 5 }

Alarms only, no restores, from zone 5 in partition 1:

+350 { zone = 5, partition = 1 }

Alarms from one transmitter. Take the value from the x-receiver header of an alarm it sent:

+350 { headers.x-receiver = flexc:53343068 }

A payload that contains a text:

BA { payload = *12345* }

Zone, partition, payload and a header together:

+350 { zone = 5, partition = 1, payload = 12345, headers.armed = true }

Alarms from a position:

* { headers.latitude = 55.018803, headers.longitude = 9.533952 }

Alarms of sites with a tag. A site with several tags sends them all in one header, so put stars around the tag:

* { headers.x-tags = *CustomTag* }

Check an expression

Fields that take an expression check it when you save and show an error if it is invalid. To see what an alarm really carries, open an alarm of the site and look at its details: the codes, the zone and partition, and the headers.