New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaomi Battery Level different in Conbee than gateway #1041
Comments
The Xiaomi sensors don't report battery percentage, only voltage. The deCONZ REST API plugin translates this to percentage, using the same approach as the Smartthings handlers for Xiaomi. The Xiaomi gateway might use a different algorithm. Note that deriving the battery percentage from the voltage is inherently unreliable. Typically CRxxxx batteries provide full voltage for a long time, and then drop quickly as the battery is nearing depletion. Also note that it might take up to an hour (after pairing the device or restarting deCONZ) before the battery percentage is updated. |
Thanks for the explanation, |
Can the voltage be queried via REST API? |
Nope, you have the battery level in percent. |
the Xiaomi sensors all supply a voltage, here I don't understand why this is not output by rest api |
Perhaps someone had to make a choice, level in percent or voltage to standardize it, and have choose the more used. And for me it s a good idea, 75% is easier to understand than 2.97 V. |
I cannot see if the battery is dead at 70% or 80%. If you see the voltage of 2.80 V, you can change it. Also it should be possible to get the value by restApi. Phoscon can display the value in the same way. My sensors all show 100% battery life, and I can't really imagine that. |
Easy on xiaomi it s like on real battery. It's the normal working mode on a battery (physical), and voltage do same. |
I recently switch from Xiaomi gateway to a Conbee, the battery level report from Xiaomi gateway is completely different than from Conbee.
Xiaomi gateway value was 42%, Conbee value is 92%
The text was updated successfully, but these errors were encountered: