Set Up a Trigger
Triggers are used to define rules that trigger actions when certain conditions are met.
Written By Evolo Support
Last updated 4 days ago
Here's how to do it
Go to Settings and select Apps.
Click Add Application.
Enter a name, a description (if desired), and select a gateway.
Select the interval at which the application should evaluate the data points.
Select the data points to be used in the trigger.
Enter the activation rule.
Enter the rule for deactivation.
Select which data points to write to and which values to use.
Click Create.
Activation and Deactivation Rules
Activation and deactivation rules are written as JavaScript expressions.
If both rules are true at the same time, the activation rule takes precedence.
Interval and Indices
The data points you add are assigned an index in the same order as they appear in the list, starting at 0. In the JavaScript expressions, you retrieve the values using `values[0]`, `values[1]`, and `values[2]`. The expression must return true or false using `return`, for example, `return values[0] > 10;`. You can find ready-made examples in the code editor.
The trigger evaluates the rules at the selected interval: 1 min, 5 min, 10 min, or On Change. It waits until all selected data points have a value before evaluating the rules for the first time.
Was this helpful?
More in Applications
Set up a weather alert from YR.noSet up a maximum guardInstall Adax and Glamox panel heatersSet up SoftPLSStill need help? Ask the team