From: bdemsky Date: Wed, 7 Aug 2019 04:01:15 +0000 (-0700) Subject: Handle plain unlock X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=259531f8790d0f5ac24a985c67ded5650289c4f0;p=smartthings-infrastructure.git Handle plain unlock --- diff --git a/Methods/subscribe.groovy b/Methods/subscribe.groovy index b60cb45..a387375 100644 --- a/Methods/subscribe.groovy +++ b/Methods/subscribe.groovy @@ -21,7 +21,9 @@ def subscribe(Object obj, String event, Closure FunctionToCall) { } else if ((event == "mode")||(event == "mode.away")||(event == "mode.home")||(event == "mode.night")) { //This really should be fixed also... event = "Location" - } + } else if (event == "unlocked") { + return + } int dot = event.indexOf('.') String name = "" @@ -44,7 +46,9 @@ def subscribe(Object obj, String event, String FunctionToCall) { event = "contact" //This really should be its own name } else if ((event == "mode")||(event == "mode.away")||(event == "mode.home")||(event == "mode.night")) { event = "Location" - } + } else if (event == "unlocked") { + return + } int dot = event.indexOf('.') String name = ""