-
Notifications
You must be signed in to change notification settings - Fork 484
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
Improve ZHADoorlock device #4876
Conversation
For Pin management I m using state/pin and not config/pin, because the work need to be done by the third app, there is no "get all pin" command, and thoses kind of device realy don't like request spamming. Can use GET and DELETE with Can use PUT with When a new ID is detected, it will be added in state/pin, but you can delete them even it is not in the Json. The Json don't contain the full id list.
|
Cool, I like that the door lock code moved into a separate file. I'm going to get a Yalelock for testing myself. For the PIN security we still need to find a way which works for all clients, I guess it would be good to create a dedicated issue for that and get discussion and ideas how to approach this. |
@manup did you end up getting a yale lock for testing? |
@Smanar this looks very promising. Is there anything I could help with? I have an ID Lock 150 where I would like to use the set/get pin functionality and maybe 'Door opened by user x' or whatever it may be. |
If I m right the "ID Lock 150" is alreadu in the code ? |
Ahh, sorry, I might have been somewhat unclear. As far as I understand, this PR improves the generic ZHADoorlock basis that all Zigbee locks could use as a representation of the component. ZHADoorlock is then the object which is serialized into JSON when you GET /api//[sensor|light]/, correct? It seems to me that this PR adds at least the ability to read out both 'locked/unlocked' and 'open, closed, jammed', which the last of I can't get through the REST API today. Since my lock has the correct cluster and state fields (0x0101 -> 0x000 - 0x0003), I was simply thinking I could test, or otherwise look through the locks implementation in Zigbee2Mqtt to maybe get some implementation hints towards other useful and generic functionality. |
ZHAdoorlock is already in the code, but yes, the actual version miss some feature like the state/doorstate or the state/notification. |
Small update: I got a Danalock V3 now for testing and will review and test the code after the next stable release. |
Are there any plans to implement pin code management possibilities on the Yale lock keypads (and others too I imagine)? I have a customer who would like to implement the zigbee version of Yale lock as the responbse seems to be a lot better then zwave versions. But he needs user (pin) management to have its tracks correct? Wim |
Really would like to have PIN management through the REST api. I have a cleaner coming by every second week and want to create a one time pin automatically for him in the morning of the day. Is there anything I can do to help this PR to go through? |
Any updates on progress on this PR? Would really love to have the pin management. |
This code: