Added note to distinguish Statistics integration v.s. Long-term statistics (#22201)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Danny Tsang 2022-03-31 13:57:23 +01:00 committed by GitHub
parent 5734abd626
commit d0e3bf5384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,12 @@ Both `sensor` and `binary_sensor` are supported as source sensor. A number of ch
Assuming the [`recorder`](/integrations/recorder/) integration is running, historical sensor data is read from the database on startup and is available immediately after a restart of the platform. If the [`recorder`](/integrations/recorder/) integration is *not* running, it can take some time for the sensor to start reporting data because some characteristics calculations require more than one source sensor value.
<div class='note tip'>
The `statistics` integration is different to a [Long-term Statistics](https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics). More details on the differences can be found in the [2021.8.0 release notes](/blog/2021/08/04/release-20218/#long-term-statistics).
</div>
## Characteristics
The following statistical characteristics are available. Pay close attention to the right configuration of `sampling_size` and `max_age`, as most characteristics are directly related to the count of samples or the age of processed samples.