# Disarm/arm alarm with Schlage lock code

**URL:** <https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592>\
**Category:** Connected Things\
**Created:** [April 25, 2015, 11:39pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592 "2015-04-25T23:39:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tedescoj](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tedescoj/32/236104_2.png) [@tedescoj](https://community.smartthings.com/u/tedescoj)\
**Post date:** [April 25, 2015, 11:39pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/1 "2015-04-25T23:39:24Z")

</div>

Is there a way to change the the mode to “home” after I put my Schlage door lock code in?

---

<div class="post-metadata">

**Author:** ![davglass](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/davglass/32/15318_2.png) [@davglass](https://community.smartthings.com/u/davglass)\
**Post date:** [April 26, 2015, 1:22am UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/2 "2015-04-26T01:22:04Z")

</div>

This shouldn’t be hard at all with a SmartApp. Just select the lock, listen for the unlock event and change the mode.

---

<div class="post-metadata">

**Author:** ![tedescoj](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tedescoj/32/236104_2.png) [@tedescoj](https://community.smartthings.com/u/tedescoj)\
**Post date:** [April 26, 2015, 1:36am UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/3 "2015-04-26T01:36:09Z")

</div>

uuhhmm… I wish I knew how to do what you are saying because i could really use this option. can you explain?

---

<div class="post-metadata">

**Author:** ![kevintierney](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kevintierney/32/95651_2.png) [@kevintierney](https://community.smartthings.com/u/kevintierney)\
**Post date:** [April 26, 2015, 1:39am UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/4 "2015-04-26T01:39:02Z")

</div>

There is a shared app called Hello Door Lock Code. I have not used it, but the description is

```
Description: Changes to a specified mode or runs a Hello Home action depending on door unlock code

```

Here are some instructions on installing share smartapps in the IDE

> [@SmartApp / DeviceType :"From Code" and "From Template"](http://community.smartthings.com/t/smartapp-devicetype-from-code-and-from-template/11255):
>
> I’m loving the new “From Code” and “From Template” options when creating a new SmartApp / DeviceType. Users don’t have to be instructed to fill out bogus information and then replace the resulting code with code anymore. The new instructions are: Login at [http://graph.api.smartthings.com](http://graph.api.smartthings.com) Go to “My SmartApps” or “My DeviceTypes” and click on the “+ New SmartApp” or " + New SmartDevice" button on the right. On the “New SmartApp” or “New SmartDevice” page, Select the Tab “From Code” , Copy the xxxxx source code from GitHub and paste it into the IDE editor window. Click the “Create” button at the bottom. Click the blue “Save” button above the editor window. Click the “Publish” button next to it and select “For Me”. You have now self-published your SmartApp or SmartDevice. Open SmartThing…

---

<div class="post-metadata">

**Author:** ![tedescoj](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tedescoj/32/236104_2.png) [@tedescoj](https://community.smartthings.com/u/tedescoj)\
**Post date:** [April 26, 2015, 2:08am UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/5 "2015-04-26T02:08:16Z")

</div>

> [@kevintierney](#):
>
> Hello Door Lock Code

well that was what I wanted but unfortunately it doesn’t change the mode ☹

---

<div class="post-metadata">

**Author:** ![Sticks18](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sticks18](https://community.smartthings.com/u/Sticks18)\
**Post date:** [April 26, 2015, 10:31pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/6 "2015-04-26T22:31:54Z")

</div>

The Hello Home action can change the mode. I think it’s the last option in the Hello Home phrase set up, so you could create a new HH phrase and use this app.

---

<div class="post-metadata">

**Author:** ![kevintierney](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kevintierney/32/95651_2.png) [@kevintierney](https://community.smartthings.com/u/kevintierney)\
**Post date:** [April 26, 2015, 10:44pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/7 "2015-04-26T22:44:46Z")

</div>

Looking at the code, it looks like you could change either the mode or run a hh prase. Here’s the thread where the author posted it originally

> [@Hello Door Lock Code](http://community.smartthings.com/t/hello-door-lock-code/15163):
>
> 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: [[image]](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CR2XFK4D45QNW)

---

<div class="post-metadata">

**Author:** ![tedescoj](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tedescoj/32/236104_2.png) [@tedescoj](https://community.smartthings.com/u/tedescoj)\
**Post date:** [April 27, 2015, 5:05pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/8 "2015-04-27T17:05:57Z")

</div>

Yea, I tried that but for some reason it’s not changing the mode to home and the alarm goes off as soon as we open the doors.

---

<div class="post-metadata">

**Author:** ![tedescoj](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tedescoj/32/236104_2.png) [@tedescoj](https://community.smartthings.com/u/tedescoj)\
**Post date:** [June 2, 2015, 9:29pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/9 "2015-06-02T21:29:48Z")

</div>

Update…this is working for me now. Thanks for all your help!

---

<div class="post-metadata">

**Author:** ![caitlinalexis](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@caitlinalexis](https://community.smartthings.com/u/caitlinalexis)\
**Post date:** [July 10, 2016, 3:40am UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/10 "2016-07-10T03:40:17Z")

</div>

What was the solution for you? I am having the same issue. Thanks!

---

<div class="post-metadata">

**Author:** ![tedescoj](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tedescoj/32/236104_2.png) [@tedescoj](https://community.smartthings.com/u/tedescoj)\
**Post date:** [July 11, 2016, 2:20pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/11 "2016-07-11T14:20:30Z")

</div>

it’s no longer working. Something so simple seems to be so challenging with smarthings. I decided to look into a traditional alarm system.

---

<div class="post-metadata">

**Author:** ![Flairo](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@Flairo](https://community.smartthings.com/u/Flairo)\
**Post date:** [August 22, 2016, 12:27am UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/12 "2016-08-22T00:27:23Z")

</div>

I am looking for a way to use the keypad on my Schlage Touchpad Lock to Disarm the system, and from inside the house to use an Iris keypad to Arm the system. I can already control the alarm with the Iris keypad, but have not found anything for the Schlage that works.

---

<div class="post-metadata">

**Author:** ![AVGeek66](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@AVGeek66](https://community.smartthings.com/u/AVGeek66)\
**Post date:** [September 22, 2016, 5:58pm UTC](https://community.smartthings.com/t/disarm-arm-alarm-with-schlage-lock-code/15592/13 "2016-09-22T17:58:11Z")

</div>

I see what you were attempting I used a Motion Open/Close sensor on the Door and that can allow change of mode, Lights on or off and if you have a storm door you can put one on it with different commands.
