项目 / patman15/BMS_BLE-HA

patman15/BMS_BLE-HA

行业候选
语言 Python标签 home-assistantbatterymonitoringbattery-management-systembattery-monitorsmart-bmsbattery-statusdaly-bmsjikong-bmsjbdjbd-bmssupervoltseplosseplos-bmsogt-bmsrenogyneey-balancergreenway-bms数据更新 2026-11-14 07:06:26 · 仓库 2026-11-13

一段话介绍

Home Assistant 集成,用来监测通过低功耗蓝牙(BLE)接入的电池管理系统(BMS)。安装后无需额外配置,即可自动发现兼容电池;也可用 ESPHome 蓝牙代理扩展覆盖范围,并用标准仪表盘卡片查看远端电池状态。源文写明可读取单体电压以观察电池状态,并支持多块电池并行接入。它是 HACS 的默认仓库之一,也可按文档手动复制到 `custom_components/bms_ble`。说明与兼容设备列表见[仓库 README](https://github.com/patman15/BMS_BLE-HA)。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
This integration allows to monitor Bluetooth Low Energy (BLE) battery management systems (BMS) from within Home Assistant.
380累计星
96Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(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 数据,不受支持。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-22 · 语言 Python · 贡献者 —
python

GitHub 项目主页介绍

来自 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-`&#x2026;, `SOK-`&#x2026;)
- Allpowers power station
- Buknuwo batteries (show up as `CDZG`&#x2026;), MEYULMOL batteries (show up as `MEY-`&#x2026;)
- ANT BMS (show up as `ANT-BLE`&#x2026;)
- CBT Power BMS, Creabest batteries
- D-powercore BMS (show up as `DXB-`&#x2026;), Fliteboard batteries (show up as `TBA-`&#x2026;)
- Daly BMS (show up as `DL-`&#x2026;)
    - 100Balance BMS
    - Bulltron batteries
- Daren BMS (show up as `DWF`&#x2026;), JBD with modified FW
- Dometic Büttner Tempra batteries
- E&J Technology BMS (show up as `libatt`&#x2026;)
    - AG Automotive batteries (show up as `AG...L`&#x2026;)
    - Chins batteries (show up as `G-..V...Ah`&#x2026;)
    - Elektronicx batteries (show up as `LT-`&#x2026;)
    - Lithtech batteries (show up as `LT-12V-`&#x2026; or `L-12V`&#x2026;)
    - Meritsun, PowerBoozt, Supervolt v1 (show up as `SV12V`&#x2026;), and Volthium (show up as `V-12V`&#x2026;) batteries
- ECO-WORTHY + BW02 adapter (show up as `ECO-WORTHY`&#x2026;)
    - DCHOUSE batteries (show up as `DCHOUSE`&#x2026;)
- Ective, Startcraft, Topband batteries (show up as `$PFLAC`&#x2026;, `NWJ20`&#x2026;, `ZM20`&#x2026;)
- EG4 LL BMS
    - Sungold batteries
- E&J Pro BMS (show up as `EJ`&#x2026;)
- Eleksol batteries
- Epoch Pro BMS
- Felicity ESS (show up as `F10`&#x2026;) and FLB batteries (show up as `F07`&#x2026;)
- Gobel Power BMS (show up as `BMS-`&#x2026;)
    - Dyness AR1.2, Dyness AR2.5
- HumsiENK Smart BMS (show up as `HS`&#x2026;)
    - ECO-WORTHY (show up as `ECO....`)
- JBD BMS, Jiabaida, Xiaoxiang (show up as `JBD-`&#x2026;)
    - 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-`&#x2026;), Supervolt v3 batteries (show up as `SX1`&#x2026;), Supervolt Jumbo (show up as `SJ-`&#x2026;), Titan batteries (show up as `TITAN-`&#x2026;)
    - Vanvolt batteries (show up as `Vanvolt+`&#x2026;), Vatrer batteries
- JK BMS, Jikong, (HW version &ge; 6 required)
- KS48x00 series BMS (show up as `BL-`&#x2026;, `HSKS-`&#x2026; or `KS-`&#x2026;)
    - BEMORY, Braun Power batteries
    - Docan Energy/power, Vanvolt Arctic Pro, VoltPolska batteries
- Lithionics NeverDie smart BMS (show up as `Li.-`&#x2026;)
- LiPower BMS
    - Ective batteries, Ective BM X monitor
- NEEY balancer (4th gen) (show up as `GW-24S`&#x2026;), NEEY BMS v2
- Offgridtec LiFePo4 Smart Pro: type A & B (show up as `SmartBat-A`&#x2026; or `SmartBat-B`&#x2026;)
- PaceEX BMS (show up as `PC-`&#x2026;)
- Pro BMS Smart Shunt
    - Foxwell BT630
    - Leagend CM100
- Redodo BMS
    - ECO-WORTHY (show up as `T-12`&#x2026; or `T-24`&#x2026;), LiTime, Power Queen, Starry Sea batteries `S-*`&#x2026; or `SS-*`&#x2026;
- Renogy BMS, Renogy Pro BMS
- Rolls VB series BMS
- RoyPow (Fish) batteries
    - Lion Energy Safari
- Pylontech RT series batteries (show up as `RT12`&#x2026;, `RT24`&#x2026;, `RT48`&#x2026;)
- Saftkiste BMS
- Saihang BMS (show up as `SH`&#x2026;)
    - Anenji, Aninerel, SANDISOLAR (show up as `HL`&#x2026;) batteries
- Seplos v2 (show up as `BP[0-2]?`)
- Seplos v3 (show up as `SP[00-199]B`&#x2026; or `CSY`&#x2026;)
    - CEG Carmine Energia Gratis (show up as `XZHX`&#x2026;)
- SOK BMS (show up as `SK12V`&#x2026; or `SK24V`&#x2026;)
- Super-B Epsilon BMS (show up as `Epsilon-`&#x2026;)
- Super-B Epsilon v2 BMS (show up as `Epsilon`&#x2026;)
- 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_`&#x2026;)
- Vatrer BMS (show up as `YYMMDDVVVAAAAxx` (date, V, Ah))
    - C4S100 batteries (show up as `C4S100IE`&#x2026;)
- Volta Power Systems myVolta CAN BLE adapter (show up as `VPS-`&#x2026;)
- 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:

[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](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&thinsp;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
↑