Low Battery - TheThinkingHome/device_sentinel GitHub Wiki
Low Battery
Device Sentinel tells you which batteries are low, which are about to be, and which battery to buy. New battery devices are picked up on their own, with nothing to register.
Set the Low Battery Threshold
Low Battery Threshold (default 15 percent) reports any battery at or below it. Many cells sit between 15 and 20 percent for a long time, which is why the default is where it is. Raise it if you would rather be told earlier.
Get Warned Before a Battery Runs Low
A lithium coin cell, such as a CR2032, holds near full for most of its life, then can drop from 95 to 0 percent in about a week. A threshold alone misses that.
Days Till Low Warning (7 to 30 days, default 30) warns you this many days before a falling battery reaches your threshold, not 0 percent, because many devices stop working first. A battery is judged once it reads at or under three times your threshold (45 percent at the default) and has four weeks of readings. A judged battery reads one of two ways:
- Falling faster each week. It goes on the Problem List, in your Daily Brief and to your phone, the same as a low battery.
- Falling at a steady pace. It is listed under Batteries to Watch in the Daily Brief and on Battery Trends, with no alert.
Its time left reads as a range, such as "reaches 15% in about 4 to 5 weeks". The range starts from where the battery's last six weeks put it today, not from today's reading, so a battery whose reading bounces a few points from day to day keeps a steady date. A battery's fall speeds up near its end, so the far end of the range is the forecast's own date, the latest the battery is likely to last, and the near end is earlier by how much that battery's readings swing. A battery holding its charge is never warned about. One that reports only in big steps, such as 40, 30, 20, is marked Coarse and judged by your threshold alone.

Confirm a New Battery
When a level jumps up, Device Sentinel knows you changed the battery and starts its history again, so the forecast describes the new cell. The device's page shows the day under Battery Last Replaced and asks you to Confirm it, change the date, or Cancel it. The Confirm Battery Replacement card on the Recommendations tab lists each one waiting.
See Which Battery It Takes
A low battery names the battery to buy, such as "2× CR2032", on the Problem List, the dashboard and in your Daily Brief. It comes from the Battery Notes device library, whether or not you run Battery Notes. If the library doesn't know a device, or has it wrong, set it with the pencil on the device's page on the dashboard: a common battery and how many, Mains Powered, USB Powered, USB Direct to Server, PoE Powered or your own words. What you set covers all devices of the same model.
Where You See It
Low batteries show on the Problem List, where you can tick them to silence alerts, on each device's page, in your Daily Brief and on the dashboard's Battery Trends tab. On Battery Trends, click a type to see only that type, such as all your door sensors at once.
On a device's page, the battery chart shows each day's level. In Advanced view, the 90-day and longer views add a thin smoothed line through the readings, with a shaded band showing how far that battery's readings normally bounce. A reading outside the band is a real dip or jump, not the usual wobble. The 30-day and 14-day views show each week's average as a bar, the numbers Device Sentinel judges a falling battery by.
The Future view, and the chart in Simple view, shows where the battery is heading. Its scale fits the battery, so one between 30% and empty fills the chart. Today's reading is a ringed dot with its level beside it, so you can see how far it sits from the line the forecast starts from.
On a new install, Battery Trends opens with a box saying the day forecasts start. A battery needs four weeks of readings before Device Sentinel can tell one that is falling from one that only wobbles. Until then each level is shown as it is read, the By Model rate reads "learning", and a battery at or under your threshold is reported from the first day.
In Advanced view, the Battery Voltage Switched Off card on the Recommendations tab offers a button to turn on each battery device's voltage sensor, for more accurate forecasts. Device Sentinel keeps each battery's lowest and highest level and voltage for each day, for as long as How Much History to Keep says, so a later forecast can learn from them.
Mute a Battery
The Battery Muting lists stop battery reports for a device and nothing else. You can also press Mute battery on the device's page or beside it on the Problem List. Exclusions and Muting explains how the lists work together.