From: amiraj Date: Thu, 23 Jan 2020 01:42:38 +0000 (-0800) Subject: Add changes in events X-Git-Url: http://demsky.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=83071d3bcfc33f015ece13868342644498a9dda3 Add changes in events --- diff --git a/Location/LocationVar.groovy b/Location/LocationVar.groovy index 986cf78..e7328c5 100755 --- a/Location/LocationVar.groovy +++ b/Location/LocationVar.groovy @@ -50,16 +50,9 @@ public class LocationVar extends SmartThing { deviceValuesMap.put("mode", mode) deviceValuesMap.put("Location", mode) - deviceValuesMap.put("sunset", sunset) - deviceValuesMap.put("sunrise", sunrise) } // Methods to return values - def currentValue(String deviceFeature) { - if (deviceFeature == "sunsetTime" || deviceFeature == "sunset") - return System.currentTimeMillis() - } - def getMode() { return mode.toString() } diff --git a/SmartThing/SmartThing.groovy b/SmartThing/SmartThing.groovy index 7f08910..a690760 100644 --- a/SmartThing/SmartThing.groovy +++ b/SmartThing/SmartThing.groovy @@ -9,6 +9,7 @@ import MutableInteger.MutableInteger public class SmartThing { List nonStoredDevices = ["aeonKeyFob", "appTouch", "button", "momentary", "nfcTouch"] // Devices with no stored value + List locationTimeFeatures = ["sunset", "sunrise", "sunriseTime", "sunsetTime"] def sendEventSmartThings StringBuilder idSmartThing = new StringBuilder() @@ -41,6 +42,10 @@ public class SmartThing { } else if (nonStoredDevices.contains(name)) { println("the $name with id:$tmpID is triggered to $value!") sendEventSmartThings(eventDataMap) + } else if (locationTimeFeatures.contains(name)) { + return System.currentTimeMillis() + println("This is $name!") + sendEventSmartThings(eventDataMap) } } diff --git a/eventSimulator/accelerationActiveEvent.groovy b/eventSimulator/accelerationActiveEvent.groovy index 6991b56..725c514 100644 --- a/eventSimulator/accelerationActiveEvent.groovy +++ b/eventSimulator/accelerationActiveEvent.groovy @@ -1,2 +1,2 @@ - accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "", + accelerationSensorObject[0].setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/accelerationDefaultActiveEvent.groovy b/eventSimulator/accelerationDefaultActiveEvent.groovy index d62800b..f99b46d 100644 --- a/eventSimulator/accelerationDefaultActiveEvent.groovy +++ b/eventSimulator/accelerationDefaultActiveEvent.groovy @@ -1,2 +1,2 @@ - accelerationSensorObject.setValue([name: "acceleration.active", value: "active", deviceId: "accelerationSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + accelerationSensorObject[0].setValue([name: "acceleration.active", value: "active", deviceId: "accelerationSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/accelerationDefaultInactiveEvent.groovy b/eventSimulator/accelerationDefaultInactiveEvent.groovy index 563630c..d675af6 100644 --- a/eventSimulator/accelerationDefaultInactiveEvent.groovy +++ b/eventSimulator/accelerationDefaultInactiveEvent.groovy @@ -1,2 +1,2 @@ - accelerationSensorObject.setValue([name: "acceleration.inactive", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + accelerationSensorObject[0].setValue([name: "acceleration.inactive", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/accelerationInactiveEvent.groovy b/eventSimulator/accelerationInactiveEvent.groovy index eaa876f..d5e6a22 100644 --- a/eventSimulator/accelerationInactiveEvent.groovy +++ b/eventSimulator/accelerationInactiveEvent.groovy @@ -1,2 +1,2 @@ - accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "", + accelerationSensorObject[0].setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/aeonKeyFobHeldEvent.groovy b/eventSimulator/aeonKeyFobHeldEvent.groovy index 3937ff6..d05984e 100644 --- a/eventSimulator/aeonKeyFobHeldEvent.groovy +++ b/eventSimulator/aeonKeyFobHeldEvent.groovy @@ -1,2 +1,2 @@ - aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "", + aeonKeyFobObject[0].setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/aeonKeyFobPushedEvent.groovy b/eventSimulator/aeonKeyFobPushedEvent.groovy index 889af89..7896e99 100644 --- a/eventSimulator/aeonKeyFobPushedEvent.groovy +++ b/eventSimulator/aeonKeyFobPushedEvent.groovy @@ -1,2 +1,2 @@ - aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "", + aeonKeyFobObject[0].setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/alarmBothEvent.groovy b/eventSimulator/alarmBothEvent.groovy index 03ca061..1ba53e8 100644 --- a/eventSimulator/alarmBothEvent.groovy +++ b/eventSimulator/alarmBothEvent.groovy @@ -1,2 +1,2 @@ - alarmObject.setValue([name: "alarm", value: "both", deviceId: "alarmID0", descriptionText: "", + alarmObject[0].setValue([name: "alarm", value: "both", deviceId: "alarmID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/alarmOffEvent.groovy b/eventSimulator/alarmOffEvent.groovy index 6862af9..39f2ff9 100644 --- a/eventSimulator/alarmOffEvent.groovy +++ b/eventSimulator/alarmOffEvent.groovy @@ -1,2 +1,2 @@ - alarmObject.setValue([name: "alarm", value: "off", deviceId: "alarmID0", descriptionText: "", + alarmObject[0].setValue([name: "alarm", value: "off", deviceId: "alarmID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/alarmSirenEvent.groovy b/eventSimulator/alarmSirenEvent.groovy index b3efa58..3b39d0f 100644 --- a/eventSimulator/alarmSirenEvent.groovy +++ b/eventSimulator/alarmSirenEvent.groovy @@ -1,2 +1,2 @@ - alarmObject.setValue([name: "alarm", value: "siren", deviceId: "alarmID0", descriptionText: "", + alarmObject[0].setValue([name: "alarm", value: "siren", deviceId: "alarmID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/alarmStrobeEvent.groovy b/eventSimulator/alarmStrobeEvent.groovy index cdb5fdf..beb7529 100644 --- a/eventSimulator/alarmStrobeEvent.groovy +++ b/eventSimulator/alarmStrobeEvent.groovy @@ -1,2 +1,2 @@ - alarmObject.setValue([name: "alarm", value: "strobe", deviceId: "alarmID0", descriptionText: "", + alarmObject[0].setValue([name: "alarm", value: "strobe", deviceId: "alarmID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/batteryBatteryEvent.groovy b/eventSimulator/batteryBatteryEvent.groovy index ebf4a78..61f5a92 100644 --- a/eventSimulator/batteryBatteryEvent.groovy +++ b/eventSimulator/batteryBatteryEvent.groovy @@ -1,2 +1,2 @@ - batteryObject.setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "", + batteryObject[0].setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/buttonHeldEvent.groovy b/eventSimulator/buttonHeldEvent.groovy index 555ea4e..31e9b09 100644 --- a/eventSimulator/buttonHeldEvent.groovy +++ b/eventSimulator/buttonHeldEvent.groovy @@ -1,8 +1,8 @@ - buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}']) - buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 2}']) - buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}']) - buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}']) diff --git a/eventSimulator/buttonPushedEvent.groovy b/eventSimulator/buttonPushedEvent.groovy index a7bbdea..d528d78 100644 --- a/eventSimulator/buttonPushedEvent.groovy +++ b/eventSimulator/buttonPushedEvent.groovy @@ -1,8 +1,8 @@ - buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}']) - buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 2}']) - buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}']) - buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", + buttonObject[0].setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}']) diff --git a/eventSimulator/carbonDioxideEvent.groovy b/eventSimulator/carbonDioxideEvent.groovy index 83c88b9..e4f712b 100644 --- a/eventSimulator/carbonDioxideEvent.groovy +++ b/eventSimulator/carbonDioxideEvent.groovy @@ -1,2 +1,2 @@ - carbonDioxideMeasurementObject.setValue([name: "carbonDioxide", value: "45", deviceId: "carbonDioxideID0", descriptionText: "", + carbonDioxideMeasurementObject[0].setValue([name: "carbonDioxide", value: "45", deviceId: "carbonDioxideID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/carbonMonoxideClearEvent.groovy b/eventSimulator/carbonMonoxideClearEvent.groovy index fb3520d..0595c8e 100644 --- a/eventSimulator/carbonMonoxideClearEvent.groovy +++ b/eventSimulator/carbonMonoxideClearEvent.groovy @@ -1,2 +1,2 @@ - carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", + carbonMonoxideDetectorObject[0].setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/carbonMonoxideDefaultClearEvent.groovy b/eventSimulator/carbonMonoxideDefaultClearEvent.groovy index 1a48705..57708b1 100644 --- a/eventSimulator/carbonMonoxideDefaultClearEvent.groovy +++ b/eventSimulator/carbonMonoxideDefaultClearEvent.groovy @@ -1,2 +1,2 @@ - carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + carbonMonoxideDetectorObject[0].setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/carbonMonoxideDefaultDetectedEvent.groovy b/eventSimulator/carbonMonoxideDefaultDetectedEvent.groovy index 813441a..0590427 100644 --- a/eventSimulator/carbonMonoxideDefaultDetectedEvent.groovy +++ b/eventSimulator/carbonMonoxideDefaultDetectedEvent.groovy @@ -1,2 +1,2 @@ - carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + carbonMonoxideDetectorObject[0].setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/carbonMonoxideDefaultTestedEvent.groovy b/eventSimulator/carbonMonoxideDefaultTestedEvent.groovy index dd01e4c..f88a328 100644 --- a/eventSimulator/carbonMonoxideDefaultTestedEvent.groovy +++ b/eventSimulator/carbonMonoxideDefaultTestedEvent.groovy @@ -1,2 +1,2 @@ - carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + carbonMonoxideDetectorObject[0].setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/carbonMonoxideDetectedEvent.groovy b/eventSimulator/carbonMonoxideDetectedEvent.groovy index 6686f91..6594fa7 100644 --- a/eventSimulator/carbonMonoxideDetectedEvent.groovy +++ b/eventSimulator/carbonMonoxideDetectedEvent.groovy @@ -1,2 +1,2 @@ - carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", + carbonMonoxideDetectorObject[0].setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/carbonMonoxideTestedEvent.groovy b/eventSimulator/carbonMonoxideTestedEvent.groovy index 6686f91..6594fa7 100644 --- a/eventSimulator/carbonMonoxideTestedEvent.groovy +++ b/eventSimulator/carbonMonoxideTestedEvent.groovy @@ -1,2 +1,2 @@ - carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", + carbonMonoxideDetectorObject[0].setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorChangeEvent.groovy b/eventSimulator/colorChangeEvent.groovy index 5ed3b4f..2ff42c8 100644 --- a/eventSimulator/colorChangeEvent.groovy +++ b/eventSimulator/colorChangeEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "", + colorControlObject[0].setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorControlSwitchOffDefaultEvent.groovy b/eventSimulator/colorControlSwitchOffDefaultEvent.groovy index 0787970..da20561 100644 --- a/eventSimulator/colorControlSwitchOffDefaultEvent.groovy +++ b/eventSimulator/colorControlSwitchOffDefaultEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "switch.off", value: "off", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorControlObject[0].setValue([name: "switch.off", value: "off", deviceId: "colorControlID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorControlSwitchOffEvent.groovy b/eventSimulator/colorControlSwitchOffEvent.groovy index 56d3dfe..a457fda 100644 --- a/eventSimulator/colorControlSwitchOffEvent.groovy +++ b/eventSimulator/colorControlSwitchOffEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "switch", value: "off", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorControlObject[0].setValue([name: "switch", value: "off", deviceId: "colorControlID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorControlSwitchOnDefaultEvent.groovy b/eventSimulator/colorControlSwitchOnDefaultEvent.groovy index 9f2c849..735fc57 100644 --- a/eventSimulator/colorControlSwitchOnDefaultEvent.groovy +++ b/eventSimulator/colorControlSwitchOnDefaultEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "switch.on", value: "on", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorControlObject[0].setValue([name: "switch.on", value: "on", deviceId: "colorControlID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorControlSwitchOnEvent.groovy b/eventSimulator/colorControlSwitchOnEvent.groovy index c39c026..ecdd464 100644 --- a/eventSimulator/colorControlSwitchOnEvent.groovy +++ b/eventSimulator/colorControlSwitchOnEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "switch", value: "on", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorControlObject[0].setValue([name: "switch", value: "on", deviceId: "colorControlID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorLevelChangeEvent.groovy b/eventSimulator/colorLevelChangeEvent.groovy index 9989cbf..85d255b 100644 --- a/eventSimulator/colorLevelChangeEvent.groovy +++ b/eventSimulator/colorLevelChangeEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "level", value: "50", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorControlObject[0].setValue([name: "level", value: "50", deviceId: "colorControlID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorTemperatureEvent.groovy b/eventSimulator/colorTemperatureEvent.groovy index d34e4ba..9f2ded3 100644 --- a/eventSimulator/colorTemperatureEvent.groovy +++ b/eventSimulator/colorTemperatureEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "colorTemperature", value: "50", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorControlObject[0].setValue([name: "colorTemperature", value: "50", deviceId: "colorControlID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorTemperatureSwitchOffDefaultEvent.groovy b/eventSimulator/colorTemperatureSwitchOffDefaultEvent.groovy index b78ba5b..99dde39 100644 --- a/eventSimulator/colorTemperatureSwitchOffDefaultEvent.groovy +++ b/eventSimulator/colorTemperatureSwitchOffDefaultEvent.groovy @@ -1,2 +1,2 @@ - colorTemperatureObject.setValue([name: "switch.off", value: "off", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorTemperatureObject[0].setValue([name: "switch.off", value: "off", deviceId: "switchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorTemperatureSwitchOffEvent.groovy b/eventSimulator/colorTemperatureSwitchOffEvent.groovy index add53cb..69d4589 100644 --- a/eventSimulator/colorTemperatureSwitchOffEvent.groovy +++ b/eventSimulator/colorTemperatureSwitchOffEvent.groovy @@ -1,2 +1,2 @@ - colorTemperatureObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorTemperatureObject[0].setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorTemperatureSwitchOnDefaultEvent.groovy b/eventSimulator/colorTemperatureSwitchOnDefaultEvent.groovy index 0d2a0d6..115a38a 100644 --- a/eventSimulator/colorTemperatureSwitchOnDefaultEvent.groovy +++ b/eventSimulator/colorTemperatureSwitchOnDefaultEvent.groovy @@ -1,2 +1,2 @@ - colorTemperatureObject.setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorTemperatureObject[0].setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/colorTemperatureSwitchOnEvent.groovy b/eventSimulator/colorTemperatureSwitchOnEvent.groovy index c64a841..8df66c6 100644 --- a/eventSimulator/colorTemperatureSwitchOnEvent.groovy +++ b/eventSimulator/colorTemperatureSwitchOnEvent.groovy @@ -1,2 +1,2 @@ - colorTemperatureObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + colorTemperatureObject[0].setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/consumableStatusEvent.groovy b/eventSimulator/consumableStatusEvent.groovy index 8d57d89..6f470ed 100644 --- a/eventSimulator/consumableStatusEvent.groovy +++ b/eventSimulator/consumableStatusEvent.groovy @@ -1,2 +1,2 @@ - consumableObject.setValue([name: "consumableStatus", value: "status", deviceId: "consumableID0", descriptionText: "", + consumableObject[0].setValue([name: "consumableStatus", value: "status", deviceId: "consumableID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/contactClosedEvent.groovy b/eventSimulator/contactClosedEvent.groovy index db18679..ee6363c 100644 --- a/eventSimulator/contactClosedEvent.groovy +++ b/eventSimulator/contactClosedEvent.groovy @@ -1,2 +1,2 @@ - contactObject.setValue([name: "contact.closed", value: "closed", deviceId: "contactSensorID0", descriptionText: "", + contactObject[0].setValue([name: "contact.closed", value: "closed", deviceId: "contactSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/contactDefaultClosedEvent.groovy b/eventSimulator/contactDefaultClosedEvent.groovy index 0b74952..00795d9 100644 --- a/eventSimulator/contactDefaultClosedEvent.groovy +++ b/eventSimulator/contactDefaultClosedEvent.groovy @@ -1,2 +1,2 @@ - contactObject.setValue([name: "contact", value: "closed", deviceId: "contactSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + contactObject[0].setValue([name: "contact", value: "closed", deviceId: "contactSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/contactDefaultOpenEvent.groovy b/eventSimulator/contactDefaultOpenEvent.groovy index 71c81c5..55d7a42 100644 --- a/eventSimulator/contactDefaultOpenEvent.groovy +++ b/eventSimulator/contactDefaultOpenEvent.groovy @@ -1,2 +1,2 @@ - contactObject.setValue([name: "contact", value: "open", deviceId: "contactSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + contactObject[0].setValue([name: "contact", value: "open", deviceId: "contactSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/contactOpenEvent.groovy b/eventSimulator/contactOpenEvent.groovy index 5750394..84f7221 100644 --- a/eventSimulator/contactOpenEvent.groovy +++ b/eventSimulator/contactOpenEvent.groovy @@ -1,2 +1,2 @@ - contactObject.setValue([name: "contact.open", value: "open", deviceId: "contactSensorID0", descriptionText: "", + contactObject[0].setValue([name: "contact.open", value: "open", deviceId: "contactSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/coolingSetpointEvent.groovy b/eventSimulator/coolingSetpointEvent.groovy index bfc0869..12ec029 100644 --- a/eventSimulator/coolingSetpointEvent.groovy +++ b/eventSimulator/coolingSetpointEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "coolingSetpoint", value: "60", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "coolingSetpoint", value: "60", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/doorClosedEvent.groovy b/eventSimulator/doorClosedEvent.groovy index a658599..8220ad4 100644 --- a/eventSimulator/doorClosedEvent.groovy +++ b/eventSimulator/doorClosedEvent.groovy @@ -1,2 +1,2 @@ - doorControlObject.setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "", + doorControlObject[0].setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/doorOpenEvent.groovy b/eventSimulator/doorOpenEvent.groovy index 1ed1130..35bd04e 100644 --- a/eventSimulator/doorOpenEvent.groovy +++ b/eventSimulator/doorOpenEvent.groovy @@ -1,2 +1,2 @@ - doorControlObject.setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "", + doorControlObject[0].setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/energyMeterEvent.groovy b/eventSimulator/energyMeterEvent.groovy index 597f372..c13fe92 100644 --- a/eventSimulator/energyMeterEvent.groovy +++ b/eventSimulator/energyMeterEvent.groovy @@ -1,2 +1,2 @@ - energyMeterObject.setValue([name: "energy", value: "45"/*A number between 0 to 100 as a charge*/, deviceId: "energyMeterID0", descriptionText: "", + energyMeterObject[0].setValue([name: "energy", value: "45"/*A number between 0 to 100 as a charge*/, deviceId: "energyMeterID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/eventSwitchOff.groovy b/eventSimulator/eventSwitchOff.groovy index 23e12ec..8bd16b8 100644 --- a/eventSimulator/eventSwitchOff.groovy +++ b/eventSimulator/eventSwitchOff.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "switch.off", value: "off", deviceId: 0, descriptionText: "", + switchObject[0].setValue([name: "switch.off", value: "off", deviceId: 0, descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/eventSwitchOn.groovy b/eventSimulator/eventSwitchOn.groovy index 864721e..c24b7ac 100644 --- a/eventSimulator/eventSwitchOn.groovy +++ b/eventSimulator/eventSwitchOn.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "switch.on", value: "on", deviceId: 0, descriptionText: "", + switchObject[0].setValue([name: "switch.on", value: "on", deviceId: 0, descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/heatingSetpointEvent.groovy b/eventSimulator/heatingSetpointEvent.groovy index 7c2f189..2f54a4a 100644 --- a/eventSimulator/heatingSetpointEvent.groovy +++ b/eventSimulator/heatingSetpointEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "heatingSetpoint", value: "40", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "heatingSetpoint", value: "40", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/hueChangeEvent.groovy b/eventSimulator/hueChangeEvent.groovy index b5d20d2..8485e9a 100644 --- a/eventSimulator/hueChangeEvent.groovy +++ b/eventSimulator/hueChangeEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "", + colorControlObject[0].setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/humidityHighMeasurementEvent.groovy b/eventSimulator/humidityHighMeasurementEvent.groovy index bcfe170..cd1ae02 100644 --- a/eventSimulator/humidityHighMeasurementEvent.groovy +++ b/eventSimulator/humidityHighMeasurementEvent.groovy @@ -1,2 +1,2 @@ - humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "", + humidityMeasurementObject[0].setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/humidityLowMeasurementEvent.groovy b/eventSimulator/humidityLowMeasurementEvent.groovy index 4692c5d..55ea84f 100644 --- a/eventSimulator/humidityLowMeasurementEvent.groovy +++ b/eventSimulator/humidityLowMeasurementEvent.groovy @@ -1,2 +1,2 @@ - humidityMeasurementObject.setValue([name: "humidity", value: "30"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "", + humidityMeasurementObject[0].setValue([name: "humidity", value: "30"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/humidityMeasurementEvent.groovy b/eventSimulator/humidityMeasurementEvent.groovy index bcfe170..cd1ae02 100644 --- a/eventSimulator/humidityMeasurementEvent.groovy +++ b/eventSimulator/humidityMeasurementEvent.groovy @@ -1,2 +1,2 @@ - humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "", + humidityMeasurementObject[0].setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/illuminanceMeasurementHighEvent.groovy b/eventSimulator/illuminanceMeasurementHighEvent.groovy index c2c5029..e296ebd 100644 --- a/eventSimulator/illuminanceMeasurementHighEvent.groovy +++ b/eventSimulator/illuminanceMeasurementHighEvent.groovy @@ -1,2 +1,2 @@ - illuminanceMeasurementObject.setValue([name: "illuminance", value: "100"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "", + illuminanceMeasurementObject[0].setValue([name: "illuminance", value: "100"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/illuminanceMeasurementLowEvent.groovy b/eventSimulator/illuminanceMeasurementLowEvent.groovy index f515640..fe96531 100644 --- a/eventSimulator/illuminanceMeasurementLowEvent.groovy +++ b/eventSimulator/illuminanceMeasurementLowEvent.groovy @@ -1,2 +1,2 @@ - illuminanceMeasurementObject.setValue([name: "illuminance", value: "0"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "", + illuminanceMeasurementObject[0].setValue([name: "illuminance", value: "0"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/lockLockedEvent.groovy b/eventSimulator/lockLockedEvent.groovy index e208c90..e66b5e9 100644 --- a/eventSimulator/lockLockedEvent.groovy +++ b/eventSimulator/lockLockedEvent.groovy @@ -1,2 +1,2 @@ - lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "", + lockObject[0].setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/lockUnlockedEvent.groovy b/eventSimulator/lockUnlockedEvent.groovy index 7ce594b..4911eab 100644 --- a/eventSimulator/lockUnlockedEvent.groovy +++ b/eventSimulator/lockUnlockedEvent.groovy @@ -1,2 +1,2 @@ - lockObject.setValue([name: "lock", value: "unlocked", deviceId: "lockID0", descriptionText: "", + lockObject[0].setValue([name: "lock", value: "unlocked", deviceId: "lockID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/lqiEvent.groovy b/eventSimulator/lqiEvent.groovy index b0cd918..afd4743 100644 --- a/eventSimulator/lqiEvent.groovy +++ b/eventSimulator/lqiEvent.groovy @@ -1,2 +1,2 @@ - signalStrengthObject.setValue([name: "lqi", value: "70", deviceId: "signalStrengthID0", descriptionText: "", + signalStrengthObject[0].setValue([name: "lqi", value: "70", deviceId: "signalStrengthID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/modeHomeEvent.groovy b/eventSimulator/modeHomeEvent.groovy index 1dbd8a8..6791eec 100644 --- a/eventSimulator/modeHomeEvent.groovy +++ b/eventSimulator/modeHomeEvent.groovy @@ -1,2 +1,2 @@ locationObject.setValue([name: "mode", value: "home", deviceId: "locationID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/motionActiveEvent.groovy b/eventSimulator/motionActiveEvent.groovy index b99b59e..869ed7e 100644 --- a/eventSimulator/motionActiveEvent.groovy +++ b/eventSimulator/motionActiveEvent.groovy @@ -1,2 +1,2 @@ - motionSensorObject.setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "", + motionSensorObjectp[0].setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/motionDefaultActiveEvent.groovy b/eventSimulator/motionDefaultActiveEvent.groovy index 4feb46d..3047149 100644 --- a/eventSimulator/motionDefaultActiveEvent.groovy +++ b/eventSimulator/motionDefaultActiveEvent.groovy @@ -1,2 +1,2 @@ - motionSensorObject.setValue([name: "motion.active", value: "active", deviceId: "motionSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + motionSensorObject[0].setValue([name: "motion.active", value: "active", deviceId: "motionSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/motionDefaultInactiveEvent.groovy b/eventSimulator/motionDefaultInactiveEvent.groovy index fc5142b..37a3f17 100644 --- a/eventSimulator/motionDefaultInactiveEvent.groovy +++ b/eventSimulator/motionDefaultInactiveEvent.groovy @@ -1,2 +1,2 @@ - motionSensorObject.setValue([name: "motion.inactive", value: "inactive", deviceId: "motionSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + motionSensorObject[0].setValue([name: "motion.inactive", value: "inactive", deviceId: "motionSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/motionInactiveEvent.groovy b/eventSimulator/motionInactiveEvent.groovy index a6b95d2..546386e 100644 --- a/eventSimulator/motionInactiveEvent.groovy +++ b/eventSimulator/motionInactiveEvent.groovy @@ -1,2 +1,2 @@ - motionSensorObject.setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "", + motionSensorObject[0].setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerLevelEvent.groovy b/eventSimulator/musicPlayerLevelEvent.groovy index 8f520cf..57730f3 100644 --- a/eventSimulator/musicPlayerLevelEvent.groovy +++ b/eventSimulator/musicPlayerLevelEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "level", value: "36"/*A number between 0 to 100 as a charge*/, deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "level", value: "36"/*A number between 0 to 100 as a charge*/, deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerMutedEvent.groovy b/eventSimulator/musicPlayerMutedEvent.groovy index d642662..f7fc270 100644 --- a/eventSimulator/musicPlayerMutedEvent.groovy +++ b/eventSimulator/musicPlayerMutedEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "mute", value: "muted", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "mute", value: "muted", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerPausedEvent.groovy b/eventSimulator/musicPlayerPausedEvent.groovy index 19bcc3d..49a9da9 100644 --- a/eventSimulator/musicPlayerPausedEvent.groovy +++ b/eventSimulator/musicPlayerPausedEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "status", value: "paused", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "status", value: "paused", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerPlayingEvent.groovy b/eventSimulator/musicPlayerPlayingEvent.groovy index a703e3a..ae2234a 100644 --- a/eventSimulator/musicPlayerPlayingEvent.groovy +++ b/eventSimulator/musicPlayerPlayingEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "status", value: "playing", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "status", value: "playing", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerStoppedEvent.groovy b/eventSimulator/musicPlayerStoppedEvent.groovy index 24f4146..68d8eff 100644 --- a/eventSimulator/musicPlayerStoppedEvent.groovy +++ b/eventSimulator/musicPlayerStoppedEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "status", value: "stopped", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "status", value: "stopped", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerTrackDataEvent.groovy b/eventSimulator/musicPlayerTrackDataEvent.groovy index 3be6fcb..623f2e0 100644 --- a/eventSimulator/musicPlayerTrackDataEvent.groovy +++ b/eventSimulator/musicPlayerTrackDataEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "trackData", value: "someTrack", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "trackData", value: "someTrack", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerTrackDescriptionEvent.groovy b/eventSimulator/musicPlayerTrackDescriptionEvent.groovy index 64fd491..23ba4b3 100644 --- a/eventSimulator/musicPlayerTrackDescriptionEvent.groovy +++ b/eventSimulator/musicPlayerTrackDescriptionEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "trackDescription", value: "someDescriptions", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "trackDescription", value: "someDescriptions", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/musicPlayerUnmutedEvent.groovy b/eventSimulator/musicPlayerUnmutedEvent.groovy index 7c2f924..531290b 100644 --- a/eventSimulator/musicPlayerUnmutedEvent.groovy +++ b/eventSimulator/musicPlayerUnmutedEvent.groovy @@ -1,2 +1,2 @@ - musicPlayerObject.setValue([name: "mute", value: "umuted", deviceId: "musicPlayerID0", descriptionText: "", + musicPlayerObject[0].setValue([name: "mute", value: "umuted", deviceId: "musicPlayerID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/pHEvent.groovy b/eventSimulator/pHEvent.groovy index cf52512..22d2a6d 100644 --- a/eventSimulator/pHEvent.groovy +++ b/eventSimulator/pHEvent.groovy @@ -1,2 +1,2 @@ - pHMeasurementObject.setValue([name: "pH", value: "40", deviceId: "pHMeasurementID0", descriptionText: "", + pHMeasurementObject[0].setValue([name: "pH", value: "40", deviceId: "pHMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/powerMeterEvent.groovy b/eventSimulator/powerMeterEvent.groovy index 2fdf6dd..b84d5ea 100644 --- a/eventSimulator/powerMeterEvent.groovy +++ b/eventSimulator/powerMeterEvent.groovy @@ -1,2 +1,2 @@ - powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "", + powerMeterObject[0].setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/powerMeterHighPowerEvent.groovy b/eventSimulator/powerMeterHighPowerEvent.groovy index 2fdf6dd..b84d5ea 100644 --- a/eventSimulator/powerMeterHighPowerEvent.groovy +++ b/eventSimulator/powerMeterHighPowerEvent.groovy @@ -1,2 +1,2 @@ - powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "", + powerMeterObject[0].setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/powerMeterLowPowerEvent.groovy b/eventSimulator/powerMeterLowPowerEvent.groovy index 58f7c58..9a7bd85 100644 --- a/eventSimulator/powerMeterLowPowerEvent.groovy +++ b/eventSimulator/powerMeterLowPowerEvent.groovy @@ -1,2 +1,2 @@ - powerMeterObject.setValue([name: "power", value: "30"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "", + powerMeterObject[0].setValue([name: "power", value: "30"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/presenceLeftEvent.groovy b/eventSimulator/presenceLeftEvent.groovy index 39e198a..71b4da7 100644 --- a/eventSimulator/presenceLeftEvent.groovy +++ b/eventSimulator/presenceLeftEvent.groovy @@ -1,2 +1,2 @@ - presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "", + presenceSensorObject[0].setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}']) diff --git a/eventSimulator/presencePresencePresentEvent.groovy b/eventSimulator/presencePresencePresentEvent.groovy index 9697195..0a139fc 100644 --- a/eventSimulator/presencePresencePresentEvent.groovy +++ b/eventSimulator/presencePresencePresentEvent.groovy @@ -1,2 +1,2 @@ - presenceSensorObject.setValue([name: "presence.present", value: "present", deviceId: "presenceSensorID0", descriptionText: "", + presenceSensorObject[0].setValue([name: "presence.present", value: "present", deviceId: "presenceSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}']) diff --git a/eventSimulator/presencePresentEvent.groovy b/eventSimulator/presencePresentEvent.groovy index cd4154d..4a41376 100644 --- a/eventSimulator/presencePresentEvent.groovy +++ b/eventSimulator/presencePresentEvent.groovy @@ -1,2 +1,2 @@ - presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "", + presenceSensorObject[0].setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}']) diff --git a/eventSimulator/pressureEvent.groovy b/eventSimulator/pressureEvent.groovy index 68e0f75..f2fd896 100644 --- a/eventSimulator/pressureEvent.groovy +++ b/eventSimulator/pressureEvent.groovy @@ -1,2 +1,2 @@ - sensorObject.setValue([name: "pressure", value: "40", deviceId: "sensorID0", descriptionText: "", + sensorObject[0].setValue([name: "pressure", value: "40", deviceId: "sensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/relaySwitchOffDefaultEvent.groovy b/eventSimulator/relaySwitchOffDefaultEvent.groovy index 4b1f86e..297ad04 100644 --- a/eventSimulator/relaySwitchOffDefaultEvent.groovy +++ b/eventSimulator/relaySwitchOffDefaultEvent.groovy @@ -1,2 +1,2 @@ - relaySwitchObject.setValue([name: "switch.off", value: "off", deviceId: "relaySwitchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + relaySwitchObject[0].setValue([name: "switch.off", value: "off", deviceId: "relaySwitchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/relaySwitchOffEvent.groovy b/eventSimulator/relaySwitchOffEvent.groovy index 89009c6..237310b 100644 --- a/eventSimulator/relaySwitchOffEvent.groovy +++ b/eventSimulator/relaySwitchOffEvent.groovy @@ -1,2 +1,2 @@ - relaySwitchObject.setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "", + relaySwitchObject[0].setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/relaySwitchOnDefaultEvent.groovy b/eventSimulator/relaySwitchOnDefaultEvent.groovy index b8a63e2..53d0da2 100644 --- a/eventSimulator/relaySwitchOnDefaultEvent.groovy +++ b/eventSimulator/relaySwitchOnDefaultEvent.groovy @@ -1,2 +1,2 @@ - relaySwitchObject.setValue([name: "switch.on", value: "on", deviceId: "relaySwitchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + relaySwitchObject[0].setValue([name: "switch.on", value: "on", deviceId: "relaySwitchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/relaySwitchOnEvent.groovy b/eventSimulator/relaySwitchOnEvent.groovy index 96a5bee..5ee956c 100644 --- a/eventSimulator/relaySwitchOnEvent.groovy +++ b/eventSimulator/relaySwitchOnEvent.groovy @@ -1,2 +1,2 @@ - relaySwitchObject.setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "", + relaySwitchObject[0].setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/rssiEvent.groovy b/eventSimulator/rssiEvent.groovy index 47e33e5..28e8cef 100644 --- a/eventSimulator/rssiEvent.groovy +++ b/eventSimulator/rssiEvent.groovy @@ -1,2 +1,2 @@ - signalStrengthObject.setValue([name: "rssi", value: "70", deviceId: "signalStrengthID0", descriptionText: "", + signalStrengthObject[0].setValue([name: "rssi", value: "70", deviceId: "signalStrengthID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/saturationChangeEvent.groovy b/eventSimulator/saturationChangeEvent.groovy index 5327de2..e0c9e54 100644 --- a/eventSimulator/saturationChangeEvent.groovy +++ b/eventSimulator/saturationChangeEvent.groovy @@ -1,2 +1,2 @@ - colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "", + colorControlObject[0].setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/shockEvent.groovy b/eventSimulator/shockEvent.groovy index 4c5e8fc..d700291 100644 --- a/eventSimulator/shockEvent.groovy +++ b/eventSimulator/shockEvent.groovy @@ -1,2 +1,2 @@ - shockSensorObject.setValue([name: "shock", value: "shocked", deviceId: "shockSensorID0", descriptionText: "", + shockSensorObject[0].setValue([name: "shock", value: "shocked", deviceId: "shockSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/sleepNotSleepingEvent.groovy b/eventSimulator/sleepNotSleepingEvent.groovy index 2abc19a..cb5c668 100644 --- a/eventSimulator/sleepNotSleepingEvent.groovy +++ b/eventSimulator/sleepNotSleepingEvent.groovy @@ -1,2 +1,2 @@ - sleepSensorObject.setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "", + sleepSensorObject[0].setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/sleepSleepingEvent.groovy b/eventSimulator/sleepSleepingEvent.groovy index 0b77e7d..b4d7f64 100644 --- a/eventSimulator/sleepSleepingEvent.groovy +++ b/eventSimulator/sleepSleepingEvent.groovy @@ -1,2 +1,2 @@ - sleepSensorObject.setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "", + sleepSensorObject[0].setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeCarbonMonoxideClearEvent.groovy b/eventSimulator/smokeCarbonMonoxideClearEvent.groovy index 7c1df43..83cf013 100644 --- a/eventSimulator/smokeCarbonMonoxideClearEvent.groovy +++ b/eventSimulator/smokeCarbonMonoxideClearEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "carbonMonoxide", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeCarbonMonoxideDefaultClearEvent.groovy b/eventSimulator/smokeCarbonMonoxideDefaultClearEvent.groovy index 5ab06b4..976a518 100644 --- a/eventSimulator/smokeCarbonMonoxideDefaultClearEvent.groovy +++ b/eventSimulator/smokeCarbonMonoxideDefaultClearEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + smokeDetectorObject[0].setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeCarbonMonoxideDefaultDetectedEvent.groovy b/eventSimulator/smokeCarbonMonoxideDefaultDetectedEvent.groovy index a2efc20..3e6eb9e 100644 --- a/eventSimulator/smokeCarbonMonoxideDefaultDetectedEvent.groovy +++ b/eventSimulator/smokeCarbonMonoxideDefaultDetectedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + smokeDetectorObject[0].setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeCarbonMonoxideDefaultTestedEvent.groovy b/eventSimulator/smokeCarbonMonoxideDefaultTestedEvent.groovy index 878b67a..5fc7b91 100644 --- a/eventSimulator/smokeCarbonMonoxideDefaultTestedEvent.groovy +++ b/eventSimulator/smokeCarbonMonoxideDefaultTestedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + smokeDetectorObject[0].setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeCarbonMonoxideDetectedEvent.groovy b/eventSimulator/smokeCarbonMonoxideDetectedEvent.groovy index b889098..f6b54cb 100644 --- a/eventSimulator/smokeCarbonMonoxideDetectedEvent.groovy +++ b/eventSimulator/smokeCarbonMonoxideDetectedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "carbonMonoxide", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeCarbonMonoxideTestedEvent.groovy b/eventSimulator/smokeCarbonMonoxideTestedEvent.groovy index 2ce58bc..f417ae4 100644 --- a/eventSimulator/smokeCarbonMonoxideTestedEvent.groovy +++ b/eventSimulator/smokeCarbonMonoxideTestedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "carbonMonoxide", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeClearEvent.groovy b/eventSimulator/smokeClearEvent.groovy index e285e5e..4e7bfd7 100644 --- a/eventSimulator/smokeClearEvent.groovy +++ b/eventSimulator/smokeClearEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeDefaultClearEvent.groovy b/eventSimulator/smokeDefaultClearEvent.groovy index 57083a8..ed1c9c6 100644 --- a/eventSimulator/smokeDefaultClearEvent.groovy +++ b/eventSimulator/smokeDefaultClearEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "smoke.clear", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + smokeDetectorObject[0].setValue([name: "smoke.clear", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeDefaultDetectedEvent.groovy b/eventSimulator/smokeDefaultDetectedEvent.groovy index 8683e25..ca6c642 100644 --- a/eventSimulator/smokeDefaultDetectedEvent.groovy +++ b/eventSimulator/smokeDefaultDetectedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "smoke.detected", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + smokeDetectorObject[0].setValue([name: "smoke.detected", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeDefaultTestedEvent.groovy b/eventSimulator/smokeDefaultTestedEvent.groovy index 314a506..a481423 100644 --- a/eventSimulator/smokeDefaultTestedEvent.groovy +++ b/eventSimulator/smokeDefaultTestedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "smoke.tested", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + smokeDetectorObject[0].setValue([name: "smoke.tested", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeDetectedEvent.groovy b/eventSimulator/smokeDetectedEvent.groovy index ce80e5f..2bfc393 100644 --- a/eventSimulator/smokeDetectedEvent.groovy +++ b/eventSimulator/smokeDetectedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeDetectorBatteryEvent.groovy b/eventSimulator/smokeDetectorBatteryEvent.groovy index 0bc041c..9917b56 100644 --- a/eventSimulator/smokeDetectorBatteryEvent.groovy +++ b/eventSimulator/smokeDetectorBatteryEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/smokeTestedEvent.groovy b/eventSimulator/smokeTestedEvent.groovy index 3cbbd3a..c3f4d93 100644 --- a/eventSimulator/smokeTestedEvent.groovy +++ b/eventSimulator/smokeTestedEvent.groovy @@ -1,2 +1,2 @@ - smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", + smokeDetectorObject[0].setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/soundEvent.groovy b/eventSimulator/soundEvent.groovy index 8e9bd1e..974661e 100644 --- a/eventSimulator/soundEvent.groovy +++ b/eventSimulator/soundEvent.groovy @@ -1,2 +1,2 @@ - soundSensorObject.setValue([name: "sound", value: "54", deviceId: "soundSensorID0", descriptionText: "", + soundSensorObject[0].setValue([name: "sound", value: "54", deviceId: "soundSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/soundPressureLevelEvent.groovy b/eventSimulator/soundPressureLevelEvent.groovy index e5dc02b..f4dc37d 100644 --- a/eventSimulator/soundPressureLevelEvent.groovy +++ b/eventSimulator/soundPressureLevelEvent.groovy @@ -1,2 +1,2 @@ - soundPressureLevelObject.setValue([name: "soundPressureLevel", value: "70", deviceId: "soundPressureLevelID0", descriptionText: "", + soundPressureLevelObject[0].setValue([name: "soundPressureLevel", value: "70", deviceId: "soundPressureLevelID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/stepGoalHighEvent.groovy b/eventSimulator/stepGoalHighEvent.groovy index 190b5d5..51b9f3d 100644 --- a/eventSimulator/stepGoalHighEvent.groovy +++ b/eventSimulator/stepGoalHighEvent.groovy @@ -1,2 +1,2 @@ - stepSensorObject.setValue([name: "goal", value: "70"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", + stepSensorObject[0].setValue([name: "goal", value: "70"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/stepGoalLowEvent.groovy b/eventSimulator/stepGoalLowEvent.groovy index cbec67f..2ed4014 100644 --- a/eventSimulator/stepGoalLowEvent.groovy +++ b/eventSimulator/stepGoalLowEvent.groovy @@ -1,2 +1,2 @@ - stepSensorObject.setValue([name: "goal", value: "40"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", + stepSensorObject[0].setValue([name: "goal", value: "40"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/stepStepsHighEvent.groovy b/eventSimulator/stepStepsHighEvent.groovy index 151b5c0..3714a7f 100644 --- a/eventSimulator/stepStepsHighEvent.groovy +++ b/eventSimulator/stepStepsHighEvent.groovy @@ -1,2 +1,2 @@ - stepSensorObject.setValue([name: "steps", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", + stepSensorObject[0].setValue([name: "steps", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/stepStepsLowEvent.groovy b/eventSimulator/stepStepsLowEvent.groovy index 60da0e0..993b16b 100644 --- a/eventSimulator/stepStepsLowEvent.groovy +++ b/eventSimulator/stepStepsLowEvent.groovy @@ -1,2 +1,2 @@ - stepSensorObject.setValue([name: "steps", value: "50"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", + stepSensorObject[0].setValue([name: "steps", value: "50"/*A number*/, deviceId: "stepSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchLevelChangeEvent.groovy b/eventSimulator/switchLevelChangeEvent.groovy index 502de0a..0757765 100644 --- a/eventSimulator/switchLevelChangeEvent.groovy +++ b/eventSimulator/switchLevelChangeEvent.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "level", value: "45", deviceId: "switchID0", descriptionText: "", + switchObject[0].setValue([name: "level", value: "45", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchLevelEvent.groovy b/eventSimulator/switchLevelEvent.groovy index 177164a..18ce77a 100644 --- a/eventSimulator/switchLevelEvent.groovy +++ b/eventSimulator/switchLevelEvent.groovy @@ -1,2 +1,2 @@ - switchLevelObject.setValue([name: "level", value: "45"/*A number between 0 to 100*/, deviceId: "switchLevelID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + switchLevelObject[0].setValue([name: "level", value: "45"/*A number between 0 to 100*/, deviceId: "switchLevelID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchLevelOffDefaultEvent.groovy b/eventSimulator/switchLevelOffDefaultEvent.groovy index 1a7d43c..adb59e7 100644 --- a/eventSimulator/switchLevelOffDefaultEvent.groovy +++ b/eventSimulator/switchLevelOffDefaultEvent.groovy @@ -1,2 +1,2 @@ - switchLevelObject.setValue([name: "switch.off", value: "off", deviceId: "switchLevelID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + switchLevelObject[0].setValue([name: "switch.off", value: "off", deviceId: "switchLevelID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchLevelOffEvent.groovy b/eventSimulator/switchLevelOffEvent.groovy index 6f02dcf..c0f5b55 100644 --- a/eventSimulator/switchLevelOffEvent.groovy +++ b/eventSimulator/switchLevelOffEvent.groovy @@ -1,2 +1,2 @@ - switchLevelObject.setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "", + switchLevelObject[0].setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchLevelOnDefaultEvent.groovy b/eventSimulator/switchLevelOnDefaultEvent.groovy index bd44730..0c021a8 100644 --- a/eventSimulator/switchLevelOnDefaultEvent.groovy +++ b/eventSimulator/switchLevelOnDefaultEvent.groovy @@ -1,2 +1,2 @@ - switchLevelObject.setValue([name: "switch.on", value: "on", deviceId: "switchLevelID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + switchLevelObject[0].setValue([name: "switch.on", value: "on", deviceId: "switchLevelID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchLevelOnEvent.groovy b/eventSimulator/switchLevelOnEvent.groovy index 2d534c9..d9cbcf5 100644 --- a/eventSimulator/switchLevelOnEvent.groovy +++ b/eventSimulator/switchLevelOnEvent.groovy @@ -1,2 +1,2 @@ - switchLevelObject.setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "", + switchLevelObject[0].setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchOffDefaultEvent.groovy b/eventSimulator/switchOffDefaultEvent.groovy index d10deb1..252781e 100644 --- a/eventSimulator/switchOffDefaultEvent.groovy +++ b/eventSimulator/switchOffDefaultEvent.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "switch.off", value: "off", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + switchObject[0].setValue([name: "switch.off", value: "off", deviceId: "switchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchOffEvent.groovy b/eventSimulator/switchOffEvent.groovy index ea3b9f5..dd82457 100644 --- a/eventSimulator/switchOffEvent.groovy +++ b/eventSimulator/switchOffEvent.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "", + switchObject[0].setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchOnDefaultEvent.groovy b/eventSimulator/switchOnDefaultEvent.groovy index a25c74f..d770050 100644 --- a/eventSimulator/switchOnDefaultEvent.groovy +++ b/eventSimulator/switchOnDefaultEvent.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + switchObject[0].setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/switchOnEvent.groovy b/eventSimulator/switchOnEvent.groovy index fa1ef3a..b9b7786 100644 --- a/eventSimulator/switchOnEvent.groovy +++ b/eventSimulator/switchOnEvent.groovy @@ -1,2 +1,2 @@ - switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "", + switchObject[0].setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/tamperEvent.groovy b/eventSimulator/tamperEvent.groovy index b69daee..5422153 100644 --- a/eventSimulator/tamperEvent.groovy +++ b/eventSimulator/tamperEvent.groovy @@ -1,2 +1,2 @@ - tamperAlertObject.setValue([name: "tamper", value: "tampered", deviceId: "tamperAlertID0", descriptionText: "", + tamperAlertObject[0].setValue([name: "tamper", value: "tampered", deviceId: "tamperAlertID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/tamperTamperedClosedEvent.groovy b/eventSimulator/tamperTamperedClosedEvent.groovy index b78c3ea..c9e73db 100644 --- a/eventSimulator/tamperTamperedClosedEvent.groovy +++ b/eventSimulator/tamperTamperedClosedEvent.groovy @@ -1,2 +1,2 @@ - contactObject.setValue([name: "tamper.tampered", value: "closed", deviceId: "contactSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + contactObject[0].setValue([name: "tamper.tampered", value: "closed", deviceId: "contactSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/tamperTamperedOpenEvent.groovy b/eventSimulator/tamperTamperedOpenEvent.groovy index 1da44bf..1dd5521 100644 --- a/eventSimulator/tamperTamperedOpenEvent.groovy +++ b/eventSimulator/tamperTamperedOpenEvent.groovy @@ -1,2 +1,2 @@ - contactObject.setValue([name: "tamper.tampered", value: "open", deviceId: "contactSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + contactObject[0].setValue([name: "tamper.tampered", value: "open", deviceId: "contactSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/temperatureHighEvent.groovy b/eventSimulator/temperatureHighEvent.groovy index d044685..359bc70 100644 --- a/eventSimulator/temperatureHighEvent.groovy +++ b/eventSimulator/temperatureHighEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "temperature", value: "55", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "temperature", value: "55", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/temperatureHighMeasurementEvent.groovy b/eventSimulator/temperatureHighMeasurementEvent.groovy index 9e7db63..c720f9e 100644 --- a/eventSimulator/temperatureHighMeasurementEvent.groovy +++ b/eventSimulator/temperatureHighMeasurementEvent.groovy @@ -1,2 +1,2 @@ - temperatureMeasurementObject.setValue([name: "temperature", value: "55"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "", + temperatureMeasurementObject[0].setValue([name: "temperature", value: "55"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/temperatureLowEvent.groovy b/eventSimulator/temperatureLowEvent.groovy index cddbef7..ce44368 100644 --- a/eventSimulator/temperatureLowEvent.groovy +++ b/eventSimulator/temperatureLowEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "temperature", value: "45", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "temperature", value: "45", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/temperatureLowMeasurementEvent.groovy b/eventSimulator/temperatureLowMeasurementEvent.groovy index b8bce76..13801b9 100644 --- a/eventSimulator/temperatureLowMeasurementEvent.groovy +++ b/eventSimulator/temperatureLowMeasurementEvent.groovy @@ -1,2 +1,2 @@ - temperatureMeasurementObject.setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "", + temperatureMeasurementObject[0].setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatAutoFanModeEvent.groovy b/eventSimulator/thermostatAutoFanModeEvent.groovy index 40d3de8..767468f 100644 --- a/eventSimulator/thermostatAutoFanModeEvent.groovy +++ b/eventSimulator/thermostatAutoFanModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatFanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatFanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatAutoModeEvent.groovy b/eventSimulator/thermostatAutoModeEvent.groovy index 5664cce..f549d18 100644 --- a/eventSimulator/thermostatAutoModeEvent.groovy +++ b/eventSimulator/thermostatAutoModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatCirculateFanModeEvent.groovy b/eventSimulator/thermostatCirculateFanModeEvent.groovy index d1aeb18..b9cb8a5 100644 --- a/eventSimulator/thermostatCirculateFanModeEvent.groovy +++ b/eventSimulator/thermostatCirculateFanModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatFanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatFanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatCoolModeEvent.groovy b/eventSimulator/thermostatCoolModeEvent.groovy index 052a96a..dcdae8e 100644 --- a/eventSimulator/thermostatCoolModeEvent.groovy +++ b/eventSimulator/thermostatCoolModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatEmergencyHeatModeEvent.groovy b/eventSimulator/thermostatEmergencyHeatModeEvent.groovy index 2038fc0..2a37d60 100644 --- a/eventSimulator/thermostatEmergencyHeatModeEvent.groovy +++ b/eventSimulator/thermostatEmergencyHeatModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatFanCirculateFanModeEvent.groovy b/eventSimulator/thermostatFanCirculateFanModeEvent.groovy index 2812058..37f2276 100644 --- a/eventSimulator/thermostatFanCirculateFanModeEvent.groovy +++ b/eventSimulator/thermostatFanCirculateFanModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatFanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatFanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatFanOnFanModeEvent.groovy b/eventSimulator/thermostatFanOnFanModeEvent.groovy index 102067e..ca12fea 100644 --- a/eventSimulator/thermostatFanOnFanModeEvent.groovy +++ b/eventSimulator/thermostatFanOnFanModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatFanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatFanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatHeatModeEvent.groovy b/eventSimulator/thermostatHeatModeEvent.groovy index 34d1c52..d534319 100644 --- a/eventSimulator/thermostatHeatModeEvent.groovy +++ b/eventSimulator/thermostatHeatModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOffModeEvent.groovy b/eventSimulator/thermostatOffModeEvent.groovy index cc5ec72..b9649ca 100644 --- a/eventSimulator/thermostatOffModeEvent.groovy +++ b/eventSimulator/thermostatOffModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOnFanModeEvent.groovy b/eventSimulator/thermostatOnFanModeEvent.groovy index 0a8806b..de8775d 100644 --- a/eventSimulator/thermostatOnFanModeEvent.groovy +++ b/eventSimulator/thermostatOnFanModeEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatFanMode", value: "on", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatFanMode", value: "on", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOperatingStateAutoEvent.groovy b/eventSimulator/thermostatOperatingStateAutoEvent.groovy index 8ec6866..42bb22e 100644 --- a/eventSimulator/thermostatOperatingStateAutoEvent.groovy +++ b/eventSimulator/thermostatOperatingStateAutoEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatOperatingState", value: "auto", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatOperatingState", value: "auto", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOperatingStateCoolEvent.groovy b/eventSimulator/thermostatOperatingStateCoolEvent.groovy index d281296..b8902af 100644 --- a/eventSimulator/thermostatOperatingStateCoolEvent.groovy +++ b/eventSimulator/thermostatOperatingStateCoolEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatOperatingState", value: "cool", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatOperatingState", value: "cool", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy b/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy index c2f0499..92af6d7 100644 --- a/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy +++ b/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatOperatingState", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatOperatingState", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOperatingStateHeatEvent.groovy b/eventSimulator/thermostatOperatingStateHeatEvent.groovy index a16c9e5..1df90d6 100644 --- a/eventSimulator/thermostatOperatingStateHeatEvent.groovy +++ b/eventSimulator/thermostatOperatingStateHeatEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatOperatingState", value: "heat", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatOperatingState", value: "heat", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatOperatingStateOffEvent.groovy b/eventSimulator/thermostatOperatingStateOffEvent.groovy index c15f7d7..086b6e7 100644 --- a/eventSimulator/thermostatOperatingStateOffEvent.groovy +++ b/eventSimulator/thermostatOperatingStateOffEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatOperatingState", value: "off", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatOperatingState", value: "off", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/thermostatSetpointEvent.groovy b/eventSimulator/thermostatSetpointEvent.groovy index b6ced73..3103146 100644 --- a/eventSimulator/thermostatSetpointEvent.groovy +++ b/eventSimulator/thermostatSetpointEvent.groovy @@ -1,2 +1,2 @@ - thermostatObject.setValue([name: "thermostatSetpoint", value: "50", deviceId: "thermostatID0", descriptionText: "", + thermostatObject[0].setValue([name: "thermostatSetpoint", value: "50", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/threeAxisChangeEvent.groovy b/eventSimulator/threeAxisChangeEvent.groovy index 2ce9b60..643dd63 100644 --- a/eventSimulator/threeAxisChangeEvent.groovy +++ b/eventSimulator/threeAxisChangeEvent.groovy @@ -1,2 +1,2 @@ - threeAxisObject.setValue([name: "threeAxis", value: '{"x": 1, "y": 2, "z": 3}', deviceId: "threeAxisID0", descriptionText: "", + threeAxisObject[0].setValue([name: "threeAxis", value: '{"x": 1, "y": 2, "z": 3}', deviceId: "threeAxisID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/ultravioletIndexEvent.groovy b/eventSimulator/ultravioletIndexEvent.groovy index 29994fd..95e1420 100644 --- a/eventSimulator/ultravioletIndexEvent.groovy +++ b/eventSimulator/ultravioletIndexEvent.groovy @@ -1,2 +1,2 @@ - ultravioletIndexObject.setValue([name: "ultravioletIndex", value: "someValue", deviceId: "ultravioletIndexID0", descriptionText: "", + ultravioletIndexObject[0].setValue([name: "ultravioletIndex", value: "someValue", deviceId: "ultravioletIndexID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/unlockEvent.groovy b/eventSimulator/unlockEvent.groovy index f86ce3c..ec7e7ff 100644 --- a/eventSimulator/unlockEvent.groovy +++ b/eventSimulator/unlockEvent.groovy @@ -1,2 +1,2 @@ - lockObject.setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "", + lockObject[0].setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/valveClosedEvent.groovy b/eventSimulator/valveClosedEvent.groovy index bc0e45f..9c0ce08 100644 --- a/eventSimulator/valveClosedEvent.groovy +++ b/eventSimulator/valveClosedEvent.groovy @@ -1,2 +1,2 @@ - valveObject.setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "", + valveObject[0].setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/valveOpenEvent.groovy b/eventSimulator/valveOpenEvent.groovy index 8cee49b..fe8f20c 100644 --- a/eventSimulator/valveOpenEvent.groovy +++ b/eventSimulator/valveOpenEvent.groovy @@ -1,2 +1,2 @@ - valveObject.setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "", + valveObject[0].setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/voltageEvent.groovy b/eventSimulator/voltageEvent.groovy index 4ab6d7e..3c93513 100644 --- a/eventSimulator/voltageEvent.groovy +++ b/eventSimulator/voltageEvent.groovy @@ -1,2 +1,2 @@ - voltageMeasurementObject.setValue([name: "voltage", value: "22", deviceId: "voltageMeasurementID0", descriptionText: "", + voltageMeasurementObject[0].setValue([name: "voltage", value: "22", deviceId: "voltageMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/waterDefaultDryEvent.groovy b/eventSimulator/waterDefaultDryEvent.groovy index ee70792..3937875 100644 --- a/eventSimulator/waterDefaultDryEvent.groovy +++ b/eventSimulator/waterDefaultDryEvent.groovy @@ -1,2 +1,2 @@ - waterSensorObject.setValue([name: "water.dry", value: "dry", deviceId: "waterSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + waterSensorObject[0].setValue([name: "water.dry", value: "dry", deviceId: "waterSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/waterDefaultWetEvent.groovy b/eventSimulator/waterDefaultWetEvent.groovy index 56c992a..45de364 100644 --- a/eventSimulator/waterDefaultWetEvent.groovy +++ b/eventSimulator/waterDefaultWetEvent.groovy @@ -1,2 +1,2 @@ - waterSensorObject.setValue([name: "water.wet", value: "wet", deviceId: "waterSensorID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) \ No newline at end of file + waterSensorObject[0].setValue([name: "water.wet", value: "wet", deviceId: "waterSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/waterDryEvent.groovy b/eventSimulator/waterDryEvent.groovy index ff6d624..90ccc30 100644 --- a/eventSimulator/waterDryEvent.groovy +++ b/eventSimulator/waterDryEvent.groovy @@ -1,2 +1,2 @@ - waterSensorObject.setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "", + waterSensorObject[0].setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/waterWetEvent.groovy b/eventSimulator/waterWetEvent.groovy index 7a134f2..ad930e5 100644 --- a/eventSimulator/waterWetEvent.groovy +++ b/eventSimulator/waterWetEvent.groovy @@ -1,2 +1,2 @@ - waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "", + waterSensorObject[0].setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/windowShadeEvent.groovy b/eventSimulator/windowShadeEvent.groovy index 6f9d92d..243753b 100644 --- a/eventSimulator/windowShadeEvent.groovy +++ b/eventSimulator/windowShadeEvent.groovy @@ -1,2 +1,2 @@ - windowShadeObject.setValue([name: "windowShade", value: "someValue", deviceId: "windowShadeID0", descriptionText: "", + windowShadeObject[0].setValue([name: "windowShade", value: "someValue", deviceId: "windowShadeID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])