From 244c67f6c81cdcb5e3b5368ed885c80078bd8065 Mon Sep 17 00:00:00 2001 From: Nathan Bijnens Date: Mon, 2 Jan 2023 18:15:18 +0100 Subject: [PATCH] Statistics: add notice on max_age - closes #25506 (#25507) Co-authored-by: Franck Nijhof fixes undefined --- source/_integrations/statistics.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_integrations/statistics.markdown b/source/_integrations/statistics.markdown index 89cba600eff..346b8b1c314 100644 --- a/source/_integrations/statistics.markdown +++ b/source/_integrations/statistics.markdown @@ -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.