Hi all
I just updated HA to 2021.12.7 version
I have the following sensor which I don’t understand how I should update correctly according to the new demands (state_characteristic:)
the sensor.wind_speed is an anemometer which shows the wind speed every 10 seconds.
It should calculate the mean based on 4 minutes of data or 90 data points whichever is smaller.
From here:
The statistics sensor updates with every source sensor update. The value of the sensor represents one statistical characteristic, with mean being the default. The time period and/or number of recent state that should be considered is an important factor here. Check the configuration section below for options.
state_characteristic string (Optional, default: mean / count)
The characteristic that should be used as the state of the statistics sensor (see table above). Beware that this parameter will become mandatory in a future version. Include in your configuration. If currently omitted, the default characteristic for a sensor source sensor is “mean”, for a binary_sensor “count”.
If it is going to become mandatory it is a good idea to explicitly name it.