项目 / andrew-codechimp/HA-Battery-Notes

andrew-codechimp/HA-Battery-Notes

行业候选
语言 Python标签 hacshacs-integrationhome-assistanthomeassistanthomeassistant-integrationhomeassistant-custom-component数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

A Home Assistant integration to provide battery details of devices

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
A Home Assistant integration to provide battery details of devices
1,217累计星
148Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景 能源 暂无可用场景

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
在 Home Assistant 的 Devices & Services 中添加 Battery Notes 集成,也可在 HACS/Marketplace 搜索下载,并在 Battery Notes 设置页手动添加电池笔记。
特点或设计要点
可在 HACS 或 Marketplace 中搜索 Battery Notes 并下载,重启后到「设置 → 设备与服务」里添加集成。随后会开始自动发现,也可手动添加备注。集成提供 battery+ 传感器属性,便于在仪表盘中使用;低电量、已更换和未上报可通过触发器、事件和动作接入自动化。文档见 [Battery Notes 文档](https://andrew-codechimp.github.io/HA-Battery-Notes/community)。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-23 · 语言 Python · 贡献者 —
python

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 6,568 字节。

<!-- ha-marketplace:exclude-start -->
# Battery Notes for Home Assistant

[![GitHub Activity][commits-shield]][commits]
[![Downloads][download-latest-shield]]()
[![Installs][marketplace-installs-shield]][hacs-install]
[![marketplace][marketplacebadge]][marketplace]
[![License][license-shield]](LICENSE)

<!-- ha-marketplace:exclude-end -->
Integration to add battery notes to a device or entity, with automatic discovery via a growing [battery library](library.md) for devices.

Track the battery type, when the battery was replaced, when a battery is low based on device or global thresholds and also when a battery hasn't been reported for a while.

The library makes adding battery notes easy, identifying the type of battery when known, but you can also add your own manually.

**Dashboard cards usage**

A battery+ sensor provides useful attributes for easy use in dashboards, the standard battery can optionally be hidden.

**Notifications and automations**

Battery low, replaced and not reported are all exposed via triggers, events and actions, using these you can create your own automations to generate notifications or other actions, there are some predefined ones in [community](https://andrew-codechimp.github.io/HA-Battery-Notes/community).

_Please ⭐ this repo on [GitHub][repository] if you find it useful_

_If you want to show your support please_

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/codechimp)

![Battery Notes](https://raw.githubusercontent.com/andrew-codechimp/ha-battery-notes/main/docs/assets/screenshot-device.png "Battery Notes")

![Discovery](https://raw.githubusercontent.com/andrew-codechimp/ha-battery-notes/main/docs/assets/screenshot-discovery.png "Device Discovery")

<!-- ha-marketplace:exclude-start -->
## Installation

[![Open your Home Assistant instance and open a repository in the Marketplace.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=andrew-codechimp&repository=HA-Battery-Notes&category=Integration)

Or search for `Battery Notes` in Marketplace/HACS and download it.

**Restart Home Assistant if using HACS**

Add the Battery Notes integration

[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=battery_notes)

Or go to Settings -> Devices & Services click "+ Add integration" and search for "Battery Notes"

This will create the main Battery Notes integration service and discovery will start shortly afterwards, or you can add battery notes manually within the settings/integrations/Battery Notes page by using the Add Battery Note button.
<!-- ha-marketplace:exclude-end -->

## Docs

To get full use of the integration, read the documentation. It contains community quick starts as well as details on all the actions, events and entities.

[!["Documentation"](https://raw.githubusercontent.com/andrew-codechimp/ha-battery-notes/main/docs/assets/documentation.png)](https://andrew-codechimp.github.io/HA-Battery-Notes/)

## Contributing to the Battery Library

[!["New Device Request"](https://raw.githubusercontent.com/andrew-codechimp/ha-battery-notes/main/docs/assets/new-device-request.png)](https://github.com/andrew-codechimp/HA-Battery-Notes/issues/new?template=new_device_request.yaml&title=[Device]%3A+)

To add a device definition to the battery library so that it will be automatically configured fill out the above form or see the [docs](https://andrew-codechimp.github.io/HA-Battery-Notes/library) for adding via pull request.

## Track non-smart batteries

Using my companion integration [Fake Devices](https://github.com/andrew-codechimp/HA-Fake-Devices) you can create a device place holder that you can then attach battery notes to, allowing you to note the battery type required and also the date you replaced them.  Just ensure you have enabled `show all devices` within Battery Notes settings for them to be visible.

## Translations

To add a new language translation to Battery Notes see [here](https://andrew-codechimp.github.io/HA-Battery-Notes/translations)

## Third party library usage

The library relies on community contributions, it is open source under the MIT license and available for anyone to use in their project.

Do not have your client access/download the library directly from this repository, please take a copy and distribute that by your own means.

Please credit the use of this library, it takes a lot of effort to maintain this.

## Acknowledgements

A lot of the inspiration for this integration came from the excellent [PowerCalc by bramstroker](https://github.com/bramstroker/homeassistant-powercalc), without adapting code from PowerCalc I'd never have worked out how to add additional sensors to a device.

Huge thanks to @bmos for creating the issue form & automations for adding new devices.

Thanks to everyone who has submitted devices to the library.

<!---->

[battery_notes]: https://github.com/andrew-codechimp/HA-Battery-Notes
[commits-shield]: https://img.shields.io/github/commit-activity/y/andrew-codechimp/HA-Battery-Notes.svg?style=for-the-badge
[commits]: https://github.com/andrew-codechimp/HA-Battery-Notes/commits/main
[marketplace]: https://home-assistant.io/integrations/marketplace
[marketplacebadge]: https://img.shields.io/badge/Marketplace-Default-41BDF5.svg?style=for-the-badge
[exampleimg]: example.png
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg?style=for-the-badge
[forum]: https://community.home-assistant.io/t/custom-component-battery-notes/613821
[license-shield]: https://img.shields.io/github/license/andrew-codechimp/HA-Battery-Notes.svg?style=for-the-badge
[download-latest-shield]: https://img.shields.io/github/downloads/andrew-codechimp/ha-battery-notes/latest/total?style=for-the-badge
[repository]: https://github.com/andrew-codechimp/HA-Battery-Notes
[marketplace-installs-shield]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fanalytics.home-assistant.io%2Fcustom_integrations.json&query=%24.battery_notes.total&style=for-the-badge&label=Marketplace%20installs
[marketplace-install]: https://my.home-assistant.io/redirect/marketplace_repository/?owner=andrew-codechimp&repository=battery_notes&category=integration

[hacs-install]: https://my.home-assistant.io/redirect/hacs_repository/?owner=andrew-codechimp&repository=HA-Battery-Notes&category=Integration
↑