Aqara WSDCGQ12LM (lumi.sensor_ht.agl02) wrongly reports 0% battery on newer revision (Voltage is fine)
What happened?
What happened?
The battery percentage calculation for the Aqara WSDCGQ12LM (T1 Temperature & Humidity sensor) is broken on newer hardware/firmware revisions. It immediately reports 0% battery, while the actual voltage is perfectly fine at 3.01 V. This triggers low battery alerts in Home Assistant.
Environmental values (humidity, temperature, pressure) are reporting without any problems.
This behavior was previously documented in the closed/stale issue #31671, but the bug persists for multiple users with newer batches. Older WSDCGQ11LM models and other Aqara sensors (like SJCGQ12LM) work perfectly in the same setup.
Zigbee2MQTT version
2.9.2 (or your current version if updated)
Device details from Zigbee2MQTT
- Definition: WSDCGQ12LM (v0.0.1) - Temperature and humidity sensor T1
- Firmware-ID: 2019www. / 20230109
- Firmware-Version: -1
- Measured Voltage: 3.01 V / 3010 mV
It seems the voltage-to-percentage conversion mapping in the herdsman converters needs an adjustment for this specific T1 revision.
What did you expect to happen?
The battery percentage should correctly reflect the healthy battery voltage (e.g., around 100% for 3.01 V) instead of dropping to 0% and triggering low battery warnings.
How to reproduce it (minimal and precise)
- Pair a newer revision of the Aqara WSDCGQ12LM sensor with Zigbee2MQTT.
- Wait for the initial interview to complete.
- Observe that the battery state immediately shows 0% while the battery_voltage reports a healthy 3.01 V.
Zigbee2MQTT version
2.14.2
Adapter firmware version
20250321
Adapter
Sonoff Dongle CC2652P (ZStack3x0)
Setup
Home Assistant with Zigbee2Mqtt on a Synology NAS (Virtual Machine)
Device database.db entry
No response
Debug log
Not applicable. The device communicates fine, but the data conversion for the battery percentage is incorrect.
Notes
This issue seems to heavily affect newer production batches of this specific T1 hardware/firmware revision (Firmware-ID: 2019www. / 20230109), as older WSDCGQ11LM models work flawlessly.