-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add battery_quantity attribute to battery_type entity #375
Comments
Nice idea, I can add some attributes to split the quantity and type, ironically I'll have to write a regex as well as I have it as one combined string when it is assigned to the device but better to do it in the integration than make everyone do it themselves. |
great thank for your positive feedback, next step will be to mix information of the battery level with type to reproduce my previous battery remplacement report. |
This is now available in version 1.4.0 which is in pre-release |
thank-you I will try it soon |
Checklist
Is your feature request related to a problem? Please describe.
first of all thank you for this integration. I previously built my battery information base using customization (customize.yaml) like this:
This way I added the battery type and quantity to the device's existing battery. You can find more details on my github https://github.com/nechry/ha-battery-inventory
The goal is to reproduce a list of batteries by battery type with the total number of batteries by type and % charge remaining. This is very useful for planning battery ordering.
Describe the solution you'd like
If it would be possible to add the quantity to the battery_type information as an attribute it would be very useful for producing battery reports
Describe alternatives you've considered
it is possible to parse the text sensor with a regex to cut the quantity of the type but I think it would still be cumbersome
Additional context
nothing to add at first but remains available to discuss it
The text was updated successfully, but these errors were encountered: