Adds median to min_max component (#13723)

This commit is contained in:
Thorjan Knudsvik 2020-07-19 01:19:18 +02:00 committed by GitHub
parent f0509a8422
commit 0733e04e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,9 @@ ha_codeowners:
ha_domain: min_max ha_domain: min_max
--- ---
The `min_max` sensor platform consumes the state from other sensors to determine the minimum, maximum, latest (last) and the mean of the collected states. The sensor will always show you the lowest/highest/latest value which was received from all monitored sensors. If you have spikes in your values, it's recommended to filter/equalize your values with a [statistics sensor](/integrations/statistics) first. The `min_max` sensor platform consumes the state from other sensors to determine the minimum, maximum, latest (last), mean and median of the collected states. The sensor will always show you the lowest/highest/latest value which was received from all monitored sensors. If you have spikes in your values, it's recommended to filter/equalize your values with a [statistics sensor](/integrations/statistics) first.
This sensor is an alternative to the [template sensor](/integrations/template)'s `value_template:` to get the average of multiple sensors. This sensor is an alternative to the [template sensor](/integrations/template)'s `value_template:` to get the average or the median of multiple sensors.
{% raw %} {% raw %}
```yaml ```yaml
@ -46,7 +46,7 @@ entity_ids:
required: true required: true
type: [list, string] type: [list, string]
type: type:
description: "The type of sensor: `min`, `max`, `last` or `mean`." description: "The type of sensor: `min`, `max`, `last`, `mean` or `median`."
required: false required: false
default: max default: max
type: string type: string
@ -55,7 +55,7 @@ name:
required: false required: false
type: string type: string
round_digits: round_digits:
description: Round mean value to specified number of digits. description: Round mean or median value to specified number of digits.
required: false required: false
type: integer type: integer
default: 2 default: 2