Difference between revisions of "EasyFormula"

From Let's Control It
Jump to navigation Jump to search
Line 4: Line 4:
 
A few samples will be provided here. Remember that this is just a simple build-in 'calculator' with only the basic stuff like add, substract, multiply, devide.
 
A few samples will be provided here. Remember that this is just a simple build-in 'calculator' with only the basic stuff like add, substract, multiply, devide.
  
When the sensorvalue has been read from the device, it is parsed trough the formula function. The value is addressed as this:
+
When the sensorvalue has been read from the device, it is parsed through the formula function. The value is addressed as this:
  
 
  %value%
 
  %value%

Revision as of 18:54, 23 September 2015

ESP Easy can use a simple formula to change the sensor value before it is send to the Home Automation controller. (In most cases this is not needed and in most cases this can also be accomplished within the Home Automation software)

A few samples will be provided here. Remember that this is just a simple build-in 'calculator' with only the basic stuff like add, substract, multiply, devide.

When the sensorvalue has been read from the device, it is parsed through the formula function. The value is addressed as this:

%value%

So if you like to add a constant value of '2' to the sensorvalue, you would enter:

%value%+2

If you count in liters and need the value in cubic meters:

%value%/1000