> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/english-v14/documentation/alarme-regeln-und-eskalationen/regeln/eine-regel-erstellen.md).

# Create a rule

With a rule, you define when an asset triggers an alarm. Optionally, you can store instructions and documents for processing the alarm.

## Procedure

<figure><img src="https://156899794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNyvwhz1kEMXcHf4HLuZ8%2Fuploads%2Fgit-blob-1ffb29cbbf8db6eeac0f679928cdec254abaf17d%2Fv14-regeln-navigation.png?alt=media" alt="Regelübersicht mit der Schaltfläche Regel und Regel hinzufügen am Asset"><figcaption></figcaption></figure>

1. Click on **Rules** **\[A]**.\
   ▷ The rule overview opens.
2. Click on **Rule** **\[B]**.\
   ▷ The page **Add rule** opens.\
   ◈ Via **Add rule** **\[C]** on the asset, the field **Asset** **\[D]** is already preselected.
3. Configure the rule.\
   ◈ See [↗ Details](#details) for the individual options and the optional [intervention text](#interventionstext-hinterlegen).
4. Click on **Add rule** **\[T]**.\
   ▷ The rule is saved.

## Details

<figure><img src="https://156899794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNyvwhz1kEMXcHf4HLuZ8%2Fuploads%2Fgit-blob-108d800b5f59bbac1eb7e51b2818f5a7745191ad%2Fv14-regel-konfiguration.png?alt=media" alt="Regelformular mit Asset, Bedingung, Priorität, Alarmtexten und aktiviertem Intervention Text"><figcaption></figcaption></figure>

<figure><img src="https://156899794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNyvwhz1kEMXcHf4HLuZ8%2Fuploads%2Fgit-blob-310f995eda1fbc51b0ecffc52c4b0692dfec9718%2Fv14-regel-intervention.png?alt=media" alt="Interventionstexte auf Englisch und Deutsch sowie ausgewähltes Dokument im unteren Regelformular"><figcaption></figcaption></figure>

<table data-full-width="true"><thead><tr><th width="92">Item</th><th width="323">Title</th><th>Details</th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Rules</td><td>Open the rule overview.</td></tr><tr><td><strong>[B]</strong></td><td>Rule</td><td>Create a new rule.</td></tr><tr><td><strong>[C]</strong></td><td>Add rule on asset</td><td>Create a rule for the corresponding asset. The asset is already preselected.</td></tr><tr><td><strong>[D]</strong></td><td>Asset</td><td>Select the asset for which the rule should apply.</td></tr><tr><td><strong>[E]</strong></td><td>Type</td><td><strong>Default</strong> checks a condition for an asset attribute. <strong>Asset validity</strong> monitors whether the asset has been inactive for a certain period of time. See <a href="/collection/english-v14/documentation/assets/asset-status-aktive-inaktive-nicht-uberwachte-assets.md">↗ Asset status</a>.</td></tr><tr><td><strong>[F]</strong></td><td>Attribute</td><td>Select the attribute for which the rule applies.</td></tr><tr><td><strong>[G]</strong></td><td>Aggregated value</td><td>Activate the switch if the rule should be based on aggregated values. The additional fields determine the aggregation mode and time grid, for example average values over one hour.</td></tr><tr><td><strong>[H]</strong></td><td>Condition</td><td>Together with the threshold value, define <strong>[I]</strong>, when the alarm is triggered.</td></tr><tr><td><strong>[I]</strong></td><td>Threshold value</td><td>Enter the threshold value for the condition.</td></tr><tr><td><strong>[J]</strong></td><td>Priority</td><td>Select the priority of the alarms that this rule triggers.</td></tr><tr><td><strong>[K]</strong></td><td>Acknowledgment required</td><td>Activate <a href="#quittierungspflicht">↗ acknowledgment requirement</a> for the alarms of this rule.</td></tr><tr><td><strong>[L]</strong></td><td>Tags</td><td>Assign tags to the rule.</td></tr><tr><td><strong>[M]</strong></td><td>Alarm on text</td><td>Select <strong>Default</strong> or <strong>Custom</strong>. The message appears when the alarm is triggered. For custom messages, the <a href="/collection/english-v14/academy/twig-templating-in-eliona.md">↗ template variables</a> are available. With <strong>translation</strong> you can add additional languages.</td></tr><tr><td><strong>[N]</strong></td><td>Alarm off text</td><td>Select <strong>Disabled</strong>, <strong>Default</strong> or <strong>Custom</strong>. The message refers to the end of the alarm.</td></tr><tr><td><strong>[O]</strong></td><td>Intervention text</td><td>Display the inputs for processing instructions and documents.</td></tr><tr><td><strong>[P]</strong></td><td>English</td><td>Fixed default language of the intervention text. This language line cannot be changed or removed.</td></tr><tr><td><strong>[Q]</strong></td><td>Text body</td><td>Enter and format the instructions. The illustration shows an additional German language line.</td></tr><tr><td><strong>[R]</strong></td><td>translation</td><td>Add another language line for the intervention text.</td></tr><tr><td><strong>[S]</strong></td><td>Documents</td><td>Select the documents that should be available in the instructions dialog. The list contains attachments of the selected asset.</td></tr><tr><td><strong>[T]</strong></td><td>Add rule</td><td>Save the entries and create the rule.</td></tr><tr><td><strong>[U]</strong></td><td>Cancel</td><td>Leave the form without creating the new rule.</td></tr></tbody></table>

### Store intervention text

Store specific instructions so the responsible person can process an alarm. If needed, add translations and suitable documents, for example maintenance notes.

1. Activate **Intervention text** **\[O]**.
2. Enter the English instructions under **Text body** .\
   ◈ **English** **\[P]** is the fixed default language.
3. For another language, click **translation** **\[R]**.\
   ◈ If you do not need a translation, continue with step 6.
4. In the new language line, select the desired language.
5. In the associated text field, enter **\[Q]** the translated instructions.
6. If necessary, upload a new file via **Select file or drop it here.** .\
   ◈ Existing attachments of the selected asset are already available under **Documents** for selection.
7. Select the desired documents **\[S]**.\
   ◈ An uploaded file is not automatically selected.
8. Click on **Add rule** **\[T]**.\
   ▷ The instructions and selected documents are available via [Intervention Instructions on the alarm](/collection/english-v14/documentation/alarme-regeln-und-eskalationen/alarme.md#interventionsanweisungen-lesen) available.

The text editor supports bold, italic, underline, numbered lists, bullet lists, and links. With **Ctrl+K** or **Cmd+K** you insert a link. Supported are `http`, `https` and `mailto`. In the editor, open a link with **Ctrl+click** or **Cmd+click**.

You manage files in the [Asset Details](/collection/english-v14/documentation/assets/asset-details.md) under **Attachments**. If you change the asset or **Intervention text** deactivate it, the document selection is reset.

{% hint style="info" %}
The instructions displayed always come from the current rule. Changes also affect the instructions dialog of already historical alarms.
{% endhint %}

## Acknowledgment requirement

You can enable the option "Acknowledgment required" for rules. The acknowledgment requirement has the following effects:

As in the [↗ ](/collection/english-v14/documentation/alarme-regeln-und-eskalationen.md)[Introduction](/collection/english-v14/documentation/alarme-regeln-und-eskalationen.md) explained, an alarm is triggered when the conditions of a rule are met. The acknowledgment requirement regulates what happens when the conditions of a rule are NO longer met.

{% hint style="info" %}
**Example**

A rule is created that triggers an alarm as soon as the temperature rises above 25 °C. The acknowledgment requirement regulates what happens when the temperature falls below 25 °C again.
{% endhint %}

### Behavior of alarms *Without* Acknowledgment requirement

When the conditions for the alarm are no longer met, the alarm automatically disappears from the [↗ alarm overview](/collection/english-v14/documentation/alarme-regeln-und-eskalationen/alarme.md#die-alarm-uebersicht).

The disappeared alarm is shown in the[ ↗ alarm history ](/collection/english-v14/documentation/alarme-regeln-und-eskalationen/alarme.md#alarm-historie).

### Behavior of alarms *With* Acknowledgment requirement

Even if the conditions for the alarm are no longer met, the alarm remains in the [↗ alarm overview](/collection/english-v14/documentation/alarme-regeln-und-eskalationen/alarme.md#die-alarm-uebersicht).

For an alarm with acknowledgment requirement to be removed from the alarm overview, the alarm must be acknowledged.

{% hint style="info" %}
See also: [↗ Acknowledgment-required and leaving alarms](/collection/english-v14/documentation/alarme-regeln-und-eskalationen/alarme/quittierpflichtige-und-gehende-alarme.md).

There it is explained how alarms can be acknowledged.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.buildings.ability.abb/collection/english-v14/documentation/alarme-regeln-und-eskalationen/regeln/eine-regel-erstellen.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
