Readability changes to min max sensor docs (#3749)

This commit is contained in:
Taylor Peet 2017-10-23 23:44:52 -07:00 committed by Fabian Affolter
parent 2cfea1e430
commit 1e87488ae0

View File

@ -14,9 +14,9 @@ ha_release: "0.31"
---
The `min_max` sensor platform is consuming the state from other sensors and determine the minimum, maximum, and the mean of the collected states. The sensor will always show you the highest/lowest value which was received from your all monitored sensors. If you have spikes in your values, it's recommended filter/equalize your values with a [statistics sensor](/components/sensor.statistics/) first.
The `min_max` sensor platform consumes the state from other sensors to determine the minimum, maximum, and the mean of the collected states. The sensor will always show you the lowest/highest 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.
It's an alternative to the [template sensor](/components/sensor.template/)'s `value_template:` to get the average of multiple sensors.
This sensor is an alternative to the [template sensor](/components/sensor.template/)'s `value_template:` to get the average of multiple sensors.
```yaml
{% raw %}{{ ((float(states.sensor.kitchen_temperature.state) +
@ -25,9 +25,9 @@ It's an alternative to the [template sensor](/components/sensor.template/)'s `va
}}{% endraw %}
```
Sensors with an unknown state will be ignored in the calculation. If the unit of measurement of the sensors differs, the `min_max` sensor will go to an error state where the value is `UNKNOWN` and the unit of measurement is `ERR`.
Sensors with an unknown state will be ignored in the calculation. If the unit of measurement of the sensors differs, the `min_max` sensor will go to an error state where the value is `UNKNOWN` and unit of measurement is `ERR`.
To enable the minimum/maximum sensor, add the following lines to your `configuration.yaml`:
To enable the `min_max` sensor, add the following lines to your `configuration.yaml`:
```yaml
# Example configuration.yaml entry