Skip to content

Commit

Permalink
spelling snafu and reporting fix. thanks, @gp1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethayer committed May 16, 2017
1 parent 8fc2d88 commit 3b57a9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,12 @@ def zwaveEvent(physicalgraph.zwave.commands.alarmv2.AlarmReport cmd) {
map = [ name: "lock", value: "locked" ]
map.data = [ usedCode: cmd.alarmLevel ]
map.descriptionText = "$device.displayName was locked by keypad"
break
case 24: // Locked by command (Kwikset 914)
map = [ name: "lock", value: "locked" ]
map.data = [ usedCode: "command" ]
map.descriptionText = "$device.displayName was locked by command"
break
case 27: // Autolocked
map = [ name: "lock", value: "locked" ]
break
Expand Down
18 changes: 9 additions & 9 deletions smartapps/ethayer/lock.src/lock.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def notificationPage() {
input(name: 'notification', type: 'bool', title: 'Send A Push Notification', description: 'Notification', required: false, submitOnChange: true)
}
if (phone != null || notification || recipients) {
input(name: 'notifyMaunualLock', title: 'On Manual Turn (Lock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/lock.png')
input(name: 'notifyMaunualUnlock', title: 'On Manual Turn (Unlock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/unlock-alt.png')
input(name: 'notifyManualLock', title: 'On Manual Turn (Lock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/lock.png')
input(name: 'notifyManualUnlock', title: 'On Manual Turn (Unlock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/unlock-alt.png')
if (state.supportsKeypadData) {
input(name: 'notifyKeypadLock', title: 'On Keypad Press to Lock', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/unlock-alt.png')
}
Expand All @@ -168,8 +168,8 @@ def notificationPage() {
def askAlexaPage() {
dynamicPage(name: 'askAlexaPage', title: 'Ask Alexa Message Settings') {
section('Que Messages with the Ask Alexa app') {
input(name: 'alexaMaunualLock', title: 'On Manual Turn (Lock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/lock.png')
input(name: 'alexaMaunualUnlock', title: 'On Manual Turn (Unlock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/unlock-alt.png')
input(name: 'alexaManualLock', title: 'On Manual Turn (Lock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/lock.png')
input(name: 'alexaManualUnlock', title: 'On Manual Turn (Unlock)', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/unlock-alt.png')
if (state.supportsKeypadData) {
input(name: 'alexaKeypadLock', title: 'On Keypad Press to Lock', type: 'bool', required: false, image: 'https://dl.dropboxusercontent.com/u/54190708/LockManager/unlock-alt.png')
}
Expand Down Expand Up @@ -327,7 +327,7 @@ def updateCode(event) {
state.codes["slot${slot}"]['code'] = code
state.codes["slot${slot}"]['codeState'] = 'known'

debugger("Recieved: s:${slot} c:${code}")
debugger("Received: s:${slot} c:${code}")

// check logic to see if all codes are in known state
if (!state.refreshComplete) {
Expand All @@ -346,7 +346,7 @@ def pollCodeReport(evt) {
def codeSlots = lockCodeSlots()
initSlots()

debugger("Recieved: ${codeData}")
debugger("Received: ${codeData}")
(1..codeSlots).each { slot->
def code = codeData."code${slot}"
if (code != null) { //check to make sure code isn't already null, which will cause .isNumber() to error. --DiddyWolf
Expand Down Expand Up @@ -423,10 +423,10 @@ def codeUsed(evt) {
}

message = "${lock.label} was unlocked manually"
if (notifyMaunualUnlock) {
if (notifyManualUnlock) {
send(message)
}
if (alexaMaunualUnlock) {
if (alexaManualUnlock) {
send(message)
}
}
Expand Down Expand Up @@ -473,7 +473,7 @@ def codeUsed(evt) {
parent.executeHelloPresenceCheck(parent.manualLockRoutine)
}

if (notifyMaunualLock) {
if (notifyManualLock) {
send(message)
}
if (alexaManualLock) {
Expand Down

0 comments on commit 3b57a9a

Please sign in to comment.