From 903d4c952856bb616f1d264064cfd6be86743491 Mon Sep 17 00:00:00 2001 From: Alex <6181345+nnmalex@users.noreply.github.com> Date: Mon, 9 Sep 2019 22:19:17 +0100 Subject: [PATCH] Update attribute names for statistics sensor (#10321) As tested in 0.98.5 the `min` and `max` attributes are actually `min_value` and `max_value`. --- source/_components/statistics.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/statistics.markdown b/source/_components/statistics.markdown index 9169823913e..46cb802cb1c 100644 --- a/source/_components/statistics.markdown +++ b/source/_components/statistics.markdown @@ -11,7 +11,7 @@ redirect_from: - /components/sensor.statistics/ --- -The `statistics` sensor platform consumes the state from other sensors. It exports the `mean` value as state and the following values as attributes: `count`, `mean`, `median`, `stdev`, `variance`, `total`, `min`, `max`, `min_age`, `max_age`, `change`, `average_change` and `change_rate`. If it's a binary sensor then only state changes are counted. +The `statistics` sensor platform consumes the state from other sensors. It exports the `mean` value as state and the following values as attributes: `count`, `mean`, `median`, `stdev`, `variance`, `total`, `min_value`, `max_value`, `min_age`, `max_age`, `change`, `average_change` and `change_rate`. If it's a binary sensor then only state changes are counted. If you are running the [recorder](/components/recorder/) component, on startup the data is read from the database. So after a restart of the platform, you will immediately have data available. If you're using the [history](/components/history/) component, this will automatically also start the `recorder` integration on startup. If you are *not* running the `recorder` component, it can take time till the sensor starts to work because a couple of attributes need more than one value to do the calculation.