Create Alarm Rules
Last Update:
Step 4: Configure alarm rules
Using the alarm rules feature, we will create an alarm when the temperature data is more than 25 degrees. For this purpose, we should edit the Device Profile and add an alarm rule. The current device (MyNewDevice) uses the Default device profile. We recommend creating a dedicated device profile for each type of device added to the platform, but we will skip that here for simplicity.
Follow these steps to set an alarm rule.
- Go to the "Device Profile" page.
- Click on Default Profile. This will show the device profile in detail.
- Select the "Alarm Rules" tab. Click on the "pencil" button in the upper right corner and go to edit mode.
- Click the "Add alarm rule" button.
- Specify the alarm type (for example, High Temperature) and click on the red "+" icon (Please add alarm rule condition) to add conditions to the alarm rules.
- Click the "Add key filter" button to specify a condition.
- Set the key type to time series mode. Click on the Key name section, and the temperature value that was previously sent to the platform will be automatically displayed to you, and select it. Also, set the Value type to Numeric values.
- In the filters panel, click on Add on the left and bottom of the panel. Set the operation type to greater than, and enter 25 in the threshold value. Click "Add" on the right bottom of the page.
- Click "Save" and finally click "Apply Changes".
Step 5: Create Alarm
Now the alarm rules are active. We can send telemetry data to the platform to trigger alarms. Note that the temperature value must be 26 degrees or more to trigger an alarm. Once we send a new temperature value, we should immediately see the newly created alarm on the dashboard.
Consider the following regarding warnings.
- Note that the new temperature value will trigger an active alarm.
- The user may acknowledge and clear alarms.
- As long as an alarm is active, sending new data will not trigger a new alarm.
Create dashboards and widgets