lock-manager icon indicating copy to clipboard operation
lock-manager copied to clipboard

App disables users access randomly

Open edin2met opened this issue 5 years ago • 3 comments

I have several Schlage locks and some of my family members get disabled randomly for some locks. This might be just a display issue within the app, and happens very, very often. My app is up to date with the latest master version.

That is what the app is showing (disabled red sign), even though they have not accessed that lock in days, but they do have access to those locks. The error message is: "Entries: 0 // ERROR//DISABLED".

After I go to the lock and click on "Reset User" or "Reset Lock", then the things get fixed in the app. Unfortunately, I have to do this for all 5 users and 4 locks - 20 times. And the issue happens every 2-3 days.

edin2met avatar Mar 19 '19 13:03 edin2met

The more detail error message: "The user has been disabled. Reason: Controller failed to set user code."

edin2met avatar Mar 19 '19 13:03 edin2met

I'm guessing, this issue might be due to the inactivity. There is a bug in the app that somehow disables the users that have not used the lock in a while. Again, just a display issue in the app, it does not actually disables their access to the lock, just incorrectly displays the status in the app.

edin2met avatar Mar 19 '19 13:03 edin2met

Having the same issue. I tried to troubleshoot it but I'm not 100% sure of the handoff between Lock, Lock User, and the Device handler. Using the debugger, it appears that it happens when the device periodically polls, and in the lock app, pollCodeReport receives blank data in code slots, sets them to null, then runs setCodes(), which changes the correct codes in the lock to empty.

I can't figure out why though, still trouble shooting. If I figure it out, I'll update. In the meantime, I commented out the setCodes() in line 345 of the lock app, which seems to prevent updating correct codes to null in my lock.

davehughes3 avatar Mar 19 '19 19:03 davehughes3