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

Get the door lock state #229

Open
macnam216 opened this issue Nov 26, 2024 · 2 comments
Open

Get the door lock state #229

macnam216 opened this issue Nov 26, 2024 · 2 comments

Comments

@macnam216
Copy link

Im' new to pyzk and i use unlock() function to open my zkteco door. I want to get the door lock state before i call the unlock function and i use the get_lock_state() function to do it. But every time i call, the get_lock_state() function allways return True regardless of whether the door is open or closed. Is there anyway i can get the door lock state by using pyzk ?

@kurenai-ryu
Copy link
Collaborator

could you show us how you wired the door sensor?

@macnam216
Copy link
Author

macnam216 commented Nov 28, 2024

could you show us how you wired the door sensor?

My device is Zkteco F18 and it has been pre-installed so i cant see the door sensor. Im just try to write code to open it and i send many open commands to my device ( both when the door is closed and when it is open). However, it seems that these commands are not executed immediately but are queued. Then, when the door closes, it starts opening and closing repeatedly, I want to fix this situation.

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

No branches or pull requests

2 participants