This tutorial aims to guide tenant-level users on how to configure alarm rules and set up email notifications for each device without writing code or modifying the rule chain.
- 1. Import dashboard
- 2. Configure profile rules
- 3. Configure the threshold input box
- 4. Configure Notification (only required for initial use)
- Extended content:
- 5. What if I want to send an email to a specific recipient?
- 6. How to set up a separate page for each device for easier management?
1. Import dashboard
The Dashboard shown below displays all devices by default.


Each device's threshold are managed separately. Clicking on a device in the device list on the left will display the current device status and preset thresholds/email addresses on the right.

2. Configure profile rules
2.1 Create a condition to trigger an alarm when a threshold is reached.
Click the edit icon to enter edit mode and create a new alarm rule.









2.2 Set a clear condition to clear the alarm when the data returns to normal.
The steps are similar to Create alarm, only the values are set in reverse.




Save after set



3. Configure the threshold input box
3.1 Select the Realtime data key to display
Return to the dashboard and click on the device you want to edit.


Click "Edit mode" to enter edit mode.


Delete the default key and select the key you want to display.

Save after confirmation.


3.2 Create Threshold KEY
Enter edit mode and select the Threshold Setting component.


Save after add.


3.3 Example

Example of an alert email received:

4. Configure Notification (only required for initial use)
If this is the first time configuring the email sending function, you also need to configure the Notification to specify the recipient/template/sending rules.
4.1 Configure Recipients




4.2 Configuring Templates

Set Compose
Web
Subjtct:${alarmOriginatorName} ${alarmType}
Message:${alarmOriginatorName} alarmed ${alarmType}
Subjtct:${alarmOriginatorName} ${alarmType}
Message:Hi ${recipientFirstName:capitalize} ${recipientLastName:lowerCase}
The ${alarmOriginatorName} alarmed ${alarmType} ,PLZ check


4.3 Configure Notification Rules





Extended content:
5. What if I want to send an email to a specific recipient?
Currently, it supports three recipient types: Platform users, Slack, and Microsoft Teams. You can create a user using the email address you want to receive emails from, and then select the recipient in Platform users -> UserList.




6. How to set up a separate page for each device for easier management?
假设目前有一批AQI sensor和一批Tank sensor,我们如何把他们分别在两个不同的页面中显示或放入已创建好的仪表盘中?

这里将创建一个空白仪表盘以作演示,创建两个State(Page)以供区分展示两个不同Type的设备




在默认页中添加跳转到不同Stata的按钮







同样的,创建一个AQI alarm button

切换到Tank state

在新页面中打开Set Alarm仪表盘,把组件都复制过去


进入组件编辑页面,切换要显示的设备组


添加一个返回到初始页的button




这样,一个只显示Tank类设备的State页便制作完成了
