Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

Returns
Excerpt

The following blocks are available:

Block

Description

Image Removed
Image Added

Return Block
Necessary for all formulas.

Image Removed
Image Added

Sensor Block
Select the sensor from the drop-down menu.

Image Removed
Image Added

Integer Block

A number.

Image Removed
Image Added

Arithmetic Block
Return based on chosen arithmetic sign:

+

Returns the sum of two numbers

-

Returns Returns

 Returns the difference of two numbers

x

x Returns the product of two numbers

÷Returns

÷ Returns the quotient of two numbers

^

^ Returns the first number raised to the power of the second number

Image Removed
Image Added

Square Root Block
Returns the square root of a number.

Image Removed
Image Added

Rounding Block
Returns the square root of a number.

Image Removed
Image Added

Clamping Block
Constrains a number to be between the specified limits (inclusive).

Image Removed
Image Added

Equality Block
Returns true if both inputs equal each other.

Image Removed
Image Added

Inequality Block
Returns true if both inputs do not equal each other.

Image Removed
Image Added

And Block
Returns true if both inputs are true.

Image Removed
Image Added

Not Block
Returns true if the input is false, returns false if the input is true.

Image Removed
Image AddedImage Added

Image Removed

True or False Block
Returns either true or false.

Image Removed
Image Added

Null Able Type Block
Returns null.

Image Removed
Image Added

Conditional Operator Block
Checks the condition in 'test', if the condition is true returns 'if true', if the condition is false returns 'if false'.

Image Removed
Image Added

List Block
Creates a list with any number of items.


Formula Value Output
The value coming from your formula logic