Skip to content

Commit ea29390

Browse files
authored
Improve low sensor example (fixes #3621) (#3623)
1 parent 3897ea4 commit ea29390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/entities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ If your device does not have a battery percentage but does have a battery voltag
3535
- The state template should reference the sensor and return a percentage
3636
Example of voltage sensor with a maximum capacity of 3 volts
3737
```{{ (states('sensor.my_sensor_voltage')|float(0) / 3 * 100) | round(0) }}```
38-
Example of low sensor, returning either 100% or 10%
39-
```{{ 10 if states('binary_sensor.my_sensor_low') == true else 100 }}```
38+
Example of low sensor, returning either 100% or 9%
39+
```{{ 9 if states('binary_sensor.my_sensor_low') == true else 100 }}```
4040
- Unit of measurement should be %
4141
- Device class should be battery
4242
- State class should be measurement

0 commit comments

Comments
 (0)