[Release] Battery Monitor 2.0

Expanded on the already great app by Brandon Gordon and larry kahn.

I originally utilized the previous app to check on battery health but wanted a bit more from it.

Battery Monitor 2.0 Release Notes 3-10-26

Battery Monitor 2.0 Release Notes: 3-10-26

  • Automatic battery device discovery (optional)
  • Sorted battery report (lowest first)
  • Battery drain tracking (shows last change)
  • 4- Low + Critical alerts
  • 5- Flexible scan frequency
  • Summary reports: Daily, Every Other Day, Every 3 Days, Weekly
Battery Monitor 2.0 Release Notes 3-12-26

Battery Monitor 2.1 Release Notes: 3-10-26

  • Missed report
  • Devices appear only once - removed duplicate entries
  • Sorted - lowest battery first
  • All devices categorized
  • Clean report formatting
  • Categories: CRITICAL, GOOD, High Charge, Full Charge
  • Report notifications fire reliably** when summaryTime is updated.
  • Scheduled summary notification only
  • Battery category reporting
  • CRITICAL ≀25%, GOOD 26–70%, HIGH CHARGE 71–99%, FULL 100%
  • Battery drain rate tracking (% per day)
  • Estimated remaining battery life
  • Battery health scoring - Excellent, Good, Moderate, Poor

Battery Monitor 2.8.1 Release notes: 3-12-26

  • Battery replacement detection
  • Device stale reporting (devices not reporting battery)
  • Battery health score
  • Estimated days remaining
  • Worst battery leaderboard
  • Rapid drain detection
  • Battery change history tracking
  • Live device diagnostics table
  • Categorized summary report
  • Scheduled summary notifications only
  • Fully safe state handling
  • Color battery indicators (:green_circle::yellow_circle::orange_circle::red_circle:)
  • Color battery health indicators
Battery Monitor 2.0 Release Notes 3-13-26

Battery Monitor 2.8.2 Release notes: 3-13-26

  • battery replacement detection (Zigbee + Z-Wave)
  • Lowest battery tracking
  • Replacement history logging
  • Drain tracking + trends
  • Estimated battery life
  • Memory protection on logs
  • Cleaner scheduling
  • Battery Drain inserts data to trigger a health condition when no event has taken place. Once an event takes place, the health will update accordingly.
    "This could cause estimated battery life to be inflated until the device starts registering data for drain."
Battery Monitor 2.0 Release Notes 3-14-26

Battery Monitor 2.8.3 Release notes: 3-14-26

  • Better Critical battery detection
  • Sort by worst drain
  • Days since last battery report column
  • Stale device warning column
  • Removed **round() errors
  • Sort by table for Trends and Summary

Battery Monitor 2.8.4 Release notes: 3-14-26

  • Removed manual entry device list as stand alone feature.
  • Added note for Auto Discovery usage.
  • Repaired Battery Replacement feature and added manual entry for battery replacement when the battery is replaced outside the current register points. (<= 40 old to >= 95 new)
  • other minor tweaks for summary pages and logging.

BETA release notes in thread. Full updated set for 4-3-26 via HPM

Battery Monitor 2.0 is available in the HPM. (Thank You @csteele for your patience)

Battery Monitor 2.0 β€” Setup Guide

INSTALL VIA HUBITAT PACKAGE MANAGER (HPM)

1. Apps β†’ Hubitat Package Manager β†’ Install

2. Search by Keywords β†’ "Battery Monitor 2.0"

3. Select the package β†’ Next β†’ Install

SETUP

Step 1 β€” Select Devices

Open the app and select all battery devices you want to monitor.

Click Done before viewing any reports β€” this is required on first setup.

Step 2 β€” Set Scan Interval

Controls how often the app reads battery levels to build drain history.

β€’ Hourly β€” most accurate, fastest to establish health ratings

β€’ Every 3 Hours β€” balanced (default)

β€’ Every 6 Hours β€” lowest overhead

Step 3 β€” Notifications (Optional)

Toggle on Enable Notifications to reveal all notification settings including

frequency, time, notification devices, and which battery groups to include.

Step 4 β€” Battery Catalog (Optional)

Assign a battery type and quantity to each device (e.g. CR2032 x1, AA x2).

Appears in the Summary table and in Poor device alerts.

This is a one-time setup β€” tap Done to save.

Step 5 β€” Done

Click Done to save. The app will begin collecting data immediately.

Health ratings show Pending for the first 5 days and 5 samples β€” this is normal.

TIPS

β€’ Use Manual Battery Replacement after swapping a battery to reset history immediately

β€’ Use Force Scan Now on the Summary or Trends page to read all devices on demand

β€’ Set Scan Interval to Hourly to build health ratings faster on slow-reporting devices

β€’ Health ratings and Trends use the same thresholds β€” they will always agree

7 Likes

Tried this last night and again this morning, and get this screen every time I try to access your GitHub.

Don't see this problem with other sites on GitHub.

Let me check.... I'm new to this portion. Sorry

1 Like

Works! Thanks.

1 Like

Oops, it was better than before cuz I could get to the GitHub page, but now the code won't show.

Tap on battery monitor 2.0 and get this error:

Try the updated link in the OP.

This list of features is pretty much exactly what I've been wanting for a while and was even considering creating my own app for it. Are you planning on putting it in HPM? I just see the original one you mention.

I have not gotten that far. I updated it, tested, and was like, why not share. LOL

Not even sure of the process for HPM.

I have a few others i may create and test as well.
1- Intellicenter Pool Control
2- Open to suggestions

3 Likes

There is a new HPM helper publishing app just released I believe.
May make things easier?

Bingo! Raw code showed up. :slight_smile:

1 Like

Updates and Corrections made- APP Code updated
See OP notes

1 Like

I would not call myself a developer. I only wanted to share this based on my needs.
I barely have enough time to figure this first part out.

1 Like

@JdThomas24

Can you add a button for a Current Report to display on screen?

2 Likes

Display on what?

There is a plan to create a dashboard tile adder but i have not had time to test that yet.

On screen, similar to how Device Activity check does

2 Likes

The original Battery Monitor app shows the current report in the app screen... And there is a "Refresh" button to update the report shown.

Your app was unable to find any battery devices on my hub using the auto detect option - it reported "Battery Report: No battery devices found." I turned off the auto detect and chose the devices manually.

The battery report is coming as one message per device, which is very difficult to read/use (I'm sending reporting to Pushover). It's just a mass of too many messages. :slight_smile: If you can you adjust the reporting to send one report, or at least one report per battery level category that will make this app's report usable.

Good start.

1 Like

I was seeing this when requesting GitHub docs from the tile builder site too. Once I logged in they went away. I think it's a github change trying to get people to log in.

Yeah, I did sign in when that happened but it didn't help. :man_shrugging:

Huh. Maybe GitHub is starting to institute rate limits. That would be terrible.

I guess the workaround would be to download the docs when you get access. I'll probably do that for tile builder since there is A LOT of documentation needed to use it

Yeah, might be. I've never seen any message like that before. I also barely use GitHub, don't have any projects myself and very infrequently visit to download some raw code. Weird.