mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Reflect changes from https://github.com/home-assistant/home-assistant/pull/6786 (#2391)
This commit is contained in:
parent
cc81f09b65
commit
8e867c8e11
@ -25,6 +25,8 @@ It's an alternative to the [template sensor](/components/sensor.template/)'s `va
|
|||||||
}}{% endraw %}
|
}}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Sensors with unknown state will be ignored in 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.
|
||||||
|
|
||||||
To enable the minimum/maximum sensor, add the following lines to your `configuration.yaml`:
|
To enable the minimum/maximum sensor, add the following lines to your `configuration.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -43,3 +45,4 @@ Configuration variables:
|
|||||||
- **type** (*Optional*): The type of sensor: `min`, `max` or `mean`. Defaults to `max`.
|
- **type** (*Optional*): The type of sensor: `min`, `max` or `mean`. Defaults to `max`.
|
||||||
- **name** (*Optional*): Name of the sensor to use in the frontend.
|
- **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.
|
- **round_digits** (*Optional*): Round mean value to specified number of digits. Defaults to 2.
|
||||||
|
- **icon** (*Optional*): The icon to show for this sensor. Defaults to mdi:calculator.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user