Skip to content
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

Closed
phdelodder opened this issue Dec 15, 2018 · 8 comments
Closed

Xiaomi Battery Level different in Conbee than gateway #1041

phdelodder opened this issue Dec 15, 2018 · 8 comments

Comments

@phdelodder
Copy link

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%

@phdelodder phdelodder changed the title Xiaomi Battery Level Xiaomi Battery Level different in Conbee than gateway Dec 15, 2018
@ebaauw
Copy link
Collaborator

ebaauw commented Dec 15, 2018

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.

@phdelodder
Copy link
Author

Thanks for the explanation,

@Typ1er
Copy link

Typ1er commented Aug 22, 2020

Can the voltage be queried via REST API?

@Smanar
Copy link
Collaborator

Smanar commented Aug 22, 2020

Nope, you have the battery level in percent.

@Typ1er
Copy link

Typ1er commented Aug 22, 2020

the Xiaomi sensors all supply a voltage, here I don't understand why this is not output by rest api

@Smanar
Copy link
Collaborator

Smanar commented Aug 22, 2020

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.

@Typ1er
Copy link

Typ1er commented Aug 23, 2020

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.

@Smanar
Copy link
Collaborator

Smanar commented Aug 23, 2020

Easy on xiaomi it s like on real battery.
100% is ok (for some years)
95% you can buy new battery
80 % you can change it.

It's the normal working mode on a battery (physical), and voltage do same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants