edit
authorbdemsky <bdemsky@uci.edu>
Wed, 7 Aug 2019 03:23:08 +0000 (20:23 -0700)
committerbdemsky <bdemsky@uci.edu>
Wed, 7 Aug 2019 03:23:41 +0000 (20:23 -0700)
Methods/eventHandler.groovy

index e8ae2be..59bb059 100644 (file)
@@ -12,7 +12,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
 
        for (int i = 0;i < app2.eventList.size();i++) {
                if (app2.eventList[i] == name &&
-                   (app2.valueList[i] == "" || app2.valueList == value)) {
+                   (app2.valueList[i] == "" || app2.valueList[i] == value)) {
                        def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
                        if (app2.functionList[i] instanceof String) {
                                String toCall = app2.functionList[i]
@@ -25,7 +25,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
 
        for (int i = 0;i < app1.eventList.size();i++) {
                if (app1.eventList[i] == name &&
-                   (app1.valueList[i] == "" || app1.valueList == value)) {
+                   (app1.valueList[i] == "" || app1.valueList[i] == value)) {
                         def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
                        if (app1.functionList[i] instanceof String) {
                                String toCall = app1.functionList[i]