Skip to content
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 cycle count sensor #4992

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Jan 17, 2025

Summary

This PR adds a new sensor for the battery cycle count.

The intent extra is available on Android 14+, but also requires devices to support it. Looking at this open source app that was one of the first to expose the info that support is far from guaranteed, so I've added a note in the description about it: https://gitlab.com/narektor/batt/-/blob/main/app/src/main/java/com/porg/batt/CompatChecker.kt?ref_type=heads

Screenshots

Light Dark
In-app sensor screen for a sensor named 'Battery cycle count', state 375, light mode. In-app sensor screen for a sensor named 'Battery cycle count', state 375, dark mode.

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#1165

Any other notes

Screenshots from a Pixel 7a. I don't have access to system settings showing this value but assume it is the same.

@dshokouhi dshokouhi merged commit adcb9f8 into home-assistant:master Jan 17, 2025
4 checks passed
@jpelgrom jpelgrom deleted the battery-cycles branch January 17, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants