Notification rules

“Guide.”

Notification rules enable you to define rules that will be applied to all or selected devices of a specific type inside the group. Notification rules enable to set:

  • Multiple recipients
  • E-mail, SMS, Push notifications
  • Custom template using pre-defined variables
  • Specify time range and day of the week
  • Multiple conditions with AND/OR boolean logic

Step 1

In order to set up notification rules go to “Home” – “Group management” and select “Notification rules” tab.

Note: Remember, notifications are located under the currently targeted group, therefore you will be able to create new notifications only for devices assigned to this group. 

Step 2

Now, you are located on the Notification rules tab. Here, you get to fill in different types of categories to create a new notification rule.

Step 3 – Devices

First, type the name of the notification rule. Then select the “Manufacturer” as per the example Comet system.

Step 4 – Devices

Continue with the selection of “Device type

Step 5 – Devices

and lastly, choose whether you want to restrict this rule to a specific device or to apply it to all devices in a group.

Step 6 – Recipients

In category recipients, choose the channel via which the notification will be sent. As per example, we selected email and typed the email address.

Note: For SMS you need to have a credit on your account. To check your balance go to “Home” – “Billing” – tab “Credits”.

Step 7 – Message

In this category, you can modify the content of message that will be sent. Since we chose a device type that measures the temperature we modify the message in a way to contain also the information of measured temperature.

Step 8 – Message

Subject: {deviceName} ({deviceId}) Temperature notification – Here we specified what kind of notification are we getting by word Temperature.

Message: Warning: device {deviceName} recorded {action} of {temperatureValue} Celsius at {time}, battery level {batteryStatus}. – As displayed in previous screen we added Temperature from the scroll menu and position it right after {action}. {action} will be translated as Measurment, therefore it make sense to put the {temperatureValue} here with addition of word Celsius. On top of it, we added battery level status at the end.


Outcome:

Subject: Chamaeleo calyptratus (393E9B) Temperature notification

Message: Warning: device Chamaeleo calyptratus recorded Measurement of 31 Celsius at 4:33 PM, battery level Medium.


Hint: If not sure about the meaning of different items/values in brackets, go to the main dashboard, click on the 3 dots on the device, select “Data details” and tab “Export”. Here in the field “Select data fields” tick values you are interested in and click “Load data”, you get a table overview of different items and values that it displays to get an idea how your Notification message is going to look like when you add this and that item.

Step 9 – Time range

The time range is self-explanatory, simply select the range and days for notification to be applied.

You can set timezone to be taken either from your location or the location of your device.

You also have option to set wheter to be notified “On every match” or just “Only if data changed“.

And finally you may want to set how often you get a notification, if condition last for. Time is set in minutes.

Step 10 – Conditions

In the previous step, we already defined the notification message, now based on it we create conditions. Since our device measures the temperature in the terrarium we want to be notified when the temperature drops too low or rises too high to avoid any dangerous situation for lizards. On top, we also added battery level status to be notified when it reaches a critical level.

In order to create multiple conditions, we have to use the boolean logic operator OR.

  1. Add rule and change the operator from AND to OR
  2. Select Battery level equal to Critical
  3. To add another condition click on Add operator
  4. Again, change the operator from AND to OR
  5. Add 2 rules for temperature lower than 20 and higher than 30

The conditions created above can be interpreted like this:

  • Notification will be sent when the battery level reaches the critical level
    OR
  • Notification will be sent when the temperature reaches 19 Celsius and lower
    OR
  • Notification will be sent when the temperature reaches 31 Celsius and higher

Step 11 – Add/Update

Once all the above done, click on “Add/Update“. Notification will be automatically listed under your group in the overview below. Each already existed notification can be anytime switched on/off or further modified.