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

Last Code entered on keypad? #76

Closed
FlexerJR opened this issue Jul 16, 2020 · 13 comments
Closed

Last Code entered on keypad? #76

FlexerJR opened this issue Jul 16, 2020 · 13 comments
Labels
discussion Discussion necessary stale No recent activity and subject to be closed

Comments

@FlexerJR
Copy link

Hi Dev, thanks for your work with Nuki!

I have a question. Is it possible to extract the last code entered on the keypad in one datapoint?

Thanks ;)

@Zefau
Copy link
Collaborator

Zefau commented Jul 16, 2020

short answer: I don't think so.

long answer: I don't own a keypad myself. As I was reading in the documentation online, Nuki handles a keypad like a user. This generally means you can synchronize the users via Web API.
Though, this only provides the following information:
image

@Zefau Zefau added the discussion Discussion necessary label Jul 16, 2020
@FlexerJR
Copy link
Author

Ok thanks for that quick reply. I'm just trying to figure out, which was the last code, fob or person opening the door.
I think there are two ways. Monitoring of the number of valid entries Datapoint lockcount. If the number is rising the user must be the last, or by parsing the history log...

@Zefau
Copy link
Collaborator

Zefau commented Jul 16, 2020

What about datelastActive ?

@FlexerJR
Copy link
Author

Well, was my second try but the states are not updating on time. I'm pressing the fob for example and there is no update on the state. The only state with an update on time is the log history and the states of the Smartlock itself. Some weird behavior.

@FlexerJR
Copy link
Author

Hi Zefau, I‘m still fighting with the adapter. There are several settings for updating the state. I would love to get all datapoints updated in a set interval?

Best regards

@Zefau
Copy link
Collaborator

Zefau commented Jul 23, 2020

What's your exact problem? The lockState is updated by the callback (in case it has been set correctly) via Bridge API. Most of the other states are updated by the poll interval via Web API.

@Zefau
Copy link
Collaborator

Zefau commented Jul 23, 2020

Please also note #59 (comment)
Smartphone changes are sometimes not synchronized to the Nuki servers, which means that ioBroker states the wrong values.
Try to change directly on Nuki Web.

@Zefau
Copy link
Collaborator

Zefau commented Jul 28, 2020

@FlexerJR Do you have any news or more specific details on this?

@FlexerJR
Copy link
Author

FlexerJR commented Jul 29, 2020

I‘m just on business travel. Can tell you more when I‘m back home.

@FlexerJR
Copy link
Author

FlexerJR commented Aug 1, 2020

Hi Zefau, I'm back again. Ok first of all thanks for your hard work on this adapter.

I tried to figure out a solution but I'm out of ideas.
My idea was to get information of which user is taking which action in the system.
I'm parsing the log. I found out that
action 1 is unlocking
action 2 is locking
action 3 is opening the door.

The name of the user is behind name:"User"

This approach is good and working BUT the History isn't updating on time and skipping actions.
I'm opening by hand --> Log is changing --> Trigger works
I'm closing by hand --> Log is changing --> Trigger works
I'm opening by hand --> Log is changing --> Trigger works
But after some time the log isn't changing or updating even if I open by Keypad or something.
After this works for 3-4 times and after that the log is skipping a action in the system.

I don't know if this is connected to the other issue you mentioned above.

Here a screenshot of the blocky
Bildschirmfoto 2020-08-01 um 22 19 34

If I open the door by lets say a fob and I try to take this user as trigger it isn't working. The states under users are not updating on time as well.

Best regards...

@Zefau
Copy link
Collaborator

Zefau commented Aug 26, 2020

@FlexerJR any news on this? how do we proceed?

@Zefau Zefau added the stale No recent activity and subject to be closed label Aug 26, 2020
@FlexerJR
Copy link
Author

FlexerJR commented Aug 28, 2020

Well my script is working but sometimes the actual state of nuki is not in sync with the log. That means if a code is opening the door via the keypad i get the correct message and on an other day the message is skiped.

I have now idea how to fix it because i think its a problem with the nuki server.

Do you have any ideas?

@mcm1957
Copy link
Member

mcm1957 commented Jun 26, 2023

I'll close here as this discussion seems to be outdated.

@mcm1957 mcm1957 closed this as completed Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion necessary stale No recent activity and subject to be closed
Projects
None yet
Development

No branches or pull requests

3 participants