Monnit offers two types of Rules which can be similar in operation but have some key (but subtle) differences that may determine the manner in which you operate with notifications. This article will outline some of these differences to provide an understanding of the different Rule types and how to implement them.
A common question
A very common question that might trigger the need to understand the difference between Sensor Reading Rules and Advanced Rules is related to the sensor’s Aware State Threshold. Many customers new to the Monnit platform start out by configuring the sensor’s Aware State Thresholds of the sensor, thinking that simply setting these thresholds will trigger a notification after the thresholds are applied. It may not be until later that they realize that the Aware State operation of the sensor is not tied to a Rule unless the User executes such a configuration. While the Aware State configuration does control how the sensor communicates and operates, it is not inherently tied to any Rule unless a corresponding Rule is created and the sensor is assigned to the Rule.
Some Rules are triggered by a simple sensor reading, and others are triggered by the sensor’s Aware State or other Advanced Condition. With Sensor Reading Rules, you configure the trigger point on the Rule Condition itself. Advanced Rules, on the other hand, are configured on the sensor’s Aware State, and thus are directly tied to Aware State Threshold settings on the sensor. Therefore if you are wondering why your sensors’ Aware State Thresholds do not seem to be triggering a Rule when the sensor reading breaches them, check the Rule type. Only Advanced Rules are triggered based on the sensor’s Aware State.
Note: Advanced Rules are only available to Premiere subscribers.
Sensor Reading Rules
Sensor Reading Rules have the Condition configuration under the Rule Condition tab. As mentioned above, these are not inherently tied to the sensor’s Aware State Threshold. Therefore you could have a sensor with a specific Aware State Threshold, and a Sensor Reading Rule with a completely different trigger point. Sensor Reading Rules generally give a Greater Than, Less Than, Equal to, Greater than or equal to, or Less than or equal to configuration. This will vary by type. The Rules are triggered solely based on the sensor reading and the trigger point you have set up on the Rules.
Advanced Rules are triggered by the sensor’s Aware State (and possibly other recorded conditions). Therefore they are generally directly tied to the sensor’s Aware State Thresholds. There are different kinds of Advanced Rules which allow for generally more complex logic. For example, you can trigger an Advanced Rule to send when a sensor reports “x” number of consecutive Aware Messages. The most common Advanced Rule is the Notify After Aware Period Rule in which the Notify After Aware Period timer is started by the first reported Aware Message and the Rule is triggered by a subsequent consecutive Aware Message from the sensor after the timer has elapsed.
Until you create an Advanced Rule, no Rule will be associated with the sensor’s Aware State Threshold configuration. But the various types of Advanced Rules will allow you to implement notifications based on the sensor’s Aware Readings/Aware State Threshold.
Understanding the difference between Sensor Reading Rules and Advanced Rules is important, especially for new users. It might determine the manner by which you choose to operate in regard to Rules. Feel free to contact firstname.lastname@example.org with related questions.