# Hello Door Lock Code

**URL:** <https://community.smartthings.com/t/hello-door-lock-code/15163>\
**Category:** Community Created SmartApps\
**Created:** [April 16, 2015, 8:32pm UTC](https://community.smartthings.com/t/hello-door-lock-code/15163 "2015-04-16T20:32:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eparkerjr](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eparkerjr](https://community.smartthings.com/u/eparkerjr)\
**Post date:** [April 16, 2015, 8:32pm UTC](https://community.smartthings.com/t/hello-door-lock-code/15163/1 "2015-04-16T20:32:50Z")

</div>

I made this mainly so that I could have the system change to visitor mode when guests who have a code come over and also notify you what code was used. It will either change the mode or run a Hello Home action depending on what user code is entered. Hoping to get to try this out with a Sonos system soon. This contains the functionality from my “Door Lock Code Distress Message” so it can be used for the same purpose also but you can have it perform an action also with this code.

[https://github.com/skp19/st\_hello\_door\_lock\_code/](https://github.com/skp19/st_hello_door_lock_code/)

* * *

If you find this app useful, please support the developer:  
[![](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CR2XFK4D45QNW)

---

<div class="post-metadata">

**Author:** ![swamplynx](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@swamplynx](https://community.smartthings.com/u/swamplynx)\
**Post date:** [April 17, 2015, 4:36am UTC](https://community.smartthings.com/t/hello-door-lock-code/15163/2 "2015-04-17T04:36:38Z")

</div>

Sweet. Looks great! So just to clarify, the “Enter User Code Number” is the slot number the code in question occupies in the lock, right?

---

<div class="post-metadata">

**Author:** ![eparkerjr](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eparkerjr](https://community.smartthings.com/u/eparkerjr)\
**Post date:** [April 17, 2015, 6:25am UTC](https://community.smartthings.com/t/hello-door-lock-code/15163/3 "2015-04-17T06:25:52Z")

</div>

@swamplynx Correct. You can use the discovery mode to find which slot a code is using.

---

<div class="post-metadata">

**Author:** ![thrash99er](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@thrash99er](https://community.smartthings.com/u/thrash99er)\
**Post date:** [April 18, 2015, 5:16am UTC](https://community.smartthings.com/t/hello-door-lock-code/15163/4 "2015-04-18T05:16:51Z")

</div>

@eparkerjr I was trying to use this but when i go to install it, it doesn’t have a Done button to finish the install, it just has the uninstall button at the bottom?

Any ideas?

---

<div class="post-metadata">

**Author:** ![eparkerjr](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eparkerjr](https://community.smartthings.com/u/eparkerjr)\
**Post date:** [April 18, 2015, 5:35am UTC](https://community.smartthings.com/t/hello-door-lock-code/15163/5 "2015-04-18T05:35:52Z")

</div>

@thrash99er I’m assuming you’re on an iPhone. I just tested on an iPhone and it looks like there’s an issue with the dynamic fields. I wont have time to fix it till Sunday. If you want to get it working yourself before I can get to it, just remove the if statements around the input fields.

---

<div class="post-metadata">

**Author:** ![eparkerjr](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eparkerjr](https://community.smartthings.com/u/eparkerjr)\
**Post date:** [April 20, 2015, 6:49pm UTC](https://community.smartthings.com/t/hello-door-lock-code/15163/6 "2015-04-20T18:49:18Z")

</div>

I disabled the dynamic fields for now and fixed the “Done” button not showing. Updated code is on GitHub.

@thrash99er
