max

A moving maximum over the last few values. A large window size will make the filter slow to react to input changes.

Configuration variables:

  • window_size (Optional, int): The number of values over which to calculate the min/max when pushing out a value. Defaults to 5.
  • send_every (Optional, int): How often a sensor value should be pushed out. For example, in above configuration the max is calculated after every 4th received sensor value, over the last 7 received values. Defaults to 5.
  • send_first_at (Optional, int): By default, the very first raw value on boot is immediately published. With this parameter you can specify when the very first value is to be sent. Must be smaller than or equal to send_every Defaults to 1.