Template:FMM640 Avg Const
Avg Const[edit source]
If Avg Const value is 10, new value must be present for 1 second to register the change to a new value. Internal sampling is done every 40 ms, so 25 samples are taken per second. To configure 5 seconds of averaging multiply 10 by 5 yielding 50 as Avg Const value. The same logic works if the device is in Deep Sleep mode.
Averaging follows RC exponential curves, see image below:
For Boolean values of 5, values is used, that means value change is taken when new values is averaged to more than 99.3%.