# ZWave Lock - How To Approach UI for User Code Management

**URL:** <https://community.homey.app/t/zwave-lock-how-to-approach-ui-for-user-code-management/99316>\
**Category:** Developers\
**Tags:** app, z-wave, homey-pro\
**Created:** [December 29, 2023, 3:32pm UTC](https://community.homey.app/t/zwave-lock-how-to-approach-ui-for-user-code-management/99316 "2023-12-29T15:32:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aseveli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aseveli/32/81990_2.png) [@Aseveli](https://community.homey.app/u/Aseveli)\
**Post date:** [December 29, 2023, 3:32pm UTC](https://community.homey.app/t/zwave-lock-how-to-approach-ui-for-user-code-management/99316/1 "2023-12-29T15:32:07Z")

</div>

I am writing an app for a ZWave Lock device that has like 20 slots for user codes.

These codes can be set through ZWave calls to the device, I am just wondering if anyone has any advice on how to expose this through the user interface?

Ideally I’d like a user to be able to select a slot and then enter a name and a code, which would then when saved set the code for the appropriate slot. I was thinking I could save the name and slot number in persistant storage to maybe later on be able to tell when the lock was unlocked by a specific slot.

Any ideas or directions to documentation that would be helpful for working with the user interface within Homey would be greatly appreciated.
