-
Notifications
You must be signed in to change notification settings - Fork 37
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
False positives in reported critical battery states #263
Comments
Hi, The battery percentage/critical information is actually sent in the lock state request (lockStInterval) ... so it should correct itself either after the timeout of one hour, or if you execute some lock action. Why this would be incorrectly reported I can only guess. Bluetooth should have enough checks to prevent corrrupt data to be received. So either the lock sends the wrong data sometimes, or it gets corrupted after receiving it .... both very hard for me to reproduce. Other than this everything works fine? |
Yes. Very stable, no issues. What about debug options to check if it's actually sent from the lock itself? |
This firmware will the relevant fields to serial and/or mqtt. To decode, check the API documentation: https://developer.nuki.io/page/nuki-smart-lock-api-2/2#heading--keyturner-states Fields "Critical Battery state" and "Accessory Battery State". |
Unfortunately I have no good explanation. NUKI Hub just forwards to MQTT whatever battery level/state the lock sends. It would be interesting to know what level the App would report at the same time, but that's gound to be quite hard to catch. |
@technyon Makes sense. I will try to catch this information next time it happens. I was scared because I thought the battery wouldn't last a month! :D |
@cagnulein Were you able to investigate the issue further? |
@technyon didn't have issue again after that |
ok, I'll close for now then. Should the issue come up again, let me know. |
If a level above 100% is reported, this must be a fluke in the Nuki firmware. There are 6 bits representing the battery level, you multiply the value by 2 and that's the level. Sure it could be filtered. |
Strange behavior, seen this a few times (every few weeks roughly) already, today I took the time to have a look at it:
binary_sensor.lock_door_a_battery_low
became active, so did thebinary_sensor.lock_door_a_keypad_battery_low
entity:Please note this is the lock battery entity (the keypad has none according to #257) which is obviously NOT critical:
I also checked the lock and Keypad battery state with the Nuki iOS app immediately (roughly 16:53):
I'm wondering
Of course it can be the lock and or Keypad (at the same time? hmm...) itself, but as I checked the iOS app immediately and everything was looking fine there...
My theory is: lock and/or keypad were sending rubbish for a very short time. NH of course catched it. Exactly one hour later the correct state has been read by NH from the lock and transfered via MQTT to HA again. Does that make sense and match these NH settings?
The text was updated successfully, but these errors were encountered: