kormax / apple-home-key-reader

Apple Home Key Reader Implementation
Apache License 2.0
470 stars 32 forks source link

lock status info after restart #15

Closed kuroio closed 5 months ago

kuroio commented 5 months ago

Hi first of all congratulations for the project, it works great, my question is when the program is interrupted obviously on HomeKit the lock goes to no response, and this is normal, the problem arises when the program is restarted because the lock status goes to unlocked , in this way having done an automation with my real lock (Nuki) the automation opens the door for me and this is a problem, can the NFC lock start on closed when the program starts? Thank you for the time you dedicate to the project

kormax commented 5 months ago

Hello.

Initially I didn't intend this project to be used "in the field", thus the reason why simple things like this were not done.

Nevertheless, considering that many people seem to rely on this code, I'm open to requests like this.

My proposed solution is to add a "default state" option into the JSON. With "locked" being default or if not given.

kuroio commented 5 months ago

thanks that would be perfect

kormax commented 5 months ago

4245459 adds the requested configuration capability

kuroio commented 5 months ago

thank you very much I will install it soon

kuroio commented 5 months ago

Hi Kormax, I tried the fixes, now the lock starts from a closed state after restarting the program, thank you so much for helping me, bye