Integration to add battery notes to a device, with automatic discovery via a growing battery library for devices.
Track the battery type, when the battery was replaced and also when a battery is low based on device or global thresholds.
A battery+ sensor provides useful attributes for easy use in dashboards, the standard battery can optionally be hidden.
Please ⭐ this repo if you find it useful
If you want to show your support please
Or
Search for Battery Notes
in HACS and install it under the "Integrations" category.
Important
Add the following entry to your configuration.yaml
battery_notes:
Restart Home Assistant
In the HA UI go to Settings -> Integrations click "+" and search for "Battery Notes"
More Details
- You should take the latest published release.
- To install, place the contents of
custom_components
into the<config directory>/custom_components
folder of your Home Assistant installation. - Add the following entry to your
configuration.yaml
battery_notes:
- Restart Home Assistant
- In the HA UI go to Settings -> Integrations click "+" and search for "Battery Notes"
To get full use of the integration, read the documentation. It contains community quick starts as well as details on all the services, events and entities.
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 for adding via pull request.
To add a new language translation to Battery Notes see here
If you want to contribute to this please read the Contribution guidelines.
A lot of the inspiration for this integration came from the excellent PowerCalc by bramstroker, 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.