-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
battery_age entity #2519
Comments
As the battery replaced is a standard datetime you can obviously calculate this and I don't see any other devices offering a separate numeric entity of days when they have a datetime, but get where you are coming from as you'll have to create a template helper for each device. |
I have some devices that only report low battery yes/no. As I am often away from home for several weeks, it has happened to me a few times that a battery has run low during this time. |
I'm still not sure why you need days whilst battery last replaced will show you a friendly formatted days/months ago. Battery life according to manufacturer would be very variable, how often is the sensor triggered, brand of battery etc. |
Thanks for pointing out the auto entities, I will implement it that way. |
Checklist
Is your feature request related to a problem? Please describe.
no problem
Describe the solution you'd like
The age of the battery in days would be interesting for me, perhaps it would be worth implementing.
Describe alternatives you've considered
I need to add an entity for each device with the calculation myself
Additional context
no additional context
The text was updated successfully, but these errors were encountered: