Xiaomi Sensors - Battery Level - anybody know what it really means?

I have already the problem, that the XIAOMI Sensors don´t have the right Battery Level.
Has anyone solved this Problem ?
thx.

mine still shows ~45 after 2 years…

Yeah, it’s like it is, it only updates after a half year or more

HA shows not the voltage, but the electrical capacity of the battery.
I suppose…

here’s a formula I found for calculating the battery level

Math.min(Math.round((voltage - 2200) / 10), 100);

I don’t know if it’s accurate, but it’s what I’m using.

here’s where I found it: https://github.com/pierrecle/node-red-contrib-mi-devices/blob/4c8978decf996006a952588413fce228d99d6a6c/src/utils.js