The Formula Editor allows you to select sensors, logic operators, math operators, etc. to configure a formula that results in an output. The rule formula has access to all sensors defined in the Rule Sensors table. The values for each sensor for the particular timestamp can be used to calculate a rule formula output.
After making any changes, make sure to select Save in the Edit Custom Rule section.
The following blocks are available:
Block | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return Block Necessary for all formulas. | |||||||||||
Sensor Block Select the sensor from the drop-down menu. | |||||||||||
Integer Block A number. | |||||||||||
Arithmetic Block
| |||||||||||
Square Root Block Returns the square root of a number. | |||||||||||
Rounding Block Returns the square root of a number. | |||||||||||
Clamping Block Constrains a number to be between the specified limits (inclusive). | |||||||||||
Equality Block Returns true if both inputs equal each other. | |||||||||||
Inequality Block Returns true if both inputs do not equal each other. | |||||||||||
And Block Returns true if both inputs are true. | |||||||||||
Not Block Returns true if the input is false, returns false if the input is true. | |||||||||||
| True or False Block Returns either true or false. | ||||||||||
Null Able Type Block Returns null. | |||||||||||
Conditional Operator Block Checks the condition in 'test', if the condition is true returns 'if true', if the condition is false returns 'if false'. | |||||||||||
List Block Creates a list with any number of items. | |||||||||||
Formula Value Output |