2021.12 release notes: Add breaking changes in the statistics component (#20666)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Thomas Dietrich 2021-12-13 18:21:25 +01:00 committed by GitHub
parent f72fc92192
commit 1033f4a5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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