VladStar
(Vladislav Staroselskiy)
September 9, 2020, 4:19pm
1
component/zha/lock.py code is missing 3 important services for the user code management on Zigbee locks, similar to implemented in component/zwave/lock.py
SERVICE_SET_USERCODE = "set_usercode"
SERVICE_GET_USERCODE = "get_usercode"
SERVICE_CLEAR_USERCODE = "clear_usercode"
Please, add.
References:
This! And if we could also find a way to receive the code ID fo who unlocked the door, that would be another plus.
4 Likes
VladStar
(Vladislav Staroselskiy)
September 11, 2020, 2:51pm
3
@Maxi1134 Well, at least having those functions we can write some wrappers, like described here:
Hereâs another way to show the changes made at the lock and it shows the âtrueâ method used to close or open instead of the previous method which shows âmanualâ for some that were actually keypad presses. The only potential drawback so far Iâve seen with this is that some of the changes are lengthy, so it will wrap lines in the card.
- platform: template
sensors:
yale_lock_status:
entity_id: lock.assa_abloy_unknown_type0004_idaa00_locked
value_template: >-
âŚ
cdevl
September 29, 2020, 2:08am
4
This would be very useful. It would also be nice if there was a way to use the same codes on more than one lock automatically after setting it up for one lock.
1 Like
inishchith
(Nishchith Shetty)
October 5, 2020, 9:38am
5
@VladStar Any new findings thus far?
cdevl
October 10, 2020, 7:34pm
6
I was able to use the zigbee cluster commands to set a code and (sort of) get a pin code:
I am trying to figure out a way to set and get user codes for Schlage locks.
I am using the Conbee II in ZHA.
From what I can tell, this feature may not be directly available in ZHA, as there is a feature request for user codes:
And there appears to be no code in the associated code:
I was playing around with âManage Clustersâ in the âDevicesâ tab for the lock, and I can find Cluster Commands to send and get lock codes in the Cluster
DoorLock (Endpoint id: 1, Id: 0x0101, Type: in)
FâŚ
not sure if this will help at all thoughâŚ
2 Likes
VladStar
(Vladislav Staroselskiy)
October 11, 2020, 12:45pm
7
@inishchith sorry, it doesnât depend on me, but rather on HA Developers to pick this feature request up
1 Like
flyize
January 2, 2021, 7:46pm
8
I donât understand the lack of love for Zigbee locks.
2 Likes
Same here. Seems like an obvious addition to me. Maybe itâs more complicated than meets the eye. The team has been consistently adding features to the ZHA integration so letâs hope itâs at least on their todo list.
4 Likes
VladStar
(Vladislav Staroselskiy)
February 27, 2021, 8:40pm
10
@stephack agree, even Z-wave JS integration has them from the very beginning
flyize
February 27, 2021, 9:54pm
11
My Zigbee lock is essentially the last thing that I have connected to SmartThings so that I can manage it. What I wouldnât do to learn python well enough to make all this happen.
vilord
(Jesse Campbell)
March 1, 2021, 3:10am
12
Hmmmm⌠What could this be?
home-assistant:dev
â jcam:zha_lock_codes
opened 02:55AM - 01 Mar 21 UTC
9 Likes
VladStar
(Vladislav Staroselskiy)
March 1, 2021, 10:31pm
13
@vilord wow, thanks man! looks like we have to prepare some beer for ya
vilord
(Jesse Campbell)
April 7, 2021, 9:01pm
14
So, this should now be present in 2021.4.0 I havenât tried the release build yet (or even the betas), but at least it worked before that!
4 Likes
cdn4lf
(Cdn4lf)
April 8, 2021, 5:30pm
15
Confirm. Works like a charm in the release build.
Now we need a ZHA lock manager add-on
2 Likes
flyize
April 14, 2021, 2:32pm
16
This is so exciting. Thank you @vilord !
edit: Where do I find the documentation for how to use this manually, until it gets integrated into Keymaster?
vilord
(Jesse Campbell)
April 14, 2021, 2:49pm
17
I added documentation here:
2 Likes
flyize
April 14, 2021, 2:50pm
18
Got it. Is there something like a view_lock_codes?
vilord
(Jesse Campbell)
April 14, 2021, 3:16pm
19
Services do not support return values, so no there is not.
Support is built in for getting lock codes with a key manager, but I have not yet worked with the KeyManager people to get ZHA added.
1 Like
VladStar
(Vladislav Staroselskiy)
April 14, 2021, 4:23pm
20
Yay! Iâve updated my HA to the version 2021.4 yesterday and tested - indeed works great.
Many thanks to @vilord !