Update notify-me-with-hue.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Sun, 4 Aug 2019 20:01:52 +0000 (13:01 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Sun, 4 Aug 2019 20:01:52 +0000 (13:01 -0700)
official/notify-me-with-hue.groovy

index 76a687c..3bbfda7 100755 (executable)
@@ -73,20 +73,20 @@ def updated() {
 }
 
 def subscribeToEvents() {
-       subscribe(app, appTouchHandler)
-       subscribe(contact, "contact.open", eventHandler)
-       subscribe(contactClosed, "contact.closed", eventHandler)
-       subscribe(acceleration, "acceleration.active", eventHandler)
-       subscribe(motion, "motion.active", eventHandler)
-       subscribe(mySwitch, "switch.on", eventHandler)
-       subscribe(mySwitchOff, "switch.off", eventHandler)
-       subscribe(arrivalPresence, "presence.present", eventHandler)
-       subscribe(departurePresence, "presence.not present", eventHandler)
-       subscribe(smoke, "smoke.detected", eventHandler)
-       subscribe(smoke, "smoke.tested", eventHandler)
-       subscribe(smoke, "carbonMonoxide.detected", eventHandler)
-       subscribe(water, "water.wet", eventHandler)
-       subscribe(button1, "button.pushed", eventHandler)
+       subscribe(app, appTouchHandler1)
+       subscribe(contact, "contact.open", eventHandler1)
+       subscribe(contactClosed, "contact.closed", eventHandler1)
+       subscribe(acceleration, "acceleration.active", eventHandler1)
+       subscribe(motion, "motion.active", eventHandler1)
+       subscribe(mySwitch, "switch.on", eventHandler1)
+       subscribe(mySwitchOff, "switch.off", eventHandler1)
+       subscribe(arrivalPresence, "presence.present", eventHandler1)
+       subscribe(departurePresence, "presence.not present", eventHandler1)
+       subscribe(smoke, "smoke.detected", eventHandler1)
+       subscribe(smoke, "smoke.tested", eventHandler1)
+       subscribe(smoke, "carbonMonoxide.detected", eventHandler1)
+       subscribe(water, "water.wet", eventHandler1)
+       subscribe(button1, "button.pushed", eventHandler1)
 
        if (triggerModes) {
                subscribe(location, modeChangeHandler)