... | ... | @@ -68,12 +68,12 @@ This special runtime function is also useful with Motion or Occupancy Sensors an |
|
|
|
|
|
Unlike [[Transform Expressions]], there is unfortunately no general method for creating calculated fields through use of math expressions. Instead, there are a number of predetermined functions available for creating calculated fields from existing sensor values. The table below shows the functions available and use of the functions is explained in the section following the table.
|
|
|
|
|
|
|Function Name|Expression Performed|Notes|
|
|
|
|-------------|--------------------|-----|
|
|
|
|`linear`|`slope * val + offset`
|
|
|
`slope` default is 1.0
|
|
|
'offset` default is 0.0||
|
|
|
|AminusB|`A - B`||
|
|
|
|Function Name|Expression Performed|
|
|
|
|-------------|--------------------|
|
|
|
|`linear`|`slope * val + offset`<br>`slope` default is 1.0<br>`offset` default is 0.0|
|
|
|
|AminusB|`A - B`|
|
|
|
|AplusBplusCplusD|`A + B + C + D`<br>`C` default is 0.0<br>`D` default is 0.0|
|
|
|
|fluidHeatFlow|flow * (Thot - Tcold) * heat_capacity * (1.0 - heat_recovery)<br>`heat_recovery` default is 0.0|
|
|
|
|
|
|
|
|
|
|
... | ... | |