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

Lock'n'go not recognized when initial state is 'closed' #35

Open
mundschenk-at opened this issue Sep 14, 2022 · 18 comments · Fixed by #365
Open

Lock'n'go not recognized when initial state is 'closed' #35

mundschenk-at opened this issue Sep 14, 2022 · 18 comments · Fixed by #365

Comments

@mundschenk-at
Copy link
Collaborator

After some further testing it looks like the lock'n'go state change is not recognized anymore, at least not reliably. I monitored the MQTT messages and it appears that lock'n'go did not update nuki/lock/state (and consequently also not nuki/lock/binaryState for HA).

@technyon
Copy link
Owner

I tested it, it worked so far. It changed from unlocked to unlockedLnga to locked. How did you trigger the lock'n'go?

@mundschenk-at
Copy link
Collaborator Author

mundschenk-at commented Sep 14, 2022

Double click on the button. Note: The door was locked initially.

@mundschenk-at
Copy link
Collaborator Author

I've done some additional tests. The results a reproducible for me:

Initial stateState change recorded
openyes
closedno

So the issue might be that the initial opening is not recognized and then of course for the closing, there is no state change when lock was closed before initiating lock'n'go.

@mundschenk-at mundschenk-at changed the title Lock'n'go not recognized anymore Lock'n'go not recognized when initial state is 'closed' Sep 15, 2022
@technyon
Copy link
Owner

ok I'll check it when I have time

@mundschenk-at
Copy link
Collaborator Author

This morning, the state change was recorded even starting from locked (real-world usage). A few test runs now show the same result as yesterday. It looks like there might be some sort of race condition regarding the initial state change of the unlock/lock sequence triggered by lock'n'go.

@technyon
Copy link
Owner

Can you try setting the energy-saving mode to fast?

Explanation: To notify a state change, the lock sends iBeacons. When setting it to fast, beacons are sent in shorter intervals, so detecting a state change is faster (and also more likely in case a beacon is missed). This of course drains the battery faster, which is the reason why it's listed as energy-saving mode.

@mundschenk-at
Copy link
Collaborator Author

The setting didn't make any difference. (It was set to "auto", I changed it to the fastest available, but the results didn't change.)

@technyon
Copy link
Owner

I could reproduce the behavior. It's strange though it seems the lock signals the state change after it returns to the locked position, not for the execution of lock'n'go. It's odd because states like unlatching and unlatched are signalled although they are quite short. I'm not sure if this is intentional or a firmware bug.

@mundschenk-at
Copy link
Collaborator Author

Any way to create a workaround for this? I'd write a support ticket with Nuki, but I couldn't document the BLE API details for them.

@technyon
Copy link
Owner

technyon commented Oct 9, 2022

I'll ask in the NUKI developer forum.

@mundschenk-at
Copy link
Collaborator Author

I'll ask in the NUKI developer forum.

Did you get around to this?

@technyon
Copy link
Owner

technyon commented Nov 8, 2023

@iranl
Copy link
Collaborator

iranl commented May 17, 2024

Workaround in #365.
This will report lockngo_state in lock/json.
This will be a value > 0 in seconds while Lock N Go is active.

@zanna-37
Copy link

zanna-37 commented Jun 1, 2024

Workaround in #365. This will report lockngo_state in lock/json. This will be a value > 0 in seconds while Lock N Go is active.

@iranl does this work for you even when double pressing the button (LockNGo via button)?
Because in my tests this only works when sending the LockNGo action via software.
When using the button, the lock only sends an update after it is locked again, thus not showing the state change.

@iranl
Copy link
Collaborator

iranl commented Jun 4, 2024

@zanna-37: Have not tested it that way. But if it is not picked up in lock/json you should be able to detect it using the auth log.

@mundschenk-at
Copy link
Collaborator Author

I am reopening since this is the original issue.

@mundschenk-at mundschenk-at reopened this Jun 4, 2024
@iranl
Copy link
Collaborator

iranl commented Jun 4, 2024

It is unfortunate that this still does not work as hoped/wanted, but I don't think there is anything more we can do about it.

Nuki Hub can only react on information the Nuki lock sends.
If the lock does not signal a signal change until after the action is completed, Nuki Hub can't know about it and can only publish it to log afterwards.

@technyon has tried to get a reaction from Nuki about this, but I don't expect them to come up with a response after 6 months of silence.

Every part of the keyturner state and auth log from the API is now implemented (some still open in #389). LockNGo does seem to be signaled better in the official MQTT implemantion so the new Hybrid mode (in #389) might help for users with a 3.0 Pro or 4.0 (Pro), but thats about all I can think of at this time.

We can label this as "unfixable", but I don't see much reason for keeping this issue open.

@zanna-37
Copy link

zanna-37 commented Jun 7, 2024

I see, and I agree with you. Sorry if I bothered you. I thought I might have done something wrong in my setup, but that's not the case. The issue can't be fixed on our end and can only be mitigated by reading the log. Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants