[RELEASE] User Unlock/Lock Door Notifications and Actions

smartapp_alerts
notify
smartapp_security
smartapp_locks
rboyapps

(www.rboyapps.com - Make your home your butler!) #1

This is on request from many users who want the functionality of managing actions and notifications when users unlock door and lock doors but with using the existing codes programmed into the lock. (i.e. no lock programming).

This is an offshoot of another app I’ve written here:

However, while this app replicates all the functionality of the app above, related to taking actions and notifications for users, it does not program the lock codes but rather uses the locks existing programmed users. This is great for folks who don’t want to expose their user codes through the ST platform (or don’t want/change the codes often) and would like to program the codes manually and then use this app to take actions when users unlock the door using those manually programmed codes.

This app app will monitor your locks and the users programmed into the lock manually and then take actions which include the following:

  1. Disarm Smart Home Monitor
  2. Execute a Routine
  3. Turn on/off switches
  4. Turn on lights if door is unlocked after dark
  5. Relock doors
  6. Retract deadbolts when doors are open
  7. Door Jam notifications
  8. Door manual lock/unlock notifications
  9. Individual user specific override actions (e.g. when a specific user unlocks unique actions, disarm, routines, switches etc, can be defined to override the global actions for all users)
  10. Monitor multiple locks simultaneously
  11. Work across multiple locks
  12. Send multiple users SMS notifications
  13. Limit actions to specific modes
  14. Run routines for external keypad lock button
    and much more…

If you have any feature requests please send it in.

While this works with the stock ST Z-Wave Device Handlers for locks, for maximum compatibility and use of certain features like Jammed notifications and External Keypad lock it is recommended to use the Universal Enhanced Z-Wave device handler.

##This app is available on the RBoy apps server (along with all the rest of the premium and free apps) http://smartthings.rboyapps.com.
Visit our Facebook page to get access to all our Premium ST Apps Server and get updates on new apps. http://www.facebook.com/RBoySTApps
If you like the Apps consider supporting our development efforts.

The latest version of these apps with udpates are available on the RBoy server.


