Skip to content

[Feature Request] Auto-Update "Last Changed" when battery level restores to 100% #4531

In progress

Description

@Ltek

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Would be nice to have the 'Last Changed' value auto-update when the system detects the battery has been replaced. Example logic (with some user tunable settings )to cause 'battery replaced' detection...

In my prior HA system we had this feature and its very useful, especially when you have 30 or 40 battery devices to contend with.

Describe the solution you'd like

Battery was <=80% and changes to 95%-100% for more than 12 hours
-- logic like this helps avoid glitches with incorrect value reads/updates and still detect when an actual battery is changed; often battery values take a while to update, or the device may go offline for a bit, having a user defined 'more than N hours' value helps with this.

Describe alternatives you've considered

none, not sure how to make this happen with battery notes,

Additional context

n/a

Activity

  1. andrew-codechimp commented on Mar 24, 2026

    @andrew-codechimp
    Owner
  2. Ltek commented on Mar 26, 2026

    @Ltek
    Author

    I don't do this automatically

    Exactly why I'm asking for the feature request. This function is what I'd consider a core maintenance item that should be in the main code, not an external automation.

  3. andrew-codechimp commented on Mar 26, 2026

    @andrew-codechimp
    Owner

    I've chosen to do it via external automations so that people can have choice on how it works, there are too many edge cases for a generic solution.

  4. bluedragon456 commented on Apr 5, 2026

    @bluedragon456

    Then why not make it a selective option when setting up each device. That way it gives the higher end features but only caters to those who purposefully turn it on.

  5. added
    enhancement
    on Apr 5, 2026
  6. andrew-codechimp commented on Apr 5, 2026

    @andrew-codechimp
    Owner

    I did see an integration that had optional automations the other day that gave me some inspiration on this.

    Before an automation I'd want to have threshold overrides per device though so will add that to the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions