Skip to content

Commit 8e867c8

Browse files
micwfabaff
authored andcommitted
1 parent cc81f09 commit 8e867c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/_components/sensor.min_max.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ It's an alternative to the [template sensor](/components/sensor.template/)'s `va
2525
}}{% endraw %}
2626
```
2727

28+
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.
29+
2830
To enable the minimum/maximum sensor, add the following lines to your `configuration.yaml`:
2931

3032
```yaml
@@ -43,3 +45,4 @@ Configuration variables:
4345
- **type** (*Optional*): The type of sensor: `min`, `max` or `mean`. Defaults to `max`.
4446
- **name** (*Optional*): Name of the sensor to use in the frontend.
4547
- **round_digits** (*Optional*): Round mean value to specified number of digits. Defaults to 2.
48+
- **icon** (*Optional*): The icon to show for this sensor. Defaults to mdi:calculator.

0 commit comments

Comments
 (0)