battery-hub/battery-hub
Live battery monitor for wireless HID devices (mouse, keyboard, headset, controller) on Windows
Featured achievements
The project's latest awards
#1 Repository of the day
#1 Repository of the day
#1 Repository of the day
Battery Hub
Live battery monitoring for wireless mice, keyboards, headsets and controllers on Windows.
Battery Hub reads the battery level of your wireless HID devices and shows each one on a live dashboard, with a per-device indicator in the system tray. Built with Electron.
The dashboard, shown with sample devices. Regenerate with npx electron scripts/screenshot.js.
Features
- Multi-device dashboard — mice, keyboards, headsets and controllers, each with a colour-coded charge ring.
- System-tray icons — a live battery indicator per device beside the clock.
- At-a-glance overview — which device needs charging next, how soon, and how many are connected.
- History & estimates — click any device for a 24-hour or 7-day battery chart, its drain rate and when it was last charged.
- Low-battery notifications — Windows alerts when a device falls below a threshold, set once for all devices or per device.
- Knows when a device is off — a device switched off while its receiver stays plugged in shows as Asleep or off instead of an old reading.
- Guided calibration — a 30-second scan detects the battery byte for devices that aren't recognised automatically.
- Light and dark themes — a calm Windows 11 style window, a tray flyout and a reduce-motion option.
- Auto-updates — delivered through GitHub Releases.
Installation
With the Windows Package Manager:
winget install DORON177.BatteryHub
Or download the latest Battery-Hub-Installer-x.y.z.exe from the releases page and run it. Battery Hub installs per-user and requires no administrator rights.
Windows SmartScreen shows a "Windows protected your PC" prompt because the installer isn't code-signed — select More info → Run anyway. Code signing certificates are issued to identified publishers for a recurring fee; this project is unfunded, so builds are unsigned. See Verifying a download if you'd like to confirm the file's integrity first.
Verifying a download
Every release is built and published by GitHub Actions directly from a tagged commit — no binaries are uploaded by hand — and each one ships a SHA256SUMS.txt. To confirm your download matches, run:
(Get-FileHash "Battery-Hub-Installer-2.0.5.exe" -Algorithm SHA256).Hash
and compare the result with the checksum in that release's SHA256SUMS.txt. Pasting the same hash into VirusTotal will show any scan results for the exact file.
Usage
Adding a device
Open Add device. Recognised devices are listed first with a Supported badge: click Add. For anything else, choose Set up:
- Start the 30-second scan.
- Power the device off and on while it scans — many wireless devices only report their battery on power-up.
- Select the value that matches your current battery percentage.
- If the device reports on a different scale, enter your real percentage and it's converted automatically from then on.
Reading a card
Each card shows the current percentage and ring (green / yellow / red), a charging indicator, a history sparkline, an estimated time remaining, and the age of the last reading. Click a card for its full history. Every device also appears as a tray icon that fills and changes colour with the charge.
Settings
Theme, card density, reduce animations, low-battery threshold, tray behaviour, launch at login, and refresh interval.
Devices can be renamed, given a custom icon, dragged to reorder, or hidden from the ⋯ menu. Hiding keeps the device and its calibration but stops polling and removes its tray icon; hidden devices are listed below the grid and can be restored at any time.
Build from source
Requires Node.js.
npm install
npm start # run in development
npm run dist # build the Windows installer into dist/
npm run installer # wrap it in the branded installer window
Supported devices
Battery Hub reads these directly. Anything else can usually be added with Set up.
| Family | Devices |
|---|---|
| Bluetooth | Any paired device that reports its battery to Windows |
| Xbox | Wireless controllers |
| PlayStation | DualSense, DualSense Edge, DualShock 4 (USB and Bluetooth) |
| Logitech | Mice and keyboards using HID++ 2.0 (Bolt, Unifying, Lightspeed); G PRO, G533, G535, G633, G733, G933, G935 headsets |
| Razer | 81 wireless mice and keyboards |
| SteelSeries | Arctis 1, 7, 7+, 9, Nova 3P, Nova 5, Nova 7, Nova Pro Wireless headsets; Aerox, Prime and Rival 3 Wireless mice |
| HyperX | Cloud Alpha Wireless, Cloud Flight, Cloud II Wireless, Cloud II Core Wireless, Cloud III Wireless, Cloud III S Wireless, Cloud Stinger 2 Wireless |
| Corsair | Void, Void Wireless v2, HS80 MAX, Virtuoso, Virtuoso SE, XT and MAX headsets; Slipstream receiver |
| Audeze | Maxwell, Maxwell 2 |
| Astro | A50 Gen 4, A50 Gen 5 |
| MCHOSE | V9 Turbo+, V9 PRO, X9 headsets; A7 V2 Ultra, A5 Ultra, K7 Ultra, A7 Ultra mice; G75 V2, G87 V2, K87S, K99 V3 keyboards |
| VXE, ATK, MADLIONS | Dragonfly R1 Pro, NordicMouse and other mice on Compx receivers; ATK NearLink and BitMouse receivers, X1 NearLink |
| Glorious, LAMZU | Model O, O-, D, D- Wireless; Maya X and other LAMZU mice |
| Beken/Xenta 2.4G receiver | Attack Shark and other mice on 1d57:fa60 |
| Compx 2.4G receiver | AULA F87 Pro and F99 Pro, Lingbao K98, MCHOSE G75 keyboards |
Tested on real hardware: VXE NordicMouse, MCHOSE V9 Turbo+, DualSense on USB and Bluetooth, and Logitech MX Master 4 over Bluetooth. The rest are built from the protocols documented by the projects below and checked against those byte layouts, so please report a device if one misbehaves.
Protocol work comes from HeadsetControl, OpenRazer, rivalcfg and the Linux kernel's HID drivers.
A device connected more than one way, such as a controller on its cable and over Bluetooth, shows as one card when both connections report the same Bluetooth address.
Reading a PlayStation controller over Bluetooth switches it to its full report mode until it's turned off, as Steam and DS4Windows do. A few older games may not see the controller in that mode until it's turned off and on.
Project structure
| Path | Purpose |
|---|---|
src/main | Electron main process — HID polling, tray, notifications, updates. |
src/main/hid/drivers | Per-device battery drivers; table.js lists simple request/response devices. |
src/renderer | Application UI. |
scripts | Icon generation and build tooling. |
Native node-hid runs in an isolated utility process, so a driver fault can't bring the app down.
Troubleshooting
- "Can't read this device's battery." Some devices block battery requests at the driver level and can't be read.
- Nothing captured during calibration. Rerun the scan and power the device off and on while it runs.
- MCHOSE V9 Turbo+ shows "needs Python + hid module". This headset is read through Python. Install Python, then run
pip install hidapi. - A device won't work. After two failed scans, or three failed reads in a row (open the device's card), a Send device report button appears. It fills in a device request on GitHub for you to check and submit.
- Something else isn't working. Open Settings > Help and press Run check. It tests your install, this PC and your devices, tells you where the problem is, and can open a filled-in support request.
- Crash logs are written to
%APPDATA%\battery-hub\battery-hub.log.
Privacy
Battery Hub runs entirely on your PC and collects nothing. It goes online for two things only, both
to GitHub: checking for and downloading updates, and the version check in Settings > Help. Device
reports and support requests open a filled-in GitHub form in your browser; nothing is sent until you
submit it yourself, and you can read every field first. Battery history and settings stay in
%APPDATA%\battery-hub.
Contributing
Device support requests and pull requests are welcome — see CONTRIBUTING.md. Release history is in CHANGELOG.md, and security reports are covered by SECURITY.md.
Support the project
Battery Hub is free and stays free. If it saved you from a dead mouse mid-game, you can buy it a coffee. It helps keep it free and adds support for more devices.
License
MIT © 2026 Battery Hub contributors
Similar Projects
Discover other similar projects and AI models.
Battery for your wireless mouse, headset, controller and keyboard, in the Windows tray. · Bateria do mouse, fone, controle e teclado sem fio, na bandeja do Windows.
Concurrently chat with ChatGPT, Bing Chat, Bard, Alpaca, Vicuna, Claude, ChatGLM, MOSS, 讯飞星火, 文心一言 and more, discover the best answers
Powir is a Windows 10 based tool to monitor and analyze your system's power and battery usage.
A modified web browser that helps in responsive web development. A web developer's must have dev-tool.
本地优先的跨平台 Claude Code / AI Agent 桌面工作台:多 Agent 协作、Git Worktree、代码 Diff、技能市场、多模型、Computer Use、桌面宠物;支持微信、飞书、钉钉及 H5 等远程访问。 | Local-first Claude Code / AI Agent desktop workspace: multi-agent teams, Git worktrees, diffs, skills marketplace, multi-model, Computer Use, task-aware desktop pets; remote via WeChat, Feishu, DingTalk, Telegram, WhatsApp & H5.
类似按键精灵的鼠标键盘录制和自动化操作 模拟点击和键入 | automate mouse clicks and keyboard input