aiobmsble
Asynchronous Python library to query battery management systems via Bluetooth Low Energy.
What it is and what it does
Aiobmsble is an async Python library built on Bleak that communicates with battery management systems via Bluetooth Low Energy. It handles the complexity of BMS protocol detection and device identification, allowing you to query battery data like voltage, current, temperature, and state-of-charge from compatible devices. The library supports autodetection of compatible BMSs and automatic detection of compatible BLE write modes, making it straightforward to integrate into monitoring applications.
The library is designed for non-safety-critical monitoring and telemetry—the documentation explicitly warns against using it for safety-relevant operations like preventing battery damage or fire, since correctness cannot be guaranteed due to reliance on vendor specifications and Bluetooth connection variability. It provides both command-line tools for device discovery and a Python API for programmatic use, with full async/await support for querying multiple batteries in parallel.
Use it for:
- Monitor battery status in Home Assistant via the BMS_BLE-HA integration for smart home energy management
- Query real-time battery metrics (voltage, current, temperature) from portable power systems or UPS devices
- Build a battery fleet monitoring dashboard that polls multiple BMS devices concurrently over Bluetooth
- Integrate battery telemetry into IoT applications running on Linux or Raspberry Pi systems
- Autodetect and log battery management system data for diagnostics or historical analysis
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous Python library for querying battery management systems over Bluetooth Low Energy, with support for device autodetection and parallel operation.
Yes, if you need to read battery management system data over Bluetooth and your devices are on the supported list. The library is actively maintained, has low install friction, and carries a permissive license. However, verify that your specific BMS model is supported before committing, and do not rely on it for safety-critical battery protection—use it only for monitoring and telemetry.
Install
aiobmsble on PyPI
pip
pip install aiobmsbleuv
uv add aiobmsblepoetry
poetry add aiobmsbleInstalling aiobmsble
Before you install
Low friction installation with only two runtime dependencies (bleak and bleak-retry-connector). Actively maintained with a release within the past week and recent commits, though the project is still in Beta status.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
Quickstart
pip install aiobmsble
import asyncio
from bleak import BleakScanner
from aiobmsble.bms.dummy_bms import BMS
async def main():
device = await BleakScanner.find_device_by_name("BT Device Name")
async with BMS(ble_device=device) as bms:
data = await bms.async_update()
print(data)
Requires Python 3.12 or later and a Bluetooth adapter; BMS device must be on the supported devices list.
Verify before relying
- Whether the supported BMS device list is comprehensive enough for your specific hardware
- Real-world reliability of Bluetooth connection stability under interference or distance constraints
- Performance characteristics when querying multiple batteries in parallel
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — bleak, bleak-retry-connector |
| Maintenance | actively maintained — 5 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 118,390/month — #12,121 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aiobmsble-0.27.0-py3-none-any.whl
Keywords: BMS, BLE, battery, Bluetooth
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
aioblescanaioblescan listens for and parses Bluetooth Low…
permissive · top 15,000 on PyPI
oralb-blePassive parser for Oral-B toothbrush Bluetooth…
permissive · top 15,000 on PyPI
xiaomi-bleManages Xiaomi BLE (Bluetooth Low Energy)…
permissive · top 15,000 on PyPI
govee-bleProvides Python bindings to discover, connect…
permissive · top 15,000 on PyPI
tesla-fleet-apiProvides Python bindings to Tesla's Fleet API…
permissive · top 15,000 on PyPI
Adax-localA Python library for local communication with…
permissive · top 15,000 on PyPI
airthings-bleLibrary to communicate with Airthings…
permissive · top 15,000 on PyPI
simplepybleSimplePyBLE provides cross-platform Bluetooth…
noncommercial · top 15,000 on PyPI
matter-ble-proxyA Python client library that bridges BLE…
permissive · top 15,000 on PyPI
PySwitchbotAsync Python library to discover and control…
permissive · top 15,000 on PyPI