Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ def zwaveEvent(physicalgraph.zwave.commands.notificationv3.NotificationReport cm
result = motionEvent(cmd.notificationStatus)
} else if (cmd.notificationType == 7 && cmd.event == 3) {
result = createEvent(name: "tamper", value: "detected", descriptionText: "$device.displayName was tampered")
unschedule(clearTamper, [forceForLocallyExecuting: true])
runIn(10, clearTamper, [forceForLocallyExecuting: true])
runIn(10, clearTamper, [overwrite: true, forceForLocallyExecuting: true])
} else if (cmd.notificationType == 7 && cmd.event == 0) {
if (cmd.eventParameter[0] == 8) {
result = motionEvent(0)
Expand Down Expand Up @@ -204,6 +203,10 @@ def configure() {
secureSequence(request) + ["delay 20000", zwave.wakeUpV2.wakeUpNoMoreInformation().format()]
}

def clearTamper() {
sendEvent(name: "tamper", value: "clear")
}

private getLuxFromPercentage(percentageValue) {
def multiplier = luxConversionData.find {
percentageValue >= it.min && percentageValue <= it.max
Expand Down