Aqara Drivers and Battery Percentages

@mike.maxwell
I have used several community drivers over the years for my Aqara devices. Each one has had a battery voltage status attribute and a calculated percentage attribute that is scaled differently by different developers. I have found it much easier to replace batteries in these devices before they are dead which, for me, is usually < 2.7 volts.

Because the new system drivers do not state voltage, I was wondering if you would mind sharing how you scaled for the battery percentages.

Thank you for adding these drivers!

1 Like

+1 :+1:

The batteryVoltage attribute is used in many community drivers and, I think, I have also seen it in some system drivers.

zigbee.getEvent(description) also returns 'batteryVoltage' named event. So it seems to be a semi-official attribute...

1 Like

The voltage reading from the device is scaled from 0 to 100% within the range of 2.5 to 3.0 volts.

3 Likes

This method is a carry over from SmartThings, we do not use it within any of our drivers, nor do we use the batteryVoltage attribute.

1 Like

Thank you, Mike.

1 Like