I am trying to use Function Average (past, single). The input is a GPIO state with a period of 1 s, no pre-output, floating, no unit conversion.
The function configuration is Average (Past, Single), period 4 s, start offset 0 s, max age 10 s, measurement unit: bool.
By the way, how is implemented an average of booleans? True = 1, and average(True, False, True, True) = 0.75?
I obtain the following error in the logs when I activate it (of course, the primary input was activated): “ERROR - mycodo.function.average_past_single_27d1f495 - Could not find measurement within the set Max Age”.
Possibly related to my other problem here.