nfarina / homebridge-lockitron

Lockitron support for Homebridge: https://github.com/nfarina/homebridge
8 stars 7 forks source link

Error that batteries are low when they aren't #7

Open reedog117 opened 7 years ago

reedog117 commented 7 years ago

I'm using the homebridge-lockitron plugin with a Lockitron Bolt. I've noticed these errors in the homebridge logs, even though the commands seem to complete.

homebridge_1  | [3/27/2017, 7:09:43 PM] [Front Door] Error 'null' setting lock state. Response: {"status":"error","message":"This comman
d failed and the batteries on this Lockitron are reported as low."}

The weird thing is that my Bolt seems to be working fine, with battery status reported as ~72%. From the API:

{"id":"xxx I removed my UUID from here xxx","name":"Front door lock","next_wake":null,"last_heard_from":null,"state":"unlock","button_type":"slider","updated_at":"2017-03-27T19:07:15Z","handedness":"locked","battery_voltage":"unsupported","battery_percentage":72,"model_name":"Bolt","application_fw_version":1461012547,"avr_version":"unsupported","sleep_period":null,"avr_update_progress":null,"ble_update_progress":null,"update_me":"false","serial_number":"xxx serial number removed xxx","hardware_id":"xxx hwid removed","connected":true,"pin_code_enabled":false,"time_zone":"America/New_York","keys":[ (structure removed - probably not needed to troubleshoot)],"sms":false}
nfarina commented 7 years ago

That is weird! Unfortunately I don't have a Bolt anymore so can't diagnose. If you figure it out I would welcome a PR!

reedog117 commented 7 years ago

I X-posted this issue on the Lockitron community forums here -- hopefully they'll have some insight if it's a problem on their end. http://community.lockitron.com/t/api-incorrectly-reporting-lock-as-having-low-battery/2559