> For the complete documentation index, see [llms.txt](https://deviceon.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://deviceon.gitbook.io/docs/managed-devices/set-up-device-thresholds-and-enable-trigger-notifications.md).

# Set up Device Thresholds and Enable Trigger Notifications

## Define a Threshold

In the "[**Real-time monitoring**](/docs/web-user-interface/device-management/real-time-monitoring-and-rule-engine.md#real-time-monitoring)" page, you can click the icon ![](https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2FR0NQ18IkRhl0CU25CUYm%2Fimage.png?alt=media\&token=1214bac7-0896-4789-9437-54aa6922cc2a) in the upper right corner of the sensor widget of interest to configure the **Rule Engine**.

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2FRy5Wjl3cRkCA21n6xnJj%2Fimage.png?alt=media&amp;token=3fc7e334-0c35-40b3-adc6-1abbf1562770" alt=""><figcaption></figcaption></figure>

#### IF Sections

* **Range**: You have the option to define the range, specifying values more than, less than, or both.
* **Lasting Time**: Indicates that the target device enters an abnormal condition only when it reaches the set threshold and remains in that condition for the set duration.
* **Notice Interval**: Specifies the frequency at which users receive an event notification until the condition returns to normal.
* **Custom Threshold Message**: Define a customized event log message of warning.

#### THEN Sections

* **Actions & Execution**: **When the set threshold is exceeded, you can choose the actions to be taken, such as** Power On/Off or **hardware control**, like GPIO control.
* **Trigger Frequency**: Set the trigger to "**Once**", "**Back to Normal**" or "**Always**."
* **Custom Action Messag**e: Define a customized event log message of action.

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2F4YBnigxUoKG3rvW2txvE%2Fimage.png?alt=media&amp;token=6ceb12ab-7936-47e4-81c2-d0c37afd5e7a" alt=""><figcaption></figcaption></figure>

After configuring the Rule Engine, the Sensor Widget will have an additional <mark style="color:blue;">**yellow pointer**</mark>. Hovering over it will provide information about the set threshold value.

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2F5NByAli79eRZTLbhdOjk%2Fimage.png?alt=media&amp;token=5acedee3-8d1f-42ac-904a-bcf8d569a6d7" alt=""><figcaption></figcaption></figure>

Additionally, within the **System Rule's Widget**, you can also check how many rule statuses are currently available.

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2F7z5tgHPEZZ0q1B3hHtR9%2Fimage.png?alt=media&amp;token=b5985b33-05eb-44fa-af31-c6331016fc0a" alt=""><figcaption></figcaption></figure>

* Rule Item: The number of rules that were created.
* Monitoring: The number of active rules.
* Out of Range: The number of rules that are out of range.

It provides a convenient way to manage and control the rules you have set up, making it efficient to make changes or **batch apply** ![](https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2FO0ph45AWi3FDmOLEL6SA%2Fimage.png?alt=media\&token=df6d0e0c-199c-4397-8be8-5ce85d6de9c6) **the same rule to multiple devices simultaneously**.

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2F9dUKMyGH9qGi5hrtgD5d%2Fimage.png?alt=media&amp;token=c98792dd-77f0-4887-8847-c3e144fa9cdb" alt=""><figcaption></figcaption></figure>

## Enable Notification

Select a notification item for the **Threshold Category** and ensure your account's alert service is enabled

### Notification Item

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2Fz6KMPLyAx1wFqxEiwYjl%2Fimage.png?alt=media&amp;token=b61261ab-03a1-4941-a2af-8261f197f4d3" alt=""><figcaption></figcaption></figure>

### Personal Alert Services

Please go to your personal [**account settings**](/docs/web-user-interface/account-management.md#notification) to enable or disable alert notifications for email, text messages, and social media."

<figure><img src="https://2609455635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeOYEBAkqbuotygPSIr8f%2Fuploads%2F825ts7ACfjGQjFAUR2rc%2Fimage.png?alt=media&amp;token=4ea70ae9-453a-48ff-b98f-db26d7c00383" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
*<mark style="color:blue;">**These alert services are personal setting**</mark>*. Please make sure the related services “[**Setting -> Notification**](/docs/web-user-interface/system-setting.md#notification)” is configured, enabled on DeviceOn System.
{% endhint %}
