项目 / patman15/BMS_BLE-HA
Home Assistant 集成,用来监测通过低功耗蓝牙(BLE)接入的电池管理系统(BMS)。安装后无需额外配置,即可自动发现兼容电池;也可用 ESPHome 蓝牙代理扩展覆盖范围,并用标准仪表盘卡片查看远端电池状态。源文写明可读取单体电压以观察电池状态,并支持多块电池并行接入。它是 HACS 的默认仓库之一,也可按文档手动复制到 `custom_components/bms_ble`。说明与兼容设备列表见[仓库 README](https://github.com/patman15/BMS_BLE-HA)。
本站整理,非 GitHub 官方 description。
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
适配系统:能源管理系统、能耗监测平台 · 得分 1.4
面向能耗采集与负荷分析建模,可用于园区/楼宇能效诊断与用能优化建议。
适配系统:可观测性平台、运维监控系统 · 得分 1.1
提供指标/日志/链路采集与告警能力,可保障生产系统稳定性与故障定位效率。
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
该集成可通过 HACS 安装,也可手动将文件放入 HA 配置目录的 custom_components/bms_ble 后重启并在界面中添加。
该集成无需配置即可自动识别兼容电池,支持 ESPHome 蓝牙代理和任意数量的并联电池,原生接入 Home Assistant,并可读取单体电芯电压以判断电池健康状况。
无电流时设备会关闭蓝牙而无法添加或显示不可用;JBD 电池主要靠名称模式识别,改名后可能检测不到;部分仅在盒子层面广播蓝牙的设备经调查无法提取 BMS 数据,不受支持。
来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 26,825 字节),完整内容见 GitHub 仓库。
# <img src="https://github.com/patman15/BMS_BLE-HA/assets/14628713/0ee84af9-300a-4a26-a098-26954a46ec36" width="32" height="32"> BLE Battery Management Systems for Home Assistant
[![GitHub Release][releases-shield]][releases]
[![License][license-shield]](LICENSE)
[![Effort][effort-shield]](https://buymeacoffee.com/patman15)
[![HACS][install-shield]](https://hacs.xyz/docs/use/)
This integration allows to monitor Bluetooth Low Energy (BLE) battery management systems (BMS) from within [Home Assistant](https://www.home-assistant.io/). After installation, no configuration is required. You can use the [ESPHome Bluetooth proxy][btproxy-url] to extend the Bluetooth coverage range. By using standard dashboard cards, it is easy to visualize the current state of remote batteries.
<img width="702" height="350" alt="bms_ble" src="https://github.com/user-attachments/assets/69e4dccb-8cc4-43e3-ad86-83c70ed4ffb7" />
* [Features](#features)
* [Installation](#installation)
* [Removing the Integration](#removing-the-integration)
* [Troubleshooting](#troubleshooting)
* [Known Issues](#known-issues)
* [Device is not Recognized](#if-your-device-is-not-recognized--initialized)
* [Support Issues](#in-case-you-have-troubles-youd-like-to-have-help-with)
* [Energy Dashboard Integration](#energy-dashboard-integration)
* [FAQ](#faq)
* [Outlook](#outlook)
* [Thanks to](#thanks-to)
* [References](#references)
## Features
- Zero configuration
- Auto detects compatible batteries
- Supports [ESPHome Bluetooth proxy][btproxy-url]
- Any number of batteries in parallel
- Native Home Assistant integration (works with all [HA installation methods](https://www.home-assistant.io/installation/#advanced-installation-methods))
- Readout of individual cell voltages to be able to judge battery health
- 100% test coverage
### Supported Devices
- 123\\SmartBMS gen3 (show up as `123\\SmartBMS`)
- ABC/SOK BMS (show up as `ABC-`…, `SOK-`…)
- Allpowers power station
- Buknuwo batteries (show up as `CDZG`…), MEYULMOL batteries (show up as `MEY-`…)
- ANT BMS (show up as `ANT-BLE`…)
- CBT Power BMS, Creabest batteries
- D-powercore BMS (show up as `DXB-`…), Fliteboard batteries (show up as `TBA-`…)
- Daly BMS (show up as `DL-`…)
- 100Balance BMS
- Bulltron batteries
- Daren BMS (show up as `DWF`…), JBD with modified FW
- Dometic Büttner Tempra batteries
- E&J Technology BMS (show up as `libatt`…)
- AG Automotive batteries (show up as `AG...L`…)
- Chins batteries (show up as `G-..V...Ah`…)
- Elektronicx batteries (show up as `LT-`…)
- Lithtech batteries (show up as `LT-12V-`… or `L-12V`…)
- Meritsun, PowerBoozt, Supervolt v1 (show up as `SV12V`…), and Volthium (show up as `V-12V`…) batteries
- ECO-WORTHY + BW02 adapter (show up as `ECO-WORTHY`…)
- DCHOUSE batteries (show up as `DCHOUSE`…)
- Ective, Startcraft, Topband batteries (show up as `$PFLAC`…, `NWJ20`…, `ZM20`…)
- EG4 LL BMS
- Sungold batteries
- E&J Pro BMS (show up as `EJ`…)
- Eleksol batteries
- Epoch Pro BMS
- Felicity ESS (show up as `F10`…) and FLB batteries (show up as `F07`…)
- Gobel Power BMS (show up as `BMS-`…)
- Dyness AR1.2, Dyness AR2.5
- HumsiENK Smart BMS (show up as `HS`…)
- ECO-WORTHY (show up as `ECO....`)
- JBD BMS, Jiabaida, Xiaoxiang (show up as `JBD-`…)
- accurat batteries, Aolithium batteries, BasenGreen, Bulltron, CHINS, Cloud Energy, DCHOUSE, ECO-WORTHY, Epoch batteries
- Eleksol, Elfhub, Fritz Berger, JavaEnegy, LANPWR, Liontron, Lossigy, Norström, OGRPHY, Perfektium, RVPOWER, Ultimatron batteries
- SBL batteries (show up as `SBL-`…), Supervolt v3 batteries (show up as `SX1`…), Supervolt Jumbo (show up as `SJ-`…), Titan batteries (show up as `TITAN-`…)
- Vanvolt batteries (show up as `Vanvolt+`…), Vatrer batteries
- JK BMS, Jikong, (HW version ≥ 6 required)
- KS48x00 series BMS (show up as `BL-`…, `HSKS-`… or `KS-`…)
- BEMORY, Braun Power batteries
- Docan Energy/power, Vanvolt Arctic Pro, VoltPolska batteries
- Lithionics NeverDie smart BMS (show up as `Li.-`…)
- LiPower BMS
- Ective batteries, Ective BM X monitor
- NEEY balancer (4th gen) (show up as `GW-24S`…), NEEY BMS v2
- Offgridtec LiFePo4 Smart Pro: type A & B (show up as `SmartBat-A`… or `SmartBat-B`…)
- PaceEX BMS (show up as `PC-`…)
- Pro BMS Smart Shunt
- Foxwell BT630
- Leagend CM100
- Redodo BMS
- ECO-WORTHY (show up as `T-12`… or `T-24`…), LiTime, Power Queen, Starry Sea batteries `S-*`… or `SS-*`…
- Renogy BMS, Renogy Pro BMS
- Rolls VB series BMS
- RoyPow (Fish) batteries
- Lion Energy Safari
- Pylontech RT series batteries (show up as `RT12`…, `RT24`…, `RT48`…)
- Saftkiste BMS
- Saihang BMS (show up as `SH`…)
- Anenji, Aninerel, SANDISOLAR (show up as `HL`…) batteries
- Seplos v2 (show up as `BP[0-2]?`)
- Seplos v3 (show up as `SP[00-199]B`… or `CSY`…)
- CEG Carmine Energia Gratis (show up as `XZHX`…)
- SOK BMS (show up as `SK12V`… or `SK24V`…)
- Super-B Epsilon BMS (show up as `Epsilon-`…)
- Super-B Epsilon v2 BMS (show up as `Epsilon`…)
- TDT BMS
- Wattcycle batteries, Wattcycle Super Mini batteries, Enerdrive B-TEC
- Topband BMS
- Ective, Enerdrive B-TEC, KiloVault, LiFeBlue, Noovi, Startcraft, Wattstunde batteries
- PowerXtreme batteries
- TianPower BMS (show up as `TP_`…)
- Vatrer BMS (show up as `YYMMDDVVVAAAAxx` (date, V, Ah))
- C4S100 batteries (show up as `C4S100IE`…)
- Volta Power Systems myVolta CAN BLE adapter (show up as `VPS-`…)
- Wattstunde Nova Core
If you would like to get your battery/BMS supported please consider raising a pull request for [aiobmsble](https://github.com/patman15/aiobmsble) following the [contribution guidelines](https://github.com/patman15/aiobmsble?tab=contributing-ov-file) or raise [a new issue](https://github.com/patman15/BMS_BLE-HA/issues/new?assignees=&labels=question&projects=&template=feature_request.yml) giving your BMS/battery type in the title. Please provide the information requested by the template (see *additional context*).
### Provided Information
> [!CAUTION]
> This integration (including Home Assistant) **shall not be used for safety relevant operations**! The correctness or availability of data cannot be guaranteed (see [warranty section of the license](LICENSE)),
> since the implementation is mostly based on openly available information or non-validated vendor specifications.
> Further, issues with the Bluetooth connection, e.g. disturbances, can lead to unavailable or incorrect values.
>
> **Do not rely** on the values to control actions that prevent battery damage, overheating (fire), or similar.
Platform | Entity | Unit | Description | Attributes
-- | -- | -- | -- | --
`binary_sensor` | battery charging | `bool` | Indicates whether the battery is charging | battery mode
`sensor` | battery level | `%` | State of charge: 100% is full and 0% is empty |
`sensor` | battery health | `%` | Battery health, when provided by the BMS |
`sensor` | current | `A` | Positive while charging and negative while discharging | Balance current and heater current, when provided
`sensor` | cycles | `#` | Lifetime number of charge cycles |
`sensor` | power | `W` | Positive while charging and negative while discharging |
`sensor` | runtime | `h` (native: `s`) | Remaining discharge time to 0% SoC; unavailable while idle or charging |
`sensor` | stored energy | `Wh` | Currently stored energy |
`sensor` | temperature | `°C` | Average cell temperature, or average of all temperatures if no cell temperatures are reported |
`sensor` | voltage | `V` | Overall battery voltage |
**Diagnostic Entities**
Platform | Entity | Unit | Description | Attributes
-- | -- | -- | -- | --
`binary_sensor`* | balancer | `bool` | Indicates whether the battery balancer is active | Cell states
`binary_sensor`* | charge MOSFET | `bool` | Indicates whether the BMS charge MOSFET is activated |
`binary_sensor`* | discharge MOSFET | `bool` | Indicates whether the BMS discharge MOSFET is activated |
`binary_sensor`* | heater | `bool` | Indicates whether the battery is being heated |
`binary_sensor` | problem | `bool` | Indicates whether the BMS reports an issue or a plausibility check fails | Problem code
`sensor` | delta cell voltage | `V` | Maximum difference between any two cell voltages | Cell voltages
`sensor` | design capacity | `Ah` | Manufacturer design capacity, when provided by the BMS |
`sensor`* | highest cell voltage | `V` | Highest cell voltage |
`sensor`* | highest cell voltage index | `#` | 1-based index of a cell at the highest voltage |
`sensor`* | lowest cell voltage | `V` | Lowest cell voltage |
`sensor`* | lowest cell voltage index | `#` | 1-based index of a cell at the lowest voltage |
`sensor`* | link quality | `%` | Successful BMS queries over the last 100 update periods |
`sensor`* | RSSI | `dBm` | Bluetooth received signal strength indicator |
`sensor`* | individual temperatures | `°C` | One diagnostic sensor per temperature probe; created when at least two probes are reported |
When the BMS reports multiple battery packs, pack-level sensors are added to a child device for each pack. These include battery level, health (when provided), current, cycles, power, stored energy, temperature, voltage, design capacity (when provided), and cell voltage diagnostics where available.
*) Entities marked with an asterisk are disabled by default. If required, [enable the entities](https://www.home-assistant.io/common-tasks/general/#enabling-or-disabling-entities).
## Installation
BMS_BLE is a default repository in [HACS](https://hacs.xyz/). Please follow the [guidelines on how to use HACS](https://hacs.xyz/docs/use/) if you haven't installed it yet. To add the integration to your Home Assistant instance, use this My button:
[](https://my.home-assistant.io/redirect/hacs_repository/?owner=patman15&repository=BMS_BLE-HA&category=Integration)
<details><summary>Manual installation steps</summary>
1. Using the tool of choice open the directory (folder) for your HA configuration (where you find `configuration.yaml`).
1. If you do not have a `custom_components` directory (folder) there, you need to create it.
1. In the `custom_components` directory (folder) create a new folder called `bms_ble`.
1. Download _all_ the files from the `custom_components/bms_ble/` directory (folder) in this repository.
1. Place the files you downloaded in the new directory (folder) you created.
1. Restart Home Assistant
1. In the HA UI go to <a href="https://my.home-assistant.io/redirect/integrations">Configuration > Integrations</a> click <a href="https://my.home-assistant.io/redirect/config_flow_start?domain=bms_ble">+ Add Integration</a> and [search](https://my.home-assistant.io/redirect/config_flow_start/?domain=bms_ble) for "BLE Battery Management"
</details>
## Removing the Integration
This integration follows standard integration removal. No extra steps are required.
<details><summary>To remove an integration instance from Home Assistant</summary>
1. Go to <a href="https://my.home-assistant.io/redirect/integrations">Settings > Devices & services</a> and select the integration card.
1. From the list of devices, select the integration instance you want to remove.
1. Next to the entry, select the three-dot menu. Then, select Delete.
</details>
## Troubleshooting
> [!NOTE]
> A lot of transient issues are due to problems with Bluetooth adapters. Most prominent example is the performance limitation of the [internal Raspberry Pi BT adapter](https://www.home-assistant.io/integrations/bluetooth/#cypress-based-adapters), resulting in, e.g., sometimes wrong data, when you have multiple devices. Please check the Home Assistant [Bluetooth integration](https://www.home-assistant.io/integrations/bluetooth/) page for known issues and consider using a [recommended high-performance adapter](https://www.home-assistant.io/integrations/bluetooth/#known-working-high-performance-adapters).
### Known Issues
<details><summary>Elektronicx, Lithtech batteries</summary>
Bluetooth is turned off, when there is no current. Thus, device will get unavailable / cannot be added.
</details>
<details><summary>Batteries with JBD BMS</summary>
JBD BMS detection unfortunately needs to rely mainly on name patterns. If you renamed your battery it most likely will not be detected. I do appreciate issues being raised for new vendor naming schemes to ease the life of other users. To help, please follow the instructions in the last list item for <a href="#if-your-device-is-not-recognized">non-detected devices</a>.
Some JBD boards are matched by MAC OUI. If config flow reports no devices while the pack is idle at 0 A, BLE may not be
advertising (similar to Elektronicx/Lithtech). Close the phone app, wake the pack briefly, and retry while it appears connectable in the
<a href="https://my.home-assistant.io/redirect/bluetooth_advertisement_monitor/">advertisement monitor</a>.
</details>
<details><summary>Dyness Junior Box</summary>
Although the box advertises via Bluetooth an <a href="https://github.com/patman15/BMS_BLE-HA/issues/633#issuecomment-6382939524">investigation</a> found no way to extract BMS data from that connection. Thus the box cannot be supported.
</details>
<details><summary>JK BMS firmware 19.30+</summary>
Newer firmware of JK BMS seems to have a bug that causes [incompatibility with the Linux Bluetooth stack BlueZ](https://github.com/patman15/BMS_BLE-HA/issues/766#issuecomment-5337915104).
</details>
<details><summary>Liontron, MOBILEKTRO batteries</summary>
These batteries need a shorter interval between queries. Be a bit patient to get them added and set a <a href="https://github.com/patman15/BMS_BLE-HA#can-i-set-a-custom-polling-interval">custom interval</a> of about 9s to keep a stable connection, for MOBILEKTRO about 7s are required.
</details>
<details><summary>Litime batteries</summary>
Versions of these batteries support a "Bluetooth encryption" feature. When enabled you cannot connect using this integration. Remove the 6-digit Bluetooth password to get them working.
</details>
<details><summary>Seplos v2</summary>
The internal Bluetooth adapter issues <code>AT</code> commands in regular intervals which can interfere with BMS messages causing them to be corrupted. This impacts data availability (<code>link quality</code>).
</details>
### If your device is not recognized / initialized
1. Check that your BMS type is listed as [supported device](#supported-devices)
1. If a name detection pattern is listed ("show up as"), make sure your device matches it, by renaming the device in the vendor app.
1. Check the [known issues](#known-issues) for an entry for your BMS.
1. Make sure that no other device is connected to the BMS, e.g. app on your phone
1. Check that your are running the [latest release][releases] of the integration
1. Go to the [advertisement monitor](https://my.home-assistant.io/redirect/bluetooth_advertisement_monitor/) and verify that your device shows up there. Also, please ensure that your `RSSI` value is `>= -75 dBm`. If your device is missing or the `RSSI` value is `-80 dBm`or worse, please check your BT setup (is the device in range?).
1. If you use a BT proxy, make sure you have set [`active: true`](https://esphome.io/components/bluetooth_proxy/#configuration); check the logs of the proxy if the device is recognized. Note: The [Bluetooth proxy of Shelly devices](https://www.home-assistant.io/integrations/shelly/#bluetooth-support) does not support active connections and thus cannot be used.
1. Check that you do not exceed the number of connections of your adapter, see **[Settings](https://my.home-assistant.io/redirect/config/) > Bluetooth**
1. Try setting your adapter to [active scanning mode](https://www.home-assistant.io/integrations/bluetooth/#scanning-modes) as some BMSs do not correctly advertise information otherwise. Please note the impact on power consumption when switching away from `Auto`.
1. If above points did not help, please go to the [Bluetooth integration](https://my.home-assistant.io/redirect/integration/?domain=bluetooth). On your BT adapter select `configure`.
1. Verify that you have connection slots available.
1. Go to the [advertisement monitor](https://my.home-assistant.io/redirect/bluetooth_advertisement_monitor/) and click the device in question. Please provide the information in JSON format via the button **`copy to clipboard`** in a [new issue](https://github.com/patman15/BMS_BLE-HA/issues/new?assignees=&labels=question&projects=&template=feature_request.yml) giving your BMS/battery type in the title.
### Some/all sensors go `unavailable` temporarily or permanently
In case sensors are reported `unavailable` please enable the diagnostic sensors, i.e. `RSSI` and `link quality` and check your connection quality. The value of `link quality` results from (temporarily) bad `RSSI` values, which are impacted by disturbances of the Bluetooth communication. Your quality should be at least *fair* according to the following table:
Quality | link quality [%] | RSSI [dBm]
-- | -- | --
excellent | 98 to 100 | -60 to high
good | 90 to 98 | -60 to -75
fair | 80 to 90 | -75 to -80
weak | 60 to 80 | -80 to -90
bad | 0 to 60 | -90 to low
Verify that you have a proper Bluetooth setup according to the recommendations for the Home Assistant Bluetooth Integrations, see [this note](#troubleshooting).
In case your `RSSI` level is *fair* or better, but still the sensors show `unknown`, please follow the [instructions for opening an issue](#in-case-you-have-troubles-youd-like-to-have-help-with). Please attach
- a debug log as a file,
- diagnosis data as a file, and
- a 24hrs diagram of `RSSI` and `link quality` sensor.
### In case you have troubles you'd like to have help with
- please [enable the debug protocol](https://www.home-assistant.io/docs/configuration/troubleshooting/#debug-logs-and-diagnostics) for the [BLE Battery Management integration](https://my.home-assistant.io/redirect/integration/?domain=bms_ble),
- restart Home Assistant, wait till it is fully started up,
- reproduce the issue,
- disable the log (Home Assistant will prompt you to download the log), and finally
- [open an issue](https://github.com/patman15/BMS_BLE-HA/issues/new?assignees=&labels=question&projects=&template=support.yml) with a good description of what your question/issue is and attach the log, or
- [open a bug](https://github.com/patman15/BMS_BLE-HA/issues/new?assignees=&labels=Bug&projects=&template=bug.yml) if you think the behaviour you see is caused by the integration, including a good description of what happened, your expectations, and attach the log.
## Energy Dashboard Integration
If you want your battery to be integrated with the Home Assistant [energy dashboard](https://my.home-assistant.io/redirect/energy/) you need to integrate the reported power value separately for charge and discharge power to two energy values. Here are the detailed steps for energy dashboard configuration in your `configuration.yaml` (you achieve the same result by configuring equivalent [helpers](https://my.home-assistant.io/redirect/helpers/)):
### Add two template sensors
```yaml
template:
- sensor:
- unique_id: charge_power
state: "{{ [states('sensor.smartbat_..._power') | float, 0] | max}}"
unit_of_measurement: 'W'
state_class: measurement
device_class: power
availability: "{{ has_valu