New: the AI firewall watches every module and explains each incident in plain words. See how it works

Rules and alarms

Detect problems with alarm rules, react with the Rules card or flows, and tell the right people. Which tool to use, and how data reaches them.

Hermetry has three tools that act on device data: alarm rules on device profiles, the Rules card on dashboards, and flows. They share the same alarms, the same commands and the same notifications. Pick the simplest one that does the job.

Which tool to use

You want toUseWhere you set it
Open an alarm when a value crosses a limit, and close it when it is backAn alarm ruleThe device profile’s Alarm rules tab. One rule covers every device of the profile.
Open an alarm when a device goes offlineA Device offline ruleThe same tab.
Do something when something happens: switch a fan, change a setting, tell people, wait, branchA rule in the Rules cardA Rules card on a dashboard, for one site, building, room or device.
Work by the clock or the calendar: at 07:00 on weekdays, at sunset, on public holidaysA rule in the Rules cardThe same card.
Transform, enrich or route messages, compute derived values, call outside systemsA flowAutomation. See Flows.

Rules of thumb:

  • If the answer is “an alarm”, start with an alarm rule. Debounce, hysteresis, dampening, reminders and the storm guard are built in.
  • If the answer is “do something”, use the Rules card. Every rule is a flow behind the scenes, but you never draw it.
  • If neither fits, use a flow. A Rules-card rule can be detached into an ordinary flow when it outgrows the card.
Alarm ruleRules cardFlow
Set perDevice profilePlace (asset or device)Organisation
Compares withFixed values or a device attributeFixed values, or a formula over stored valuesAnything a block can compute
ActsOpens, escalates and clears one alarmCommands, settings, notifications, alarms, waits, other rulesEvery block
Who may change itAdminAdminAdmin
Stopped by Manual modeNoYesNo

How device data reaches them

  1. A device sends a message.
  2. The organisation’s root flow runs for it (or the root flow of the device’s profile, if it has one). By default it saves telemetry, saves client attributes and evaluates the alarm rules of the device’s profile.
  3. After a value is stored, the Rules-card rules that watch it receive it.
  4. Alarm changes go to the bell, notifications, webhooks, dashboards, Rules-card rules and flows.

Note

Only flows store data. A message that no flow saves is not stored, and alarm rules see only what the root flow passes to them. Do not remove the save and alarm steps from a root flow unless you mean it. See Hosts, the root flow and profile root flows.

In this section

Alarms

The Rules card

Related