From 1033f4a5d9cb552eb374843bede8cc5af8d7ad00 Mon Sep 17 00:00:00 2001 From: Thomas Dietrich Date: Mon, 13 Dec 2021 18:21:25 +0100 Subject: [PATCH] 2021.12 release notes: Add breaking changes in the statistics component (#20666) Co-authored-by: Franck Nijhof --- .../_posts/2021-12-11-release-202112.markdown | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/_posts/2021-12-11-release-202112.markdown b/source/_posts/2021-12-11-release-202112.markdown index d9201f4145e..33a0cff58bb 100644 --- a/source/_posts/2021-12-11-release-202112.markdown +++ b/source/_posts/2021-12-11-release-202112.markdown @@ -813,6 +813,26 @@ dedicated `number` entities. {% enddetails %} +{% details "Statistics" %} + +All statistical characteristics were removed from sensor attributes and are +now selectable through `state_characteristic` as the state of the sensor. +The parameter `state_characteristic` will become mandatory in a future release. + +Please adapt the configuration of your statistics sensor(s) and expose the +characteristic you are interested in directly through `state_characteristic`. +Existing template sensors to access individual characteristics can be removed. +In case you are interested in multiple characteristics, you need to define +multiple statistics sensors. + +Many characteristics were renamed and additional ones were added, including +a few for binary source sensors. Consider opening a feature request if your +use case is not directly covered. + +([@ThomDietrich] - [#59867]) ([statistics docs]) + +{% enddetails %} + {% details "Templates: `timestamp_local` and `timestamp_utc`" %} The `timestamp_local` and `timestamp_utc` template functions/filters have