Is it normal for battery sensors to report 100 percent and then die without warning Zigbee / Z-Wave
Third time this year a door sensor has gone from showing full battery to completely dead within a day, with no gradual decline to warn me. I built a dashboard card showing battery levels precisely so this would not happen and it is useless. Are these percentages just made up, or am I reading them wrong?
@little_endian_lu · 12mo ago · 3 replies
You are reading a number that was never really a percentage. Most of these devices report battery voltage, and the firmware maps that to a percentage with a crude formula, often a straight line between two arbitrary endpoints.
The problem is the chemistry. A CR2032 sits at about 3.0V for most of its life, then falls off a cliff near the end. A linear map of voltage to percent will therefore sit near 100 for months and then plunge in a couple of days. Nothing is broken, the display is just the wrong shape for the physics.
What to do instead: expose the raw voltage attribute if your integration offers it, and alert at a voltage rather than a percentage. For a coin cell I alert at 2.7V, which typically gives me one to three weeks of notice. For AA lithium I use 1.4V.
Reply
Report
@yaml_yeoman · 12mo ago
Adding to this: alert on the trend rather than the value if you can. A sensor that dropped 0.1V in a week is telling you something even if the absolute number still looks fine.
Reply
Report
@crashloop_cara · 12mo ago
And put the alert somewhere you will actually see it. A dashboard card you check monthly is not an alert, it is a museum exhibit.
Reply
Report