Most of the sensors in a smart home run on a battery the size of a coin or a AAA cell: door contacts, motion sensors, thermometers, leak detectors, buttons. When one of them dies early, the usual suspect is the sensor. Quite often the real cause is the battery itself, the chemistry it uses, or the way the sensor turns its voltage into a percentage.
This guide covers the cells you will meet most often (CR2032, CR2450, AA and AAA in alkaline, lithium and NiMH versions), what their datasheets actually promise, and why a battery reading of 100% or 40% tells you less than it seems. The examples come from Zigbee and Zigbee2MQTT, but the battery chemistry is the same for Thread, Bluetooth and Z-Wave devices.
Coin cells: the rated capacity assumes a gentle load
The CR2032 is the default cell for small sensors. Energizer's datasheet gives the basics: lithium manganese dioxide chemistry, 3.0 V nominal, a typical capacity of 235 mAh to a 2.0 V cutoff, an operating range of -30 to 60 °C and self-discharge of about 1% per year.
The catch is in the small print. That 235 mAh is measured with a continuous 15 kΩ load, which at 2.9 V is about 0.19 mA. A wireless sensor does not draw current like that. It draws very little while asleep, then wakes up and transmits in short bursts of several to tens of milliamps. A coin cell has high internal resistance, so each burst pulls its voltage down, and the more worn the cell, the deeper the dip.
Texas Instruments tested exactly this in its white paper "Coin cells and peak current draw". The engineers ran CR2032 cells from six vendors (GP, Maxell, Panasonic, Sony and two unbranded ones, at least 12 cells each) with a load profile modelled on Bluetooth Low Energy, with peaks of 15 mA and 30 mA, until the voltage fell below 2.0 V. Two findings are worth remembering:
- doubling the peak current from 15 to 30 mA cost only about 9% of effective capacity on average;
- the vendor mattered much more: cells from some vendors, including some branded ones, delivered only about 50% of their rated capacity at either peak current.
The white paper notes the results apply equally to Zigbee and other low-power radios. In practice this means two things. First, the brand and batch of coin cells really matter. If one pack of CR2032 lasts half as long as another in the same sensors, it is not your imagination. Second, if you design your own coin cell device, TI found that a capacitor in parallel with the cell was the most effective way to get more of its capacity out (more than 40% improvement with poor-quality cells), because the capacitor supplies the bursts instead of the cell.
If a sensor accepts a larger coin cell, the gain is real. The CR2450 has the same chemistry and voltage, and Energizer rates it at a typical 620 mAh (to 2.0 V with a 7.5 kΩ load), more than two and a half times the CR2032. You cannot swap one for the other, though. The CR2450 is about 24.5 mm across, against 20 mm for the CR2032, so the sensor has to be designed for it.
Rechargeable coin cells are a different battery
An LIR2032 fits a CR2032 holder, but it is a lithium-ion cell. A Conrad datasheet for one gives a rated voltage of 3.6 V, a charge limit of 4.25 V and a nominal capacity of 40 ±5 mAh. That is a higher voltage than the 3.0 V a CR2032 sensor was designed for, and about a fifth of the capacity. Do not use one unless the device manufacturer explicitly allows it.
AA and AAA: alkaline, lithium or NiMH
For sensors that take AA or AAA cells, you have three common options, and they behave differently.
Alkaline (zinc-manganese dioxide, 1.5 V nominal) is the default. Energizer's E91 datasheet gives an operating range of -18 to 55 °C. That lower limit is the problem for outdoor sensors in a Polish winter.
Lithium AA cells in the 1.5 V class (lithium iron disulfide, for example Energizer Ultimate Lithium L91) are rated for -40 to 60 °C, with a shelf life of 25 years at 21 °C according to the datasheet. They are the obvious choice for a sensor in a mailbox, garden shed or unheated garage. Do not confuse them with 3.7 V lithium-ion cells. The L91 is a 1.5 V primary cell that drops in for an alkaline one.
NiMH rechargeables are 1.2 V nominal. Low self-discharge versions keep a charge for a long time: Panasonic says eneloop cells retain up to 70% of their charge after 10 years when unused and properly stored. That makes them practical for devices that run for months between changes.
Some manufacturers recommend NiMH. IKEA, for example, suggests one LADDA 1.2 V AAA rechargeable for the PARASOLL door and window sensor and two for the VALLHORN motion sensor. Others assume 1.5 V alkaline cells, and that difference shows up in the battery reading.
Whatever you choose, follow the battery makers' basic rule. Energizer's guidance is to replace all the batteries in a device at the same time and not to mix old and new cells, or different types or makes, because that can cause leakage or rupture.
Why the battery percentage misleads
A Zigbee device can report its battery in two standard ways. The Zigbee Cluster Library defines a voltage attribute in 100 mV steps and a percentage attribute in half-percent steps. Some devices report a percentage they calculate themselves, some report only voltage, and some report both. When a device sends only voltage, Zigbee2MQTT converts it into a percentage using a curve chosen for that device model.
One of those curves in the Zigbee2MQTT converter code, named 3V_2100, is meant for 3 V cells. It treats 3.0 V and above as 100%, 2.9 V as 42%, 2.74 V as 18% and 2.44 V as 6%, and anything below 2.1 V as 0%. With voltage reported in 0.1 V steps, a device using this curve can drop from 100% to 42% in a single report. That does not mean the cell lost more than half its energy overnight. A coin cell's voltage changes slowly for most of its life and falls faster near the end, so a reading in 0.1 V steps says little about how much capacity is left.
The chemistry mismatch makes it worse, in both directions:
- NiMH in a device calibrated for alkaline cells reads low. A Zigbee2MQTT user who switched sensors to 1.2 V NiMH cells reported that the battery level always showed low, because the device's curve expected 1.5 V cells.
- Alkaline in a device built for NiMH can read high. In a Zigbee2MQTT issue about the IKEA PARASOLL, several users reported sensors showing 100% right up to the point where they stopped working. One user found that after switching from 1.5 V alkaline to 1.2 V NiMH cells, the device started reporting a falling voltage. The same user pointed out that the sensor sent battery reports at most once an hour by default, which makes it slow to see a change.
So treat the percentage as a rough hint. For alerts, these tend to work better:
- The voltage itself, if the device exposes it (Zigbee2MQTT publishes it as
voltage, in millivolts). Note the voltage of a fresh cell on day one, then alert when it has dropped well below that. - The
battery_lowflag, on devices that expose one. It comes from the device's own threshold. - Silence. A sensor that has not reported anything for longer than usual is the most reliable sign of a dead battery. Zigbee2MQTT has an availability feature for this. It is off by default, and once enabled it marks a battery device as
offlineif nothing has arrived from it for 25 hours (the timeout can be changed).
What drains batteries early
A cell that should last a year and lasts two months usually points to one of these:
- Weak signal. A sensor that has to retry messages, or transmit at the edge of its range, spends more time with the radio on. Add a router (a mains-powered Zigbee device that relays traffic) between it and the coordinator.
- Losing its parent. A battery-powered Zigbee end device talks through one parent router or the coordinator. If that parent disappears, for example a smart plug that someone switched off, the end device has to search for a new one. How much this costs depends on the firmware. In one case on the Nordic developer forum, a Zigbee switch built on the ZBOSS stack drew about 4 mA after losing its parent instead of its usual 10 µA, and its developer reported that a power outage longer than 24 hours drained the battery completely. Not every device behaves this way, but routers that come and go are bad for battery devices.
- Reporting too often. Shorter reporting intervals mean more transmissions. A temperature sensor that reports every 10 seconds will not last as long as one that reports every few minutes.
- Cold. Below the rated range, a cell delivers less, and an alkaline cell in an outdoor sensor is the most common example.
- A poor batch of coin cells, as the TI tests showed.
For a rough idea of how long a cell should last, divide its capacity by the device's average current. A CR2032 rated at 235 mAh with an average draw of 20 µA works out at 11,750 hours, or about 16 months. That is an upper bound. Pulsed loads, temperature and the cell's quality all take something off it.
A short buying list
- Coin cell sensors: buy CR2032 from a known brand and a shop with fast turnover, and keep track of which pack went into which sensor. If one batch dies early, you will know.
- Outdoors and in unheated places: 1.5 V lithium AA or AAA cells, or a sensor that takes them.
- Indoor AA and AAA sensors that you change often: low self-discharge NiMH cells, if the manufacturer allows or recommends them, and accept that the percentage may read low.
- Alerts: set them on voltage,
battery_lowand "no report for X hours", not on a single percentage threshold.