We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3897ea4 commit ea29390Copy full SHA for ea29390
docs/entities.md
@@ -35,8 +35,8 @@ If your device does not have a battery percentage but does have a battery voltag
35
- The state template should reference the sensor and return a percentage
36
Example of voltage sensor with a maximum capacity of 3 volts
37
```{{ (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 }}```
+Example of low sensor, returning either 100% or 9%
+```{{ 9 if states('binary_sensor.my_sensor_low') == true else 100 }}```
40
- Unit of measurement should be %
41
- Device class should be battery
42
- State class should be measurement
0 commit comments