Update Min_max sensor component configuration (#7132)

* Update Min_max sensor component configuration

* Add default
This commit is contained in:
Klaas Schoute 2018-10-28 13:03:33 +01:00 committed by Fabian Affolter
parent 4754829077
commit a579ad2d1e

View File

@ -14,7 +14,6 @@ ha_release: "0.31"
ha_qa_scale: internal
---
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](/components/sensor.statistics/) first.
This sensor is an alternative to the [template sensor](/components/sensor.template/)'s `value_template:` to get the average of multiple sensors.
@ -44,10 +43,23 @@ sensor:
- sensor.office_temperature
```
Configuration variables:
- **entity_ids** (*Required*): At least two entities to monitor. The unit of measurement of the first entry will be the one that's used. All entities must use the same unit of measurement.
- **type** (*Optional*): The type of sensor: `min`, `max`, `last` or `mean`. Defaults to `max`.
- **name** (*Optional*): Name of the sensor to use in the frontend.
- **round_digits** (*Optional*): Round mean value to specified number of digits. Defaults to 2.
{% configuration %}
entity_ids:
description: At least two entities to monitor. The unit of measurement of the first entry will be the one that's used. All entities must use the same unit of measurement.
required: true
type: [list, string]
type:
description: "The type of sensor: `min`, `max`, `last` or `mean`."
required: false
default: max
type: string
name:
description: Name of the sensor to use in the frontend.
required: false
type: string
round_digits:
description: Round mean value to specified number of digits.
required: false
type: integer
default: 2
{% endconfiguration %}