| 1 | # Alert on low battery capacity. |
| 2 | |
| 3 | template: power_supply_capacity |
| 4 | on: powersupply.capacity |
| 5 | class: Utilization |
| 6 | type: Power Supply |
| 7 | component: Battery |
| 8 | calc: $capacity |
| 9 | units: % |
| 10 | every: 10s |
| 11 | warn: $this < 10 |
| 12 | delay: up 30s down 5m multiplier 1.2 max 1h |
| 13 | summary: Power supply capacity |
| 14 | info: Percentage of remaining power supply capacity |
| 15 | to: silent |