mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Improve note on max_age and sampling_size relationship (#27110)
This commit is contained in:
parent
f97b43e6e1
commit
c286fb4c79
@ -157,4 +157,6 @@ unique_id:
|
||||
|
||||
### 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.
|
||||
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 only `sample_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