Set Value
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide shows you how you can use the set value feature.
The action "Set Value" is a very powerful feature in the rule engine. You can set a value of a specific field regarding a measurement of another one. In the example below you can see how to use this for alarming.
We have a short video reviewing the feature:
Description is meant to be used for documenting and better understanding of you own rules.
At Set value on the triggering device you can select a field where you want to set a value to. If you have selected a field, you can set a value afterwards.
If you want to set a value on a specific device you can define which value should be applied to which field of a single device. This can be useful if you have an overall alarming/monitoring device for several devices combined.
Execute action when conditions are becoming fulfilled: If enabled, the action is executed when conditions are becoming fulfilled.
Execute action when conditions are fulfilled consecutively: If enabled, the action is executed a second, third, etc., time when conditions are fulfilled consecutively.
Timeout between multiple executions when conditions are fulfilled: Set the minimum amount of time in seconds that must pass before the action is executed again.
Execute action when conditions are no longer fulfilled: If enabled, the action is executed when conditions are no longer fulfilled. This setting can be used to revert actions, e.g., to send an all-clear notification.
See Time Restrictions for detailed information.
Video will be attached shortly.
If you have no rule created yet, create a new rule by navigating to Rule Engine -> Add Rule.
In this example we will react to a new device measurement so select the template for New Measurement Recorded.
Choose a name for your new rule.
Set a preferred filter for the devices so that you can apply this rule to a single device or specific group of devices.
The "Selected Triggers" are set for "New Measurement" by default in this template. You only need to define which fields you want to observe. So please choose a field for "Trigger Only On Specific Measurements". In the next step you define the conditions when to set a value. Please define a condition for a field you chose earlier.
Last but not least, you can define an Action to be executed when the condition become true. Please click "Add Action" and select "Set Value". Then click on next.
Select the field you want a value to be set, define the value and hit "Update Action". Now you are ready to go!
Summarized in the shown example we observe the field "Temperature". When a new measurement is recorded, there is a check if the new measured Temperature is below or equal to 0°. If this is true, we set another field "ALARM_TEMPERATURE" to true.