... | ... | @@ -53,11 +53,19 @@ To provide this addtional information, a special Calculated Field function is pr |
|
|
|
|
|
[[images/calc_ex3.png]]
|
|
|
|
|
|
The `Unit` entry generally should be `runtime: Runtime Fraction`. `runtimeFromOnOff` must be entered as the `Transform or Calculated Field Function Name`. Finally, you need to provide the Sensor ID of the sensor that records the precise On and Off times (that sensor needs to report a value of 1 when the device turns on and a value of 0 when the device turns off). That Sensor ID is entered as the `onOffID` parameter in the `Function Parameters` box:
|
|
|
The `Unit` entry generally should be `runtime: Runtime Fraction` or `fraction: Occupied Fraction`. `runtimeFromOnOff` must be entered as the `Transform or Calculated Field Function Name`. Finally, you need to provide the Sensor ID of the sensor that records the precise On and Off times (that sensor needs to report a value of 1 when the device turns on and a value of 0 when the device turns off). That Sensor ID is entered as the `onOffID` parameter in the `Function Parameters` box:
|
|
|
|
|
|
onOffID: 29631
|
|
|
|
|
|
In this example, the Sensor ID is `29631`, an ID of a Monnit Dry Contact sensor. This special runtime function is also useful with Motion or Occupancy Sensors and 1-wire Motor Sensors used with the [[Mini-Monitor]].
|
|
|
In this example, the Sensor ID is `29631`, an ID of a Monnit Dry Contact sensor. By default, this function will calculate the runtime fraction for every half-hour interval. If you would like to use a different interval, add a second line to the `Function Parameters` box. For the above example, the following would be the entry for calculating 15 minute runtime fractions:
|
|
|
|
|
|
onOffID: 29631
|
|
|
runtimeInterval: 15
|
|
|
|
|
|
This special runtime function is also useful with Motion or Occupancy Sensors and 1-wire Motor Sensors used with the [[Mini-Monitor]].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Entering Sensor IDs for Calculated Fields
|
|
|
|
... | ... | |