# Rules

## How rules work

*Rules* are the conditions that must be met for an alarm to be triggered.&#x20;

Using *Rules* you can configure in detail when an alarm should be triggered.

Rules are created for individual assets. One individual attribute can be monitored per asset. With a rule, you define a threshold for this attribute. If the value of the monitored attribute rises above or falls below this threshold, an alarm is created.

## Overview

<div data-full-width="true"><figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/eQEjXkh27GPp2nsuH0yj/Bulk%20pausing%20rules%20(1).png" alt=""><figcaption><p>Fig. 1 – The "Rules" menu with the rule overvie</p></figcaption></figure></div>

<table data-full-width="true"><thead><tr><th width="84.33333333333331"></th><th width="229"></th><th></th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Menu item "Rules"</td><td>Click to open the alarm overview.</td></tr><tr><td><strong>[B]</strong></td><td>Column "Status"</td><td>Indicates whether the corresponding rule is currently paused or not.</td></tr><tr><td><strong>[C]</strong></td><td>Column "Priority"</td><td>Shows the priority of an alarm. <br>This value is configured when a rule is created.</td></tr><tr><td><strong>[D]</strong></td><td>Column "Attribute"</td><td>Indicates which attribute the rule applies to. <br>This value is configured when a rule is created.</td></tr><tr><td><strong>[E]</strong></td><td>Column "Condition"</td><td>Shows which value must be reached for an alarm to be created. <br>This value is configured when a rule is created.</td></tr><tr><td><strong>[F]</strong></td><td>Column "Type"</td><td>Indicates where the rule was created, or where it comes from.</td></tr><tr><td><strong>[G]</strong></td><td>Column "Tags"</td><td>Shows the selected tags for the rule.</td></tr><tr><td><strong>[H]</strong></td><td>Column "Alarm Text"</td><td>Indicates which message is displayed when an alarm is created. <br>Configured when a rule is created.</td></tr><tr><td><strong>[I]</strong></td><td>Switch "Active Rules"</td><td><ul><li>If this switch <strong>ON</strong> is: Active rules are displayed</li><li>If this switch <strong>OFF</strong> is: Active rules are not displayed</li></ul></td></tr><tr><td><strong>[I1]</strong></td><td>Number of "Active Rules"</td><td>Indicates how many active rules exist</td></tr><tr><td><strong>[J]</strong></td><td>Switch "Paused Rules"</td><td><ul><li>If this switch <strong>ON</strong> is: Paused rules are displayed</li><li>If this switch <strong>OFF</strong> is: Paused rules are not displayed</li></ul></td></tr><tr><td><strong>[J1]</strong></td><td>Number of "Paused Rules"</td><td>Indicates how many paused rules exist</td></tr><tr><td><strong>[K]</strong></td><td>Sort selection</td><td>Selects whether rules are sorted functionally or geographically</td></tr><tr><td><strong>[L]</strong></td><td>rule chains</td><td>Opens the rule chains page <a href="rule-chains">→ Rule chains</a></td></tr><tr><td><strong>[M]</strong></td><td>Bulk pause/start</td><td>Opens the window to start or pause multiple rules at once <a href="#mehrere-regeln-auf-einmal-pausieren-starten">↗ Pause/start multiple rules at once</a></td></tr><tr><td><strong>[N]</strong></td><td>Search</td><td>Click to open the search menu</td></tr><tr><td><strong>[O]</strong></td><td>Create new rule</td><td>Opens the panel to create a new rule</td></tr><tr><td><strong>[P]</strong></td><td>Create new rule in asset</td><td>Opens the panel to create a new rule directly for the corresponding asset</td></tr><tr><td><strong>[Q]</strong></td><td>Pause/activate all rules of an asset</td><td>Indicates whether all rules of the asset are currently paused or activated. Click to toggle between the two states.</td></tr><tr><td><strong>[R]</strong></td><td>Pause/activate rule</td><td>Indicates whether a rule is currently paused or activated. Click to toggle between the two states.</td></tr><tr><td><strong>[S]</strong></td><td>More options</td><td>Show more options.</td></tr><tr><td><strong>[T]</strong></td><td>Edit rule</td><td>Edit the respective rule. For available options <a href="create-a-rule#details">-> see here</a></td></tr><tr><td><strong>[U]</strong></td><td>Go to</td><td>Opens the window to go to the associated elements</td></tr><tr><td><strong>[V]</strong></td><td>Duplicate</td><td>Creates a copy of the rule.</td></tr><tr><td><strong>[W]</strong></td><td>Add to bookmarks</td><td>Adds the rule to bookmarks.</td></tr><tr><td><strong>[X]</strong></td><td>Delete rule</td><td>Delete the respective rule.<br><strong>⚠ Warning</strong>: If a rule is deleted, all associated <a href="alarms">↗ alarms</a> and entries in the <a href="alarms/alarm-statistics">↗ alarm history</a>are also deleted.</td></tr></tbody></table>

## Create a rule

See chapter [-> Create a rule](https://docs.buildings.ability.abb/collection/english-v14/documentation/alarms-rules-and-escalations/rules/create-a-rule).

## Edit a rule

Click on **\[O]**, to edit a rule. The available options are the same as when a [-> rule is created](https://docs.buildings.ability.abb/collection/english-v14/documentation/alarms-rules-and-escalations/rules/create-a-rule) .

## Pause a rule

Click on **\[N]**, to pause a rule. While a rule is paused, no alarm is created when the conditions of this rule are met.

Click again on **\[N],** to reactivate the rule.

## Pause or start multiple rules at once

<div align="center"><figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/HQAyT2iuNCJ3SERueang/Bulk%20pausing%20rules%20(3).png" alt="" width="375"><figcaption></figcaption></figure></div>

1. **Navigate to rule management:**\
   Go to *rule chains* and click on **\[M]** **Bulk pause/start**.
2. **Select action type:**
   * Select **\[M1]** **Pause rule**, to pause rules.
   * Select **\[M2]** **Start rule**, to activate rules.
3. **Use the "Pause all" option (optional):**\
   If all existing rules should be paused, enable the **\[M3]** **Pause all**.
4. **Select assets:**\
   In the field **\[M4]** *Search asset* enter the desired asset for which the rules should be paused or started.
5. **Confirm action:**\
   Click on **\[M5]** **Apply**, to pause or start the selected rules.\
   \&#xNAN;*If you want to cancel the action, click **Cancel**.*

   ▷ The selected rules will be paused or started depending on the selection.

## External rules

Rules can also be created via external integrations. These rules are marked in *Eliona* with **"External"** and can only be edited to a limited extent and cannot be deleted.

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/RR1ARPggOaZN6bUyS06I/Frame%201863.png" alt=""><figcaption></figcaption></figure>

Another type of rules are those created by the rule engine. These rules are marked accordingly and can neither be edited nor deleted.\
▷ *When attempting to edit such a rule, you are directly redirected to the corresponding rule in the rule engine.*

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/L2fbXFNOCAiJM49CKH06/image.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildings.ability.abb/collection/english-v14/documentation/alarms-rules-and-escalations/rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
