Last modified by Alec Chen on 2026/01/26 13:43

Hide last authors
Alec Chen 62.1 1 = This tutorial aims to guide **ONLY 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. =
Alec Chen 1.2 2
Alec Chen 62.1 3
4
Alec Chen 3.1 5 {{toc/}}
Alec Chen 1.2 6
Alec Chen 45.1 7 = 1. Import dashboard =
Alec Chen 1.2 8
Alec Chen 65.1 9 Import this dashboard:[[attach:set_alarm_dashboard.json||target="_blank"]]
Alec Chen 1.2 10
Alec Chen 63.1 11 The Dashboard shown below displays all devices by default.
12
Alec Chen 34.3 13 [[image:https://wiki.thingseye.io/xwiki/bin/download/Downlink%20Command%20Guide/WebHome/1762933458042-294.png?width=645&height=565&rev=1.1||alt="1762933458042-294.png" height="898" width="1025"]]
Alec Chen 1.2 14
Alec Chen 8.1 15 [[image:1763627459220-746.png]]
Alec Chen 5.1 16
Alec Chen 35.2 17
Alec Chen 34.2 18 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.
Alec Chen 5.1 19
Alec Chen 44.1 20 [[image:1763713260857-974.png||height="792" width="1029"]]
Alec Chen 34.2 21
22
Alec Chen 9.1 23 ----
24
Alec Chen 45.1 25 = (% id="cke_bm_9685S" style="display:none" %) (%%)2. Configure profile rules =
Alec Chen 1.2 26
Alec Chen 45.1 27 == 2.1 Create a condition to trigger an alarm when a threshold is reached. ==
Alec Chen 1.2 28
Alec Chen 34.3 29 (% class="wikigeneratedid" id="H70B951FB7F168F9156FE68078FDB51657F168F916A215F0F5E7665B05EFA62A58B6689C45219" %)
Alec Chen 45.1 30 Click the edit icon to enter edit mode and create a new alarm rule.
Alec Chen 1.2 31
Alec Chen 34.3 32 (% class="wikigeneratedid" id="H-1" %)
33 [[image:1763630110726-980.png||height="720" width="1014"]]
Alec Chen 12.1 34
Alec Chen 34.3 35 [[image:1763630224004-924.png||height="720" width="1014"]]
Alec Chen 1.2 36
Alec Chen 34.3 37 [[image:1763630671736-678.png||height="721" width="1015"]]
Alec Chen 11.1 38
Alec Chen 34.3 39 [[image:1763630710302-584.png||height="721" width="1015"]]
Alec Chen 12.1 40
Alec Chen 34.3 41 [[image:1763630805148-569.png||height="721" width="1015"]]
Alec Chen 11.1 42
Alec Chen 34.3 43 [[image:1763630987781-241.png||height="721" width="1015"]]
Alec Chen 11.1 44
Alec Chen 37.1 45 [[image:1763714060349-779.png||height="782" width="1016"]]
Alec Chen 11.1 46
Alec Chen 12.1 47
Alec Chen 34.3 48 [[image:1763631366289-693.png||height="720" width="1014"]]
Alec Chen 12.1 49
Alec Chen 34.3 50 [[image:1763709709956-185.png||height="722" width="1015"]]
Alec Chen 12.1 51
Alec Chen 34.3 52
53
Alec Chen 12.1 54 ----
55
Alec Chen 45.1 56 == 2.2 Set a clear condition to clear the alarm when the data returns to normal. ==
Alec Chen 12.1 57
Alec Chen 45.1 58 The steps are similar to Create alarm, only the values ​​are set in reverse.
Alec Chen 12.1 59
Alec Chen 34.3 60 [[image:1763632387865-386.png||height="720" width="1014"]]
Alec Chen 12.1 61
Alec Chen 34.3 62 [[image:1763693498016-737.png||height="720" width="1014"]]
Alec Chen 12.1 63
Alec Chen 34.3 64 [[image:1763693573052-369.png||height="723" width="1018"]]
Alec Chen 12.1 65
Alec Chen 34.3 66 [[image:1763708672557-593.png||height="723" width="1017"]]
Alec Chen 13.1 67
Alec Chen 14.1 68
Alec Chen 45.1 69 **Save after set**
70
Alec Chen 34.3 71 [[image:1763708628399-171.png||height="723" width="1017"]]
Alec Chen 29.1 72
Alec Chen 34.3 73 [[image:1763694048124-392.png||height="722" width="1017"]]
Alec Chen 14.1 74
Alec Chen 34.3 75 [[image:1763694065009-504.png||height="722" width="1017"]]
Alec Chen 1.2 76
77
Alec Chen 34.3 78 ----
Alec Chen 17.1 79
Alec Chen 45.1 80 = 3. Configure the threshold input box =
Alec Chen 1.2 81
Alec Chen 45.1 82 == 3.1 Select the Realtime data key to display ==
Alec Chen 14.1 83
Alec Chen 45.1 84 Return to the dashboard and click on the device you want to edit.
Alec Chen 36.1 85
86 [[image:1763714842488-945.png||height="784" width="1018"]]
87
88 [[image:1763715443568-173.png||height="784" width="1019"]]
89
Alec Chen 15.2 90
Alec Chen 45.1 91 **Click "Edit mode" to enter edit mode.**
92
Alec Chen 36.1 93 [[image:1763715522992-941.png||height="785" width="1020"]]
Alec Chen 15.2 94
Alec Chen 36.1 95 [[image:1763715545212-375.png||height="786" width="1021"]]
Alec Chen 15.2 96
97
Alec Chen 45.1 98 **Delete the default key and select the key you want to display.**
Alec Chen 17.4 99
Alec Chen 42.2 100 [[image:1763717628344-632.png||height="789" width="1024"]]
Alec Chen 15.2 101
Alec Chen 36.1 102
Alec Chen 45.1 103 **Save after confirmation.**
104
Alec Chen 42.2 105 [[image:1763717656075-762.png||height="790" width="1026"]]
Alec Chen 36.1 106
Alec Chen 42.2 107 [[image:1763717678221-857.png||height="792" width="1029"]]
Alec Chen 19.1 108
Alec Chen 31.1 109
Alec Chen 17.3 110 ----
111
Alec Chen 45.1 112 == 3.2 Create Threshold KEY ==
Alec Chen 15.2 113
Alec Chen 45.1 114 Enter edit mode and select the Threshold Setting component.
Alec Chen 15.2 115
Alec Chen 42.2 116 [[image:1763717776928-677.png||height="794" width="1031"]]
Alec Chen 15.2 117
Alec Chen 42.2 118 [[image:1763717871745-156.png||height="794" width="1031"]]
Alec Chen 15.2 119
120
Alec Chen 45.1 121 **Save after add.**
122
Alec Chen 42.2 123 [[image:1763718016288-797.png||height="795" width="1033"]]
Alec Chen 17.1 124
Alec Chen 42.2 125 [[image:1763718040563-785.png||height="797" width="1035"]]
Alec Chen 40.1 126
Alec Chen 34.3 127 ----
Alec Chen 1.2 128
Alec Chen 45.1 129 == **3.3 Example** ==
Alec Chen 18.2 130
Alec Chen 42.2 131 [[image:1763718234145-302.png||height="799" width="1037"]]
Alec Chen 18.2 132
Alec Chen 34.3 133
Alec Chen 45.1 134 (% id="cke_bm_30710S" style="display:none" %) (%%)**Example of an alert email received:**
135
Alec Chen 34.3 136 [[image:1763707708365-348.png]]
137
138
139
Alec Chen 17.3 140 ----
141
Alec Chen 45.1 142 = 4. Configure Notification (only required for initial use) =
Alec Chen 1.2 143
Alec Chen 45.1 144 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.
Alec Chen 34.1 145
Alec Chen 45.1 146 == 4.1 Configure Recipients ==
Alec Chen 2.1 147
Alec Chen 21.1 148 (% class="wikigeneratedid" id="H" %)
Alec Chen 22.1 149 [[image:1763695480359-924.png||height="721" width="1015"]]
Alec Chen 2.1 150
Alec Chen 21.1 151 (% class="wikigeneratedid" id="H-1" %)
Alec Chen 22.1 152 [[image:1763696273020-168.png||height="721" width="1015"]]
Alec Chen 2.1 153
Alec Chen 21.1 154 (% class="wikigeneratedid" id="H-2" %)
Alec Chen 22.1 155 [[image:1763696322001-489.png||height="721" width="1015"]]
Alec Chen 2.1 156
Alec Chen 21.1 157 (% class="wikigeneratedid" %)
Alec Chen 22.1 158 [[image:1763696373932-724.png||height="722" width="1015"]]
Alec Chen 2.1 159
160
Alec Chen 22.1 161 ----
Alec Chen 21.1 162
Alec Chen 45.1 163 == 4.2 Configuring Templates ==
Alec Chen 2.1 164
Alec Chen 24.1 165 [[image:1763704822528-793.png||height="721" width="1014"]]
Alec Chen 2.1 166
Alec Chen 45.1 167 **Set Compose**
Alec Chen 2.1 168
Alec Chen 24.1 169 (% class="box" %)
170 (((
Alec Chen 25.1 171 **Web**
172
173 **Subjtct:**${alarmOriginatorName} ${alarmType}
174
175 **Message:**${alarmOriginatorName} alarmed ${alarmType}
176
177 **Email**
178
179 **Subjtct:**${alarmOriginatorName} ${alarmType}
180
181
182 **Message:**Hi ${recipientFirstName:capitalize} ${recipientLastName:lowerCase}
183
184 The ${alarmOriginatorName} alarmed ${alarmType} ,PLZ check
Alec Chen 24.1 185 )))
Alec Chen 2.1 186
Alec Chen 25.1 187 [[image:1763705354353-222.png||height="719" width="1012"]]
Alec Chen 21.1 188
Alec Chen 25.1 189 [[image:1763705373057-540.png||height="719" width="1012"]]
Alec Chen 21.1 190
191
Alec Chen 25.1 192 ----
Alec Chen 21.1 193
Alec Chen 45.1 194 == 4.3 Configure Notification Rules ==
Alec Chen 3.1 195
Alec Chen 25.2 196 [[image:1763705587312-647.png||height="719" width="1012"]]
Alec Chen 3.1 197
Alec Chen 25.2 198 [[image:1763706113413-196.png||height="721" width="1015"]]
Alec Chen 3.1 199
Alec Chen 25.2 200 [[image:1763706072650-624.png||height="722" width="1016"]]
Alec Chen 3.1 201
Alec Chen 25.2 202 [[image:1763706241273-512.png||height="722" width="1016"]]
Alec Chen 3.1 203
Alec Chen 27.1 204 [[image:1763707736962-945.png||height="723" width="1017"]]
Alec Chen 3.1 205
206
Alec Chen 51.1 207 ----
Alec Chen 3.1 208
Alec Chen 51.1 209 = Extended content: =
Alec Chen 27.1 210
Alec Chen 45.1 211 = 5. What if I want to send an email to a specific recipient? =
Alec Chen 4.1 212
Alec Chen 49.2 213 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.
Alec Chen 4.1 214
Alec Chen 49.1 215 [[image:1763970065522-362.png||height="550" width="1017"]]
Alec Chen 4.1 216
Alec Chen 49.1 217 [[image:1763970125819-288.png||height="550" width="1017"]]
Alec Chen 4.1 218
Alec Chen 49.1 219 [[image:1763970168381-554.png||height="551" width="1019"]]
Alec Chen 4.1 220
Alec Chen 49.1 221 [[image:1763970202306-593.png||height="552" width="1021"]]
222
223
224 ----
225
Alec Chen 45.1 226 = 6. How to set up a separate page for each device for easier management? =
Alec Chen 4.1 227
Alec Chen 61.1 228 Suppose we have a batch of AQI sensors and a batch of Tank sensors. How do we display them on two different pages or put them into an existing dashboard?
Alec Chen 33.1 229
Alec Chen 56.3 230 [[image:1764036365000-820.png||height="478" width="1022"]]
Alec Chen 51.1 231
Alec Chen 56.3 232
Alec Chen 61.1 233 Here, we will create a blank dashboard for demonstration purposes, and create two States (Pages) to distinguish and display two different types of devices.
Alec Chen 56.3 234
235 [[image:1764036526739-442.png||height="413" width="1024"]]
236
237 [[image:1764036704323-344.png||height="790" width="1027"]]
238
239 [[image:1764036761564-457.png||height="791" width="1028"]]
240
241 [[image:1764036789723-542.png||height="792" width="1030"]]
242
243
Alec Chen 61.1 244 Add a button to the default page to navigate to different Stata instances.
Alec Chen 56.3 245
Alec Chen 56.4 246 [[image:1764038418645-404.png||height="495" width="1032"]]
Alec Chen 56.3 247
Alec Chen 56.4 248 [[image:1764038440153-893.png||height="506" width="1032"]]
Alec Chen 56.3 249
Alec Chen 56.4 250 [[image:1764038459795-265.png||height="446" width="1032"]]
Alec Chen 56.3 251
Alec Chen 56.4 252 [[image:1764038595799-636.png||height="795" width="1033"]]
Alec Chen 56.3 253
Alec Chen 59.1 254 [[image:1764041017702-761.png||height="847" width="1034"]]
Alec Chen 56.3 255
Alec Chen 59.1 256 [[image:1764041058281-147.png||height="848" width="1035"]]
257
Alec Chen 56.4 258 [[image:1764038663915-300.png||height="288" width="1036"]]
Alec Chen 56.3 259
260
Alec Chen 61.1 261 Similarly, create an AQI alarm button.
Alec Chen 56.3 262
Alec Chen 56.4 263 [[image:1764038720507-522.png||height="308" width="1035"]]
Alec Chen 56.3 264
265
Alec Chen 61.1 266 Switch to Tank state
Alec Chen 56.3 267
Alec Chen 57.2 268 [[image:1764038993771-632.png||height="361" width="1040"]]
Alec Chen 56.3 269
270
Alec Chen 61.1 271 Open the Set Alarm dashboard in the new page and copy all the components there.
Alec Chen 56.4 272
Alec Chen 57.2 273 [[image:1763627459220-746.png]]
Alec Chen 56.4 274
Alec Chen 57.2 275 [[image:1764039091299-607.png||height="528" width="1028"]]
Alec Chen 56.4 276
277
Alec Chen 61.1 278 Enter the component editing page and switch the device group to be displayed.
Alec Chen 56.4 279
Alec Chen 58.1 280 [[image:1764039434202-995.png||height="496" width="1026"]]
Alec Chen 56.4 281
Alec Chen 58.1 282 [[image:1764039490910-964.png||height="497" width="1028"]]
Alec Chen 56.4 283
284
Alec Chen 61.1 285 Add a button to return to the initial page.
Alec Chen 56.4 286
Alec Chen 60.1 287 [[image:1764041404181-108.png||height="839" width="1025"]]
Alec Chen 57.2 288
Alec Chen 60.1 289 [[image:1764041446883-114.png||height="840" width="1026"]]
Alec Chen 57.2 290
Alec Chen 60.1 291 [[image:1764041476537-950.png||height="682" width="1028"]]
292
293 [[image:1764041567433-493.png||height="842" width="1028"]]
294
295
Alec Chen 61.1 296 This completes the creation of a State page that only displays Tank-class devices. The AQI State configuration can be referenced from the Tank page.
Alec Chen 60.1 297
298 [[image:1764041604908-185.png||height="843" width="1029"]]
299
300
Alec Chen 59.1 301