# Do something if lock is locked with code

**URL:** <https://community.smartthings.com/t/do-something-if-lock-is-locked-with-code/79129>\
**Category:** webCoRE\
**Created:** [February 24, 2017, 8:59pm UTC](https://community.smartthings.com/t/do-something-if-lock-is-locked-with-code/79129 "2017-02-24T20:59:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jhamstead](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jhamstead/32/38969_2.png) [@jhamstead](https://community.smartthings.com/u/jhamstead)\
**Post date:** [February 24, 2017, 9:03pm UTC](https://community.smartthings.com/t/do-something-if-lock-is-locked-with-code/79129/2 "2017-02-24T21:03:39Z")

</div>

You will need to use a custom DTH and SmartApp. One that will work for you can be found here:

> [@\[OBSOLETE\] Lock Manager](https://community.smartthings.com/t/lock-manager-beta/63022):
>
> Lock Manager Incomplete List of features: Manage user codes on locks. Manage Keypads. Review and manage active lock codes. Set lock access based on schedules. Receive notifications when a user used their code. Run Hello Home phrases based on lock/unlock events. Manage Hello Home phrases based on keypad inputs. This app works using 3 child apps and 1 parent app. It is recommended that you install all 4 apps, however if you do not use keypad devices, it is not required to install the keypad child app. Note: If upgrading from any beta version, it is required to uninstall the app completely before installing. The architecture of this app has changed in a way that is incompatible with previous versions. How To Install User guide has old information. There is now only one app to insta…

@RBoy also has a highly rated lock manager and DTH from his site.

---

_[View the full topic](https://community.smartthings.com/t/do-something-if-lock-is-locked-with-code/79129)._
