mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
parent
9a910908a5
commit
7305c50a19
@ -158,6 +158,6 @@ unique_id:
|
||||
|
||||
### An important note on `max_age` and `sampling_size`
|
||||
|
||||
If both `max_age` and `sampling_size` are given, the considered samples are those within the `max_age` time window but limited to the number of `sample_size` newest samples. 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 per minute should have at least a `sampling_size` of 60 to use all samples within the `max_age` timeframe.)
|
||||
If both `max_age` and `sampling_size` are given, the considered samples are those within the `max_age` time window but limited to the number of `sampling_size` newest samples. 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 per minute should have at least a `sampling_size` of 60 to use all samples within the `max_age` timeframe.)
|
||||
|
||||
If only `sample_size` is given there is no time limit. If only `max_age` is given the considered number of samples is unlimited.
|
||||
If only `sampling_size` is given there is no time limit. If only `max_age` is given the considered number of samples is unlimited.
|
||||
|
Loading…
x
Reference in New Issue
Block a user