Reaction: Get notified when your AirPods finish charging#611
Merged
Conversation
d2be6ed to
775cfcd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
charging, so you know when to unplug them.
watches the pods, the case, or both.
and won't nag you while you keep one pod in your ear and charge the other.
Technical Context
(IDLE/CHARGING/FIRED/DISMISSED/SUSPENDED) fed only from live BLE/AAP data —
cached battery values never start, complete, or end a session, so a stale
reading can't fire a false notification.
"unplugged", because the firmware flips the charging flag off once a pod hits
100%; a slot dropping below the threshold is a genuine unplug and resets the
session.
resetting it, so a momentary BLE gap mid-charge doesn't lose progress.
BLE ear-detection bits are phantom for pods resting in the case — plus a lid
change matched against a short rolling window, because the worn-pod/in-case
advertisement pair makes the lid alternate OPEN/NOT_IN_CASE every frame and a
single-frame baseline would dismiss itself.
profile can't get stuck waiting on a battery slot that doesn't exist.
Review checklist
Closes #575