Statistics: add notice on max_age - closes #25506 (#25507)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
fixes undefined
This commit is contained in:
Nathan Bijnens 2023-01-02 18:15:18 +01:00 committed by GitHub
parent f83bf34253
commit 244c67f6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,3 +155,7 @@ unique_id:
required: false
type: string
{% endconfiguration %}
### An important note on `max_age` and `sampling_size`
The `max_age` option is only valid within the measured samples specified by `sampling_size` (default 20). Specify a wide-enough `sampling_size` if using an extended max-age (e.g., when looking for `max_age` 1 hour, a sensor that produces one measurement a minute should have at least a `sampling_size` of 60.