(Enhanced) Z-Wave Schlage Touchscreen Lock
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
Yale Conexis L1 notifications
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
Do something if lock is locked with code
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
Door open sensor --> Chime/Speaker in office setting?
Smarthings/Alexa with Schlage Connect
[RELEASE] Universal Enhanced Z-Wave Lock, Schlage, Yale, Kwikset, IDLock, DanaLock, August Pro, Samsung, Locstar, KeyWe Locks and Popp Z-Wave Keypad Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features
Smart Lock Questions
Wanting to use kwickset lock as alarm keypad
[RELEASE] Universal Enhanced Z-Wave Lock, Schlage, Yale, Kwikset, IDLock, DanaLock, August Pro, Samsung, Locstar, KeyWe Locks and Popp Z-Wave Keypad Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features
Yale Conexis Lock help
[RELEASE] Universal Enhanced Z-Wave Lock, Schlage, Yale, Kwikset, IDLock, DanaLock, August Pro, Samsung, Locstar, KeyWe Locks and Popp Z-Wave Keypad Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
[DEPRECATED] - Universal ZigBee Lock DTH with Lock Codes
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
Yale lock notifications
[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration
#2

Thanks for the code, Great code, just installed it and it works without showing the code. Great program make it more secure and give me confidence in leaving this on my families phone.

There is an issue with the Custom Action per user. In my case I have 5 max users and it seems custom action is all pointed for User 5. The General Unlock action for all users is working correctly.


(www.rboyapps.com - Make your home your butler!) #3

Yes that’s because on the Android phone submitOnChange: true command is broken.
That command is what tells the SmartApp that the user has selected a different input and then uses that to re render the page with the new options.
This issue has been reported here:

Please report it to ST Support (support@smartthings.com) for them to fix it. As soon as they fix it and it works like it’s supposed to the this problem will go away.

Meanwhile it works fine on iOS.


(www.rboyapps.com - Make your home your butler!) #4

Version 2.0.1
I’ve added the option to report the slot number of the user is unknown (i.e the slot is not monitored by the App but it is used to unlock the door)


(Tolik) #5

I’m trying to get notifications on ALL types of lock/unlock. What i mean is if i use my phone to hit “unlock” i would like to be notified. Right now i’m using “Smart Home Monitor” -> “Custom” -> “Lock” monitoring. This allows for notifications of any type of unlock/lock. The issue is i get double notified when a person that is listed unlocked the door via code, I get an alert with the name and then another alert that the door was unlocked.


(www.rboyapps.com - Make your home your butler!) #6

Select the option for Manual Unlock and Manual Lock notifications on the 2nd page.


(Glen King) #7

I’ve not acquired any device handlers. My Schlage lock is already working mostly how I want it. The user codes are set in the lock itself, and that works for me. It locks automatically if the door is closed; it remains unlocked when the door is open. I can lock and unlock it by voice and remotely, and presence sensors (including an android phone) open it reliably.

There is but one thing I want it to do now, and that is to sound its alarm based on various sensor conditions. For example, if my exercise room window is opened while the security is armed.

How do I get there, with minimum system impact?


(www.rboyapps.com - Make your home your butler!) #8

You can you pick some of the apps from the Marketplace or if you want to total flexibility try Rule Machine


(Tolik) #9

If you are talking about using the lock to sound its alarm. I don’t believe that it is possible.

Edit: @RBoy Am i correct in what i stated? The siren/alarm cannot be triggered on demand?


(www.rboyapps.com - Make your home your butler!) #10

That’s absolutely correct, the lock doesn’t allow for external control of the alarm. Infact I tried “exploring” it to see if I could catch an undocumented parameter that would allow me to control it but unfortunately no such interface exists.


(Glen King) #11

Bummer. That sends me back to the Bluetooth speaker, or perhaps an alarm module or something. Oh well…


(www.rboyapps.com - Make your home your butler!) #12

###User Lock/Unlock Notifications and Actions - Version 2.1.0

  • Added support for receiving unlock notifications based on mode for each user
  • Bugfix for jammed and manual lock notifications not coming through always

(www.rboyapps.com - Make your home your butler!) #13

###User Lock/Unlock Notifications and Actions - Version 2.2.0

  • Added support for notifying if the door has been left open for a period of time (with mode filters)
  • Added support for automatic relock when controlling multiple doors from a single SmartApp
  • Various other UI improvements
  • Show SmartApp version on the main page

(www.rboyapps.com - Make your home your butler!) #14

###User Lock/Unlock Notifications and Actions - Version 2.3.0

  • On popular request, added option to execute a routine when the Lock button on the external keypad of the lock is pressed. Each locks’s routine can be configured individually. This functionality only works if the lock supports it and also requires the use of the Universal Enhanced Z-Wave Lock device handler version 2.9.0 or later

Thanks to DnCCrew for this step:

To set the hub Location, from smartphone app:

  1. Clicked on the 3 lines (top right corner)
  1. Clicked on gear icon (top right)
  2. Click area that says “Tap to set where home is on the map” and zoom in to correct location on map.

(www.rboyapps.com - Make your home your butler!) #15

###User Unlock/Lock Door Notifications and Actions - Version 2.4.0

  • On popular request, added option to execute a routine when the Lock button on the external keypad of the lock is pressed. Each locks’s routine can be configured individually.
  • Also added the ability to set individual actions when users use their codes to lock the door. e.g. Run Routine X when user 1 locks the door using their code and do nothing if user 2 locks using their code.
  • Also added the ability to display tamper notifications in addition to jammed and invalidCode notifications

This functionality only works if the lock supports user code locking/one touch locking via the keypad (e.g. Schalge BE469, Yale YRD220/240) and also requires the use of the [Universal Enhanced Z-Wave Lock] ([RELEASE] Universal Enhanced Z-Wave Lock, Schlage Lock, Yale Lock, Kwikset Lock, IDLock, DanaLock, August Pro and Samsung Lock Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features) device handler version 2.10.1 or later

Thanks to DnCCrew for this step:

To set the hub Location, from smartphone app:

  1. Clicked on the 3 lines (top right corner)
  1. Clicked on gear icon (top right)
  2. Click area that says “Tap to set where home is on the map” and zoom in to correct location on map.

EDIT: Please note this version has simplified the user interface, so please CHECK and VERIFY your notification settings. These are now on the first page under door lock/unlock actions.


(www.rboyapps.com - Make your home your butler!) #16

###User Unlock/Lock Door Notifications and Actions - Version 2.4.2

  • Improved reliability of auto unlock and auto relock
  • Now the App checks if the device lock has the AutoLock feature enabled and if so it will not Unlock the door when open to avoid an infinite lock/unlock loop

Recommend the use of the [Universal Enhanced Z-Wave Lock] ([RELEASE] Universal Enhanced Z-Wave Lock, Schlage Lock, Yale Lock, Kwikset Lock, IDLock, DanaLock, August Pro and Samsung Lock Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features) device handler version 2.10.1 or later for full SmartApp functionality

Thanks to DnCCrew for this step:

To set the hub Location, from smartphone app:

  1. Clicked on the 3 lines (top right corner)
  1. Clicked on gear icon (top right)
  2. Click area that says “Tap to set where home is on the map” and zoom in to correct location on map.

EDIT: Please note this version has simplified the user interface, so please CHECK and VERIFY your notification settings. These are now on the first page under door lock/unlock actions.


(www.rboyapps.com - Make your home your butler!) #17

###User Unlock/Lock Door Notifications and Actions - Version 2.4.3

Recommend use the [Universal Enhanced Z-Wave Lock] ([RELEASE] Universal Enhanced Z-Wave Lock, Schlage Lock, Yale Lock, Kwikset Lock, IDLock, DanaLock, August Pro and Samsung Lock Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features) device handler version 2.10.3 or later for full SmartApp functionality

Thanks to DnCCrew for this step:

To set the hub Location, from smartphone app:

  1. Clicked on the 3 lines (top right corner)
  1. Clicked on gear icon (top right)
  2. Click area that says “Tap to set where home is on the map” and zoom in to correct location on map.

EDIT: Please note this version has simplified the user interface, so please CHECK and VERIFY your notification settings. These are now on the first page under door lock/unlock actions. Also NOTE that the user lock code based actions require the use of the Universal Enhanced Z-Wave Handler version 2.10.3 or later


(www.rboyapps.com - Make your home your butler!) #18

###User Unlock/Lock Door Notifications and Actions - Version 3.0.0

  • Fixed issue with Auto Relock and Auto Unlock not working for some users
  • Added support for RFID card reporting
  • To use the advanced features (RFID, Lock based actions, Tamper Alarms) you require the Universal Enhanced Z-Wave Lock device handler version 3.0.0. All the rest of the functionality will continue to work with the Stock ST Z-Wave Device Handler.

Recommend use the [Universal Enhanced Z-Wave Lock] ([RELEASE] Universal Enhanced Z-Wave Lock, Schlage Lock, Yale Lock, Kwikset Lock, IDLock, DanaLock, August Pro and Samsung Lock Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features) device handler version 3.0.0 or later for full SmartApp functionality

EDIT: Please note this version has simplified the user interface, so please CHECK and VERIFY your notification settings. These are now on the first page under door lock/unlock actions. Also NOTE that the user lock code based actions require the use of the Universal Enhanced Z-Wave Handler version 3.0.0 or later


(www.rboyapps.com - Make your home your butler!) #19

###User Unlock/Lock Door Notifications and Actions - Version 3.1.0

  • Enhanced Auto ReLock to relock the door it hasn’t been opened for the configured time

Recommend use the [Universal Enhanced Z-Wave Lock] ([RELEASE] Universal Enhanced Z-Wave Lock, Schlage Lock, Yale Lock, Kwikset Lock, IDLock, DanaLock, August Pro and Samsung Lock Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features) device handler version 3.0.0 or later for full SmartApp functionality


(www.rboyapps.com - Make your home your butler!) #20

###User Unlock/Lock Door Notifications and Actions - Version 3.1.1

  • Workaround for ST bug with contact address book for notifications

Recommend use the [Universal Enhanced Z-Wave Lock] ([RELEASE] Universal Enhanced Z-Wave Lock, Schlage Lock, Yale Lock, Kwikset Lock, IDLock, DanaLock, August Pro and Samsung Lock Device Handler with Alarm Control, Notification, RFID, Door Sensor and advanced features) device handler version 3.0.1 or later for full SmartApp functionality