You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
battery percent does not persist when battery device goes to sleep #5077
I have filled out the issue template to the best of my ability.
This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
This issue is not a duplicate issue of any previous issues..
Battery Notes Version
battery percent doesnt persist when the device sleeps and goes unavailable
Describe the issue
battery percent doesnt persist when the device sleeps and goes unavailable.
i have a number of smoke alarms, i cant use battery+ for automation when the level drops as they only report every 3 hours, the battery+ goes unavailable, it should retain the last value.
i end up having to create secondary sensors to account for this, the battery+ should really handle this i feel
Reproduction steps
use a battery device that sleeps
observe battery+ percent
observe value disapears as the device goes unavilable
...
Hi, couple of questions as I don't have any sleepy devices.
Does the original battery also go unavailable for the duration of the sleep?
Does Battery+ update its value when the device wakes?
it wakes up to post its battery every 3 hours or so. other battery devices do the same but with different intervals.
a motion sensor for example sends its battery with a trigger or just periodically wakes
but then all go to sleep as battery devices should.
the picture does show the percent value but thats because the device hasnt gone unavailable yet but you can see in the chart that that is what happens
Thanks, I'll give this some thought but I'm currently leaning towards an option per device to retain value that you can switch on for sleepy ones.
That way those that rely on unavailable states can still use it for general devices.
Activity
andrew-codechimp commentedon Aug 29, 2026
Hi, couple of questions as I don't have any sleepy devices.
Does the original battery also go unavailable for the duration of the sleep?
Does Battery+ update its value when the device wakes?
magiva commentedon Aug 29, 2026
this is what i see in battery+
it wakes up to post its battery every 3 hours or so. other battery devices do the same but with different intervals.
a motion sensor for example sends its battery with a trigger or just periodically wakes
but then all go to sleep as battery devices should.
the picture does show the percent value but thats because the device hasnt gone unavailable yet but you can see in the chart that that is what happens
magiva commentedon Aug 29, 2026
here is the smoke alarm (2) that has gone to sleep so the sensor shows no value
andrew-codechimp commentedon Aug 29, 2026
Thanks, so just to confirm the original battery sensor is doing the same, going unavailable then back to a percentage?
magiva commentedon Aug 29, 2026
andrew-codechimp commentedon Aug 29, 2026
Thanks, I'll give this some thought but I'm currently leaning towards an option per device to retain value that you can switch on for sleepy ones.
That way those that rely on unavailable states can still use it for general devices.
magiva commentedon Aug 29, 2026
andrew-codechimp commentedon Oct 1, 2026
This has now been implemented in version 3.7.0
An additional option within a device's battery note.