Rules are used to notify users and/or to trigger a task.
When you add a sensor, you have the option to create a rule for this sensor by clicking on the (1) in the Rules tile. Click on "Add Threshold rule" (2) to create a threshold rule.
Threshold rules allow innius to define sensor data which is in a cautionary or emergency state and trigger notifications to users. You can refer to the articles on notifications for more information. Besides this, a rule can also create a task based on a task template (See articles on machine tasks for more information). You can setup as many rules per sensor as you need.
When setting up a rule, the first thing to do is to select one of the different conditions available.
Next, the values themselves need to be defined. This can be done in one of two ways: either by defining a value or by selecting another sensor. If you select a sensor, you use values generated by that sensor to create a variable threshold.
Tip: When using values to define rules, use the same number of decimal places as defined in the sensor definition.
You then need to set up how rules will be triggered. There are three options. 'Directly' will trigger the rule as soon as the sensor generates a value which meets the defined condition. 'Duration (in seconds)' will trigger the rule after a sensor generates values meeting the defined condition consecutively for a given number of seconds. 'Counter (consecutive)' will trigger the rule after a sensor consecutively generates values meeting the defined condition for a given number of occurrences.
You can choose to generate a task when the condition set for the threshold has been reached. You can select the task template from which the tasks will be generated, or make a new one.
You can then set how the threshold impacts the sensor status when reached to no-status, cautionary or emergency.
The toggle button underneath, allows notifications to be sent via the Insight application when the threshold is reached.
Once the rule has been saved you return to the sensor configuration page. Lastly, under the rules shown in the rules panel you can select whether the rules related to this sensor affect the machine state as a whole (3).