Home Assistant 2026.4 release (currently in Beta) added a Matter lock user and credential management services feature which allows you to manage your lock users and PIN codes directly from within the Home Assistant UI if you have have a Matter-compatible smart lock. This change adds the ability to manage Matter lock codes from within Home Assistant via the new "Manage Lock" menu added to Home Assistant's frontend (UI):
Would it be a good or bad idea to take inspiration from this feature and try to reimplement or match the required functionality specifically for for Zigbee devices used via Home Assistant's ZHA integration component to help Zigbee users gain similar user-experience? Could and should this be achieved after adding any/all missing functions depending on the zha or zigpy libraries?
That is, enable ZHA user code management for Zigbee locks via commands and allow users to use a Zigbee lock manager in UI:
-
https://www.home-assistant.io/blog/2026/04/01/release-20264/#matter-lock-manager
-
On the device page of your Matter lock, you’ll find a new "Manage lock" option. It opens a dialog where you can see all configured users, add new ones, edit existing ones, or remove them. When adding a new user, you give them a name, set a PIN code, and choose an access type: full access (can lock and unlock anytime) or one-time access (the code works once and is then automatically deleted by the lock).
-
Under the hood, this is powered by a new set of Matter lock actions that are also available for use in your automations and scripts. You can, for example, create a one-time PIN code for a guest and send it in a notification, all from an automation! The available actions include creating and removing users, setting and clearing credentials (like PIN codes and RFID tags), and querying the lock’s capabilities.
This awesome contribution to Home Assistant's Matter inteation was initiated by @Ahbrown41. See related frontend and backend pull reqeusts:
This concept initially started as a discussion about PIN management for Matter Door Locks under the feature requests discussion section here:
this is plumbing work to allow other things to build on top of it. I had a fully working backend with an API, actions and events along with a fully functioning UI, I was asked to strip out all extra stuff which I did and so this is now completely bare bones. I can do more, I could come up with an abstraction layer but it would sit on these bones anyway.
All I want is Matter pin/user management so I do not have to use another tool, it has been years that I have been waiting for native not external support for pin/user mangement so I took it on myself to do it. The UI I had was comprehensive and tested and clould use single user, scheduled and perminant users.
I can do changes to the global lock object but it is very unlikely this PR would get approved with that change from what I see
I agree it will probably be a tougher sell to make changes to the core Lock object model, but I wanted to note it down to memorialize.
I was also tired of waiting for native pin management and provided a scripted approach https://github.com/orgs/home-assistant/discussions/551#discussioncomment-15471048 to the community a few weeks ago, completely unaware of this epic and work.
PS: I understand that that initial Matter lock manager "only" adds some parts of underlying work that is needed to enable other enhanced lock management features s to build on top of this to allow usercode management of doorlocks (i.e. managing user permissions for locks and PIN-usercodes). However I still think that implementing this bacis functionality for Zigbee lock credentials and lock PIN-codes in ZHA for Home Assistant could direcctly determine or have indirect influence on future architecture that at least the extended and more advanced cross-platform concepts and principles discussed in this related architecture discussion:
Note! Also see related roadmap discussion which raised by mkerstner which discusses longterm benefits of having a unified code management system(s) and a shared credential UI for all integrations (i.e. a cross-platform and protocol-agnostic global foundation that suits a range of protocols) that includes codes for both locks and alarm control panels:
and the related epic tracker for protocol-agnostic credential management:
By the way, if implementated for Zigbee locks then perhaps same or similar solution could also be done for alarm control panel?
Home Assistant 2026.4 release (currently in Beta) added a Matter lock user and credential management services feature which allows you to manage your lock users and PIN codes directly from within the Home Assistant UI if you have have a Matter-compatible smart lock. This change adds the ability to manage Matter lock codes from within Home Assistant via the new "Manage Lock" menu added to Home Assistant's frontend (UI):
Would it be a good or bad idea to take inspiration from this feature and try to reimplement or match the required functionality specifically for for Zigbee devices used via Home Assistant's ZHA integration component to help Zigbee users gain similar user-experience? Could and should this be achieved after adding any/all missing functions depending on the zha or zigpy libraries?
That is, enable ZHA user code management for Zigbee locks via commands and allow users to use a Zigbee lock manager in UI:
https://www.home-assistant.io/blog/2026/04/01/release-20264/#matter-lock-manager
On the device page of your Matter lock, you’ll find a new "Manage lock" option. It opens a dialog where you can see all configured users, add new ones, edit existing ones, or remove them. When adding a new user, you give them a name, set a PIN code, and choose an access type: full access (can lock and unlock anytime) or one-time access (the code works once and is then automatically deleted by the lock).
Under the hood, this is powered by a new set of Matter lock actions that are also available for use in your automations and scripts. You can, for example, create a one-time PIN code for a guest and send it in a notification, all from an automation! The available actions include creating and removing users, setting and clearing credentials (like PIN codes and RFID tags), and querying the lock’s capabilities.
This awesome contribution to Home Assistant's Matter inteation was initiated by @Ahbrown41. See related frontend and backend pull reqeusts:
Add Matter lock user and credential management services home-assistant/core#161936
The new capability supports the adding and removing of both permanent and single use users for now (Scheduling etc can come later). This new ability builds on recent changes to the backend dev branch that implement the backend matter functionality for managing lock codes etc.
Matter lock manager home-assistant/frontend#28672
Adds 7 entity services for Matter lock user and credential management, aligned with the Matter DoorLock cluster specification (Application Cluster Spec, Chapter 5.2). These services expose the DoorLock cluster's user and credential commands as Home Assistant actions, accessible from automations, scripts, and Developer Tools.
This concept initially started as a discussion about PIN management for Matter Door Locks under the feature requests discussion section here:
PS: I understand that that initial Matter lock manager "only" adds some parts of underlying work that is needed to enable other enhanced lock management features s to build on top of this to allow usercode management of doorlocks (i.e. managing user permissions for locks and PIN-usercodes). However I still think that implementing this bacis functionality for Zigbee lock credentials and lock PIN-codes in ZHA for Home Assistant could direcctly determine or have indirect influence on future architecture that at least the extended and more advanced cross-platform concepts and principles discussed in this related architecture discussion:
Note! Also see related roadmap discussion which raised by mkerstner which discusses longterm benefits of having a unified code management system(s) and a shared credential UI for all integrations (i.e. a cross-platform and protocol-agnostic global foundation that suits a range of protocols) that includes codes for both locks and alarm control panels:
and the related epic tracker for protocol-agnostic credential management:
By the way, if implementated for Zigbee locks then perhaps same or similar solution could also be done for alarm control panel?