Releases: andrew-codechimp/HA-Battery-Notes
2.0.0
🚀 New Features
- A new Battery Plus sensor, it echo's the normal battery but has additional attributes from Battery Notes to make it easier to use in the ui and automations, you can optionally hide the original battery with a configuration setting.
- A Battery Low binary sensor, it uses a global default threshold (10%, changeable in configuration) to indicate when a battery is low, you can also manually configure a device in battery notes and set a specific threshold for each device.
- A Battery Threshold event which is fired when the battery goes low, or returns high. Useful for notification automations.
- A Battery Increased event which is fired when a battery increases by a certain percentage (25%, changeable in configuration). Useful for battery replaced automations.
Read the docs for how to get the most from these new features
Community Examples
Entities
Events
Configuration
1.4.3
Minor bug fixes related to HACS
Thanks to everyone for the library additions
1.4.2
Minor bug fixes related to HACS
Thanks to everyone for the library additions
1.4.1
What's Changed
- The config flow for adding/updating battery notes now has separate entry fields for type and quantity.
- Discovery now occurs every library update, no more restarting HA for new devices to be discovered.
- Added Polish translation, thanks to @pswid
Thanks to everyone for the library additions
1.4.0
What's Changed
The battery_type sensor now has attributes breaking out quantity and type separately, your battery types must be in either AA or 2x AA format for this to work. The next release will make this more formal with a specific quantity field when creating new devices.
The set battery replaced service now optionally accepts a date so you can backdate replacements.
1.3.5
What's Changed
- Lots of code optimisation and general tidying
- German Translation Updated by @13robin37
- You can now add submissions to the library via a handy New Device form by @bmos
Breaking Change
There was a bug in previous versions where battery note sensors were created with entity_id's in non-english for those with a HA system language of Slovak, German, Hungarian and Danish. New battery note entity_id's will be created in English as per HA guidelines but existing entities could be incorrect depending on when you added them and you should check/delete/recreate the battery notes for these. This will cause issues if you start using automations/cards based on entity_id. Entity names are still translated. Apologies for this issue.
Thanks to all those who have added devices to the library.
1.3.4
What's Changed
Added option to disable the battery replaced sensors for new devices. If you do not wish to use the replace feature then add this to your configuration.yaml, you will have to manually disable any current devices entities but this allows selective use of the feature. Thanks @ThomDietrich for the suggestion.
battery_notes:
enable_replaced: False
Added option to ignore a discovered device, thanks @mikedrews for spotting this.
Update Slovak translation, thanks @misa1515
1.3.3
What's Changed
Battery Replaced feature
Added a Battery Last Replaced sensor, Battery Replaced button and service. Press the button or call the service when your battery is changed to have the sensor show how long a battery has lasted.
Adding a battery note manually now only shows devices with batteries (see FAQ if you want to change this).
The library can now have battery_type set to MANUAL to stop auto discovery of those pesky devices with different batteries per revision or are mains or battery powered. You can still add the device manually but this will identify them and stop repeated revisions to the library.
Added Hungarian translation, thanks @bekesizl
Added German translation, thanks @P-v-D
Added Danish translation, thanks @Tntdruid
Thanks to everyone who added devices to the library.
1.3.2
What's Changed
Battery Replaced feature
Added a Battery Last Replaced sensor, Battery Replaced button and service. Press the button or call the service when your battery is changed to have the sensor show how long a battery has lasted.
Adding a battery note manually now only shows devices with batteries (see FAQ if you want to change this).
Added Hungarian translation, thanks @bekesizl
Added German translation, thanks @P-v-D
Added Danish translation, thanks @Tntdruid
Thanks to everyone who added devices to the library.
1.3.1
What's Changed
Battery Replaced feature
Added a Battery Last Replaced sensor, Battery Replaced button and service. Press the button or call the service when your battery is changed to have the sensor show how long a battery has lasted.
Adding a battery note manually now only shows devices with batteries (see FAQ if you want to change this).
Added Hungarian translation, thanks @bekesizl
Added German translation, thanks @P-v-D
Added Danish translation, thanks @Tntdruid
Thanks to everyone who added devices to the library.