Platform: statistics - WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics'

I can’t find any information on how to do the settings.

statistics yaml

## --------------------------------------------------------------
## Weather station data statistics
## --------------------------------------------------------------

- platform: statistics
  name: ws_indoortempf2
  entity_id: sensor.ws_indoortempf
  max_age:
    hours: 12

WARNINGs on start:

2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_indoortempf2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_indoorhumidity2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_tempc2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_humidity2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_rainin_mm2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_absbaromin_hpa2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_baromin_hpa2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_windspeed_kmh2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_windgust_kmh2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_solar_klux2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2021-12-03 13:26:24 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristics' will become mandatory in a future release of the statistics integration. Please add 'state_characteristics: mean' to the configuration of sensor "ws_solar_uv2" to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/

Home Assistant 2021.12.0.dev20211203

Systemzustand
Version	core-2021.12.0.dev20211203
Installationstyp	Home Assistant Container
Entwicklung	true
Supervisor	false
Docker	true
Benutzer	root
Virtuelle Umgebung	false
Python-Version	3.9.7
Betriebssystemfamilie	Linux
Betriebssystem-Version	5.8.0-63-generic
CPU-Architektur	x86_64
Zeitzone	Europe/Vaduz

How can I exclude the warnings or which settings are required for statistics for this? Find no reference at Statistics - Home Assistant.

Thanks.

You are running a development version of Home Assistant. The documentation only covers the release versions.

You should ask in the dev channels on Discord.

Hello @petsie,
maybe 14 days ago the documentation wasn’t updated yet. Please see:Statistics - Home Assistant

However, as the author of the warning message you posted, I wonder what is unclear about it. Just do what it says :slight_smile:

- platform: statistics
  name: ws_indoortempf2
  entity_id: sensor.ws_indoortempf
  state_characteristic: mean
  max_age:
    hours: 12

state_characteristic: mean
NOT
state_characteristics: mean

1 Like