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

Battery values virtually recharged up to 100% (after resetting gateway or software update maybe?) #1725

Closed
enr0c opened this issue Aug 1, 2019 · 3 comments
Labels

Comments

@enr0c
Copy link

enr0c commented Aug 1, 2019

Hello,
i was wondering how the battery status for an Xiaomi Multisensor is being retrieved or how its being influenced?
The following two Rest Responses are from March 2019 (Battery 91%) and August 2019 (100%) for the same device. I did not change any battery in the device. The only difference is the swversion attribute which is now being send by the API. I made a backup recently and also rest the gateway

  • March 2019 - I dont know which Firmware was installed back than
  • Firmware as of now, installed in May 2019:
'fwversion': '0x26330500',
 'swupdate2': {'autoinstall': {'on': False, 'updatetime': ''},
  'bridge': {'lastinstall': '2019-05-24T12:27:10',
   'state': 'allreadytoinstall'}
  • REST Response - Battery = 100% TODAY
{'config': {'battery': 100, 'on': True, 'reachable': True},
'manufacturername': 'LUMI',
'modelid': 'lumi.weather',
'name': 'Temperature Sensor Aqara',
'state': {'lastupdated': '2019-08-01T16:51:52', 'pressure': 997},
'swversion': '20161129',
'type': 'ZHAPressure'}
  • REST Response - Battery = 100% March 2019
{'config': {'battery': 91, 'on': True, 'reachable': True},
  'manufacturername': 'LUMI',
  'modelid': 'lumi.weather',
  'name': 'Temperature Sensor Aqara',
  'state': {'lastupdated': '2019-03-10T22:00:10', 'pressure': 998},
  'type': 'ZHAPressure'}

Thanks:)

@enr0c enr0c changed the title Battery values virtually recharged up to 100% (after resetting gateway) Battery values virtually recharged up to 100% (after resetting gateway or software update maybe?) Aug 1, 2019
@ebaauw
Copy link
Collaborator

ebaauw commented Aug 1, 2019

i was wondering how the battery status for an Xiaomi Multisensor is being retrieved

Not. Xiaomi sensors don’t support querying the battery.

The sensor sends an hourly special report that includes the battery voltage. After starting deCONZ it might take a couple of hours, before the default value of 100% is updated.

The REST API plugin translates the battery voltage to a percentage. Technically, this doesn’t reflect the battery capacity - button cell batteries report a high / normal voltage for a very long time, and then voltage drops quickly when the battery is almost depleted. It’s not uncommon for sensors to report 100% for over a year of usage.

@enr0c
Copy link
Author

enr0c commented Aug 1, 2019

Thank you for the explanation, helped a lot!

The sensor sends an hourly special report that includes the battery voltage. After starting deCONZ it might take a couple of hours, before the default value of 100% is updated.

I will wait for a couple of hours and close the issue!

@stale
Copy link

stale bot commented Nov 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 29, 2019
@stale stale bot closed this as completed Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants