# Alarms

:::tip
Menu → Maintenance → Alarms

:::

The **Alarms** screen shows alarms that the system raises by itself based on **rules**: for example when a machine sends no data for longer than 15 minutes, when a machine stays in a failure state longer than a set time or when the process temperature exceeds a threshold. The system checks the rules every minute. An alarm appears on the list, reaches the selected people - in the bell in the top bar, by e-mail, in a Microsoft Teams or Slack channel - and stays in the history together with who acknowledged it and with what comment. When nobody acknowledges the alarm, the system can **escalate** it to further people.

An alarm closes by itself when the condition clears: data from the machine comes back or the machine runs again.

## Access and permissions

The **Alarms** item is in the **Maintenance** group, right after [**Machine events**](https://docs.omnimes.com/doc/history-events-Pdr1EQyq23) (before version 5.0 - in the **Preview** group, after History events). Machine alarms are also shown on the **Machine events** timeline - together with failures, stops and maintenance requests, and the acknowledgement comment is a note on the alarm there. In the OmniEnergy context the same item is at the end of the **Main panel** group. After the update the screen is available to the **Admins** group; an administrator grants it to other groups on the [**Access**](https://docs.omnimes.com/doc/administration-IPR8voQzB6) screen (item **Alarms** in the **Maintenance** group - the OmniMES and OmniEnergy tabs show the same item). The move does not change permissions - groups that had Alarms keep them. The menu is stored at sign-in - the new layout appears after you sign in again.

A group with the **Alarms** screen creates and changes rules and acknowledges alarms. Every signed-in user has the bell in the top bar - it shows only the notifications sent to that user.


:::info
After the update the system has one rule: **License expiring** (active, notifications in the bell for the **Administrators** group; e-mail can be added in the rule). The system does not create other rules by itself - other alarms work only after they are configured.

:::

## Events

The **Events** tab is the list of alarms. By default it shows **open** alarms - active and acknowledged. The list refreshes itself every minute.

| Column | Description |
|--------|-------------|
| **Severity** | Information, Warning or Critical - set in the rule |
| **Alarm** | what it concerns (e.g. "No data: CNC Mill 2") and the status (e.g. "no data for 2 h 15 min") |
| **Rule** | rule name and type |
| **State** | **Active** (nobody has reacted yet), **Acknowledged** (someone is handling it, the condition still holds), **Closed** (with the reason: condition cleared, rule disabled or removed) |
| **Condition since** | since when the condition holds, e.g. since the last data from the machine |
| **Alarm since** | when the system raised the alarm |
| **Duration** | how long the condition lasts (or lasted) |
| **Acknowledged by** | who acknowledged the alarm and when, with the comment |

Filters above the list: state (open, active, acknowledged, closed, all), rule, severity, period (day the alarm was opened) and text (object, rule, comment).

### Acknowledging an alarm


1. In the row of an active alarm click the **✓** icon (**Acknowledge alarm**).
2. Enter a comment, e.g. what is happening and who is handling it (optional).
3. Click **Acknowledge alarm**.

Acknowledging stops the reminders. Acknowledging does not close the alarm - it closes by itself when the condition clears.

### Details and notification history

The eye icon opens the alarm details: rule, status, times, acknowledgement, number of reminders and the **notification history** - when, through which channel, to whom and with what result (sent, sending failed with a description, skipped - e.g. when the rule has no recipients).

## Rules

The **Rules** tab shows all rules: scope, duration, severity, channels, number of open alarms and the **Active** switch. Each rule has buttons:

* **Check now** - evaluates the rule at this moment without saving anything (see below),
* **Mute** - for 1, 4 or 24 hours, or **End mute**,
* **Edit rule** and **Remove rule**.

Disabling or removing a rule closes its open alarms (without notifications). The alarm history stays.

### Rule types

| Type | When the alarm is raised |
|------|--------------------------|
| **No data from machine** | the machine sends no data for longer than the given time. The last data is the last value change of any machine signal from the status configuration and, when the stream records node presence, also the last message and the "offline" marker of the node |
| **Machine stopped** | the machine stays in a stop state for longer than the given time. The machine state is the same as in Monitoring and OEE (status configurator). The **States counted as a stop** parameter - by default unplanned stop and failure; you can add planned stop, other states and a signal value without a status |
| **EnPI deviation from baseline** | the energy of a period (day, week, month or shift) differs from the energy expected from the baseline by more than the threshold [%] for the given number of consecutive periods (see "Energy rules" below) |
| **EnPI CUSUM (cumulative deviation)** | the cumulative sum of the differences between actual and expected energy since the start date exceeds the threshold or its trend changes |
| **License expiring** | 30, 14 and 7 days before the license expires and after expiry (grace period, block) - each stage is a separate alarm and one notification; the alarms close after a new key is entered. The update creates this rule (see below) |
| **Signal above or below a threshold** | the value of the selected signal (e.g. temperature, pressure, current) is above or below the **threshold** (>, ≥, <, ≤) for longer than the given time |
| **Signal out of range** | the signal value is below the **minimum** or above the **maximum** (e.g. process temperature outside the 180-220 °C window) |
| **Signal change over time** | the value changed by at least the given amount compared with the value N minutes ago (**Within**), up, down or either way, in signal units or in percent (e.g. a pressure drop of 2 bar in 10 minutes) |
| **Signal state** | the signal has (or does not have) one of the given values or status names, e.g. error code `2; 3`, status `Failure`, switch `false` |
| **System rules**: No data from the stream, Low disk space, Backup failed or overdue, Task queue clogged, Email sending errors, Service unavailable | the state of the OmniMES installation itself (**System** scope) - described in the [**System status**](https://docs.omnimes.com/doc/system-status-stuOhdRfmY) chapter |

### Rules on machine signals

The four signal types (threshold, range, change over time, state) work on **any signal** from the [status configurator](https://docs.omnimes.com/doc/status-configurator-4rNWOyTTbE). In the **Signal (tag)** field choose the tag - the list shows only tags of the machines in the selected scope (with description, unit and number of machines). The rule covers every machine in the scope that has this signal; it skips the others. The current value comes from the latest stream reading, and the value N minutes ago (for the change over time) - from the measurement history, so the signal must be archived.

**Value hysteresis** (threshold and range rules) prevents an alarm that "flickers" when the value hovers around the threshold: an ongoing alarm clears only after the value moves back past the threshold by the hysteresis. Example: threshold > 80 °C with hysteresis 2 - the alarm opens above 80 and clears only at 78 °C or less. **Duration** and **Clear delay** work as in the other types - the first requires the condition to hold, the second requires it to be absent for that many minutes.


:::tip
It is worth having both rules. A machine that loses connection while running does not raise a stop alarm (its last known state is running), but it does raise a no-data alarm.

:::

### Energy rules: EnPI deviation and CUSUM

Two rules watch the energy performance (ISO 50001, ISO 50006): they compare the **actual energy** of a period with the **energy expected from the baseline (EnB)** of the configurations selected from **OmniEnergy → Baseline**. Each selected configuration is a separate object of the rule (scope **System**) and the alarm carries its name, e.g. "EnPI deviation: Slaughter line".

The **expected energy** comes from the latest baseline snapshot of the configuration (the same one the EnPI snapshot automation uses):

* **regression model** - the energy that should be expected under the conditions of this period (production, degree days), with the static adjustment of the snapshot; a period shorter than the model interval (e.g. a shift with a daily model) gets the matching part of the intercept,
* **ratio** - the baseline [energy per unit of production] × production of the period; a configuration without a denominator - the energy of the base period scaled to the length of the period.

Requirements: the configuration has a **Measured** energy counter and a measured denominator, a denominator from the order module or none. The rule cannot evaluate a configuration with a manually entered denominator or without a baseline snapshot - **Check now** shows the reason and an open alarm stays unchanged.

**EnPI deviation from baseline** - parameters:

| Field | Description |
|-------|-------------|
| **EnPI indicators (baseline configurations)** | active configurations; SEU register entries linked to the configuration in brackets |
| **Comparison period** | **Day**, **Week** (from Monday), **Month** - in local time - or **Shift** (from the shift calendar of the configuration machine, line or park; without shifts in the calendar choose day) |
| **Direction** | **Above expected** (excess consumption), **Below expected** or **Both directions** |
| **Deviation threshold** | deviation = (actual - expected) / expected × 100%, e.g. 10% |
| **Consecutive periods beyond the threshold** | minimum duration: alarm when this many consecutive periods with data are beyond the threshold; periods without energy readings are skipped |
| **Evaluate after the period ends after** | a margin for data sent late, 30 min by default - the day of 20 Nov is evaluated on 21 Nov at 00:30 |
| **Alarm delay after detection** | the duration field; usually 0 - the duration comes from the consecutive periods |

**EnPI CUSUM** - the cumulative sum of the differences (actual - expected) since the **start date** (e.g. the start of the year or the day after an action; counted from the first full period). CUSUM rises when consumption is higher than expected and falls with savings. Additional fields:

| Field | Description |
|-------|-------------|
| **CUSUM start date** | YYYY-MM-DD; the first day of the previous month by default |
| **Threshold in** | **% of the expected energy total** since the start date or **the energy unit** of the configuration (e.g. kWh) |
| **CUSUM threshold** | e.g. 5 (%) or 2000 (kWh); direction **Above** - alarm when CUSUM > threshold, **Below** - when CUSUM < -threshold |
| **Also alarm on a trend change**, **Periods for the trend** | an alarm also when the CUSUM slope of the last N periods changed direction compared with the N earlier ones (e.g. savings turned into excess consumption); a change smaller than 1% of the average expected energy per period is not a trend |

The notification and the alarm description say **by how much and since when**, e.g.:

* deviation: "2026-11-19: actual 1,090 kWh, expected 1,000 kWh, deviation +9%; consecutive periods beyond the threshold: 2 (since 2026-11-18)",
* CUSUM: "CUSUM +210 kWh (+4.2% of expected energy) since 2026-11-14; change +210 kWh since 2026-11-16; threshold exceeded in the period 2026-11-18" - "change since" is the moment from which CUSUM rises (the last minimum), i.e. since when consumption is higher than expected.

The alarm details (eye icon) show a chart: for a deviation - actual and expected energy in recent periods, for CUSUM - the CUSUM curve (at most the last 120 periods) with the threshold.


:::info
Energy rules evaluate a period **once**, after it ends - between period ends the system returns the stored result and does not read telemetry every minute. Data sent later than **Evaluate after the period ends after** no longer changes the result. CUSUM is calculated incrementally; changing the start date, threshold, direction, period or configuration, or a new baseline snapshot with a different model recalculates it from the start (at most 800 periods back). **Check now** shows the result of the last completed period.

:::

### Adding a rule


1. Click **Add rule**.
2. Choose the **Rule type** - its description appears under the field and its parameters appear in the form.
3. Fill in the fields and click **Save rule**.

| Field | Description |
|-------|-------------|
| **Name** | rule name on the list and in notifications |
| **Scope** | all machines or selected machines, lines or parks; system rules - **System** |
| **Duration** (e.g. **No data for longer than**) | how long the condition must hold before the system raises an alarm; counted within shifts (when enabled) and outside mute periods |
| **Severity** | Information, Warning, Critical |
| **Notification channels** | **In the app (bell)**, **E-mail**, **Microsoft Teams** and **Slack** |
| **Teams and Slack channels** | the webhooks the message goes to (shown with the Teams or Slack channel); set them up on the **Channels** tab |
| **Recipients - users**, **Recipients - groups** | who gets the notifications; a group = all its members |
| **Extra e-mail addresses** | addresses outside the system, separated by commas (shown with the e-mail channel); selected users with an address on their account also get the e-mail |
| **Remind every** | a repeated notification every so many minutes until someone acknowledges the alarm (0 = no reminders) |
| **Escalation** | further levels of recipients when nobody acknowledges the alarm (see below) |
| **Clear delay** | the alarm closes when the condition is absent for this many minutes (0 = immediately) - prevents the alarm from opening and closing every moment |
| **Notify when ended** | an extra notification when the alarm closes |
| **Count only within shifts** | the duration counts only during the machine working time from the resource calendar (see below) |
| **Mute periods** | periods in which time is not counted and notifications wait (see below) |
| **Notification language** | Polish or English |
| **Active**, **Note** | a disabled rule is not checked |

The rule type cannot be changed after saving - create a new rule.

### Escalation

When an alarm is not acknowledged, the system can notify further people. Click **Add an escalation level** and set: after how many minutes **without acknowledgement** (counted from the first notification), through which channels and to whom (users, groups, e-mail addresses, Teams or Slack channels). You can add up to 5 levels; each next level must have a longer time than the previous one. Example: level 1 - after 15 minutes the shift supervisor (bell and Teams), level 2 - after 60 minutes the production manager (e-mail).

Each level gets one notification (in the notification history as **Escalation** with the level number; the alarm details show the last level and when it was notified). Acknowledging the alarm stops the escalation. The escalation time is counted like the condition duration - within shifts (when enabled) and outside mute periods, and a level that falls within a mute period is notified after it ends.

### Working time and mute periods

**Count only within shifts.** When the machine has shifts in the resource calendar (Production → Production configuration → Resource calendar - shifts of the machine, line, park or the whole plant), time outside shifts, holidays, maintenance and planned stops are not counted. Example: rule "no data for longer than 15 minutes", shift 6:00-14:00, data stopped at 13:50 - 10 minutes passed until the end of the shift, so the alarm appears the next day at 6:05, not during the night. A machine without its own shifts is watched around the clock (without holidays, maintenance and planned stops).

**Mute periods.** Click **Add weekly mute** (days of the week and hours, e.g. Mon-Fri 22:00-06:00; an end before the start means a period over midnight, 00:00-00:00 - the whole day) or **Add one-off mute** (start and end date and time, e.g. planned maintenance). During a mute the condition time is not counted. An alarm that opened at the start of a mute sends its notification only after the mute ends. A quick mute from the rule list (1, 4, 24 h) works the same way.

### Check now

The **Check now** button shows for every object of the rule: whether the condition is met, the state (e.g. status name or the time of the last data), since when it holds, the **counted time** (within shifts, without mute periods) and whether the alarm would open now. The check saves nothing - it helps you choose the duration and the scope before enabling the rule.

## Notifications

**Bell.** The bell icon in the top bar shows the number of unread alarm notifications. Click it to see the latest notifications: alarm, reminder or end, with the current alarm state. The **Acknowledge alarm** button under a notification acknowledges the alarm with a comment - also for a user without the **Alarms** screen, but only for alarms sent to that user. **Mark all as read** resets the counter.

**E-mail.** The message goes to the addresses of the selected users, group members and extra addresses, through the mail server from **System settings** → [**General configuration**](https://docs.omnimes.com/doc/general-configuration-1TPIxjFPPg) (E-mail tab). When one rule raises several alarms at once (e.g. a connection loss of a whole park), the system sends **one** message with a table of objects instead of a separate message for each machine. When email is not configured, the email notification gets the status **Skipped** with the reason; after a temporary mail server error the system retries on its own (after 1, 5 and 15 minutes). Alarm emails are also listed under **Recent emails** in the E-mail tab (type **Alarm**).

**Microsoft Teams and Slack.** The message to a Teams or Slack channel contains the alarm title (e.g. "Temperature > 80: Press 2"), the machine, the value, the severity, the rule and an **Open in OmniMES** link to the alarm details. Several alarms of one rule at once are one message with a list of machines. After a temporary error (no response, service overloaded) the system retries after 1 and 5 minutes; an address error (e.g. a deleted webhook) is visible at once in the notification history.

Each alarm gives one notification when it opens. Further ones come only as reminders (when enabled and nobody has acknowledged the alarm), escalation (further levels) and, with **Notify when ended**, when it closes.

## Teams and Slack channels

The **Channels** tab holds the **webhook** addresses - Microsoft Teams and Slack channels the rules send alarms to. A webhook address is confidential (whoever knows it can post to the channel), so after saving the system shows it only shortened.


1. Create a webhook in Teams or Slack:
   * **Microsoft Teams** - in the channel: **Workflows** → the **"Post to a channel when a webhook request is received"** template (or the older **Incoming Webhook**). Copy the `https://…` address.
   * **Slack** - the **Incoming Webhooks** app → **Add New Webhook to Workspace** → choose the channel and copy the `https://hooks.slack.com/services/…` address.
2. In OmniMES click **Add channel**, enter a name (e.g. "Teams - maintenance"), choose the type and paste the **Webhook address**.
3. **OmniMES address in the link** - the address at which the recipients open OmniMES (by default the address from the browser). The message contains a link to the alarm; an empty field = no link.
4. Click **Save channel**, then **Send test** (the paper plane icon) - a test message should appear in the channel. The result of the last test is shown in the **Last test** column.
5. In the rule choose the **Microsoft Teams** or **Slack** channel and select the webhooks in the **Teams and Slack channels** field.


:::info
The OmniMES server needs internet access (HTTPS to Microsoft or Slack services). The system accepts only `https://` addresses on the internet - internal network addresses are rejected.

:::

The **Rules** column shows how many rules use the channel. Removing a channel also removes it from rules and escalation levels. When editing, leave the address field empty to keep the saved address.

## Event log

Opening, acknowledging (with the comment), escalating and closing an alarm, adding, changing, muting and removing a rule, as well as adding, changing, testing and removing a Teams or Slack channel (without the webhook address) are recorded in the [**Event log**](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ) - with who did it and when, and the state before and after the change.

## Good practice

* Choose the no-data time to match the machine signals: the system sees data when a value changes, so a machine whose signals all stand still (e.g. switched off) looks like a machine without data.
* Start with a rule on a few machines and **Check now** before covering the whole plant.
* Set mute periods for planned breaks and maintenance, and keep the **Critical** severity for alarms that need an immediate reaction.
* Start an EnPI deviation rule with a threshold larger than the usual spread of the indicator (e.g. 2 × the CV(RMSE) of the baseline model from the EnB snapshot) and two consecutive periods - a single unusual day will not raise an alarm. CUSUM is better at detecting a slow deterioration.

---

**Documents**

- [OmniPlatform](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omniplatform-7z9SIECi68)
- [Omnienergy](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnienergy-56aRDgnYFZ)
- [Omnimes](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnimes-eGDa0U5cyr)
- [FAQ](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/faq-IFQjCNYt1Q)
- [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/cybersecurity-compliance-cra-pPJBcC6sBf)