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 e8ae2bee9d72702a92f562995ccd1f390ee8bd37..59bb059fe9086f4f9b7dfa82ef55c024e37765d8 100644 (file)
@@ -12,7 +12,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
 
        for (int i = 0;i < app2.eventList.size();i++) {
                if (app2.eventList[i] == name &&
 
        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]
                        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 &&
 
        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]
                         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]