Fox, once you have the lock set to use yracine’s Device Type, create a SmartApp. Use the code I’ve pasted below as the code for your SmartApp. Save your SmartApp, then do a “For Me” publish.
With that done, you’ll see a right sidebar from which you can SET LOCATION. Do that, obviously setting your location to your house, whatever it’s named. Now you’ll see fields below into which you can enter a user number for the lock, and a code for that user. Enter those.
Now you should see a button that either says INSTALL or UPDATE. Click it. After a few seconds, the sidebar will change and show you a button that says TRIGGER NOW. Click that. A few seconds later, you should hear your lock beep, indicating acceptance of the code.
COPY EVERYTHING BELOW THIS LINE. DO NOT INCLUDE THIS LINE.
/**
*/
definition(
name: “Enable User Codes”,
namespace: “”,
author: “Nick Skeba”,
description: “User Codes”,
category: “My Apps”,
iconUrl: “https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png”,
iconX2Url: “https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png”
)
/**
- Change Lock Codes
-
- Author: bigpunk6
*/
preferences {
section(“What Lock”) {
input “lock1”,“capability.lock”, title: “Lock”
}
section(“User”) {
input “user1”, “decimal”, title: "User (From 1 to 30) "
input “code1”, “decimal”, title: "Code (4 to 8 digits)"
input “delete1”, “enum”, title: “Delete User”, required: false, metadata: [values: [“Yes”,“No”]]
}
}
def installed()
{
subscribe(app, appTouch)
subscribe(lock1, “usercode”, usercodeget)
}
def updated()
{
unsubscribe()
subscribe(app, appTouch)
subscribe(lock1, “usercode”, usercodeget)
}
def appTouch(evt) {
log.debug "Current Code for user $user1: $lock1.currentUsercode"
log.debug "user: $user1, code: $code1"
def idstatus1 = 1
if (delete1 == “Yes”) {
idstatus1 = 0
} else {
idstatus1 = 1
}
lock1.usercodechange(user1, code1, idstatus1)
}
def usercodeget(evt){
log.debug “Current Code for user $user1: $lock1.currentUsercode”
}