Add changes in events
authoramiraj <amiraj.95@uci.edu>
Thu, 23 Jan 2020 01:42:38 +0000 (17:42 -0800)
committeramiraj <amiraj.95@uci.edu>
Thu, 23 Jan 2020 01:42:38 +0000 (17:42 -0800)
147 files changed:
Location/LocationVar.groovy
SmartThing/SmartThing.groovy
eventSimulator/accelerationActiveEvent.groovy
eventSimulator/accelerationDefaultActiveEvent.groovy
eventSimulator/accelerationDefaultInactiveEvent.groovy
eventSimulator/accelerationInactiveEvent.groovy
eventSimulator/aeonKeyFobHeldEvent.groovy
eventSimulator/aeonKeyFobPushedEvent.groovy
eventSimulator/alarmBothEvent.groovy
eventSimulator/alarmOffEvent.groovy
eventSimulator/alarmSirenEvent.groovy
eventSimulator/alarmStrobeEvent.groovy
eventSimulator/batteryBatteryEvent.groovy
eventSimulator/buttonHeldEvent.groovy
eventSimulator/buttonPushedEvent.groovy
eventSimulator/carbonDioxideEvent.groovy
eventSimulator/carbonMonoxideClearEvent.groovy
eventSimulator/carbonMonoxideDefaultClearEvent.groovy
eventSimulator/carbonMonoxideDefaultDetectedEvent.groovy
eventSimulator/carbonMonoxideDefaultTestedEvent.groovy
eventSimulator/carbonMonoxideDetectedEvent.groovy
eventSimulator/carbonMonoxideTestedEvent.groovy
eventSimulator/colorChangeEvent.groovy
eventSimulator/colorControlSwitchOffDefaultEvent.groovy
eventSimulator/colorControlSwitchOffEvent.groovy
eventSimulator/colorControlSwitchOnDefaultEvent.groovy
eventSimulator/colorControlSwitchOnEvent.groovy
eventSimulator/colorLevelChangeEvent.groovy
eventSimulator/colorTemperatureEvent.groovy
eventSimulator/colorTemperatureSwitchOffDefaultEvent.groovy
eventSimulator/colorTemperatureSwitchOffEvent.groovy
eventSimulator/colorTemperatureSwitchOnDefaultEvent.groovy
eventSimulator/colorTemperatureSwitchOnEvent.groovy
eventSimulator/consumableStatusEvent.groovy
eventSimulator/contactClosedEvent.groovy
eventSimulator/contactDefaultClosedEvent.groovy
eventSimulator/contactDefaultOpenEvent.groovy
eventSimulator/contactOpenEvent.groovy
eventSimulator/coolingSetpointEvent.groovy
eventSimulator/doorClosedEvent.groovy
eventSimulator/doorOpenEvent.groovy
eventSimulator/energyMeterEvent.groovy
eventSimulator/eventSwitchOff.groovy
eventSimulator/eventSwitchOn.groovy
eventSimulator/heatingSetpointEvent.groovy
eventSimulator/hueChangeEvent.groovy
eventSimulator/humidityHighMeasurementEvent.groovy
eventSimulator/humidityLowMeasurementEvent.groovy
eventSimulator/humidityMeasurementEvent.groovy
eventSimulator/illuminanceMeasurementHighEvent.groovy
eventSimulator/illuminanceMeasurementLowEvent.groovy
eventSimulator/lockLockedEvent.groovy
eventSimulator/lockUnlockedEvent.groovy
eventSimulator/lqiEvent.groovy
eventSimulator/modeHomeEvent.groovy
eventSimulator/motionActiveEvent.groovy
eventSimulator/motionDefaultActiveEvent.groovy
eventSimulator/motionDefaultInactiveEvent.groovy
eventSimulator/motionInactiveEvent.groovy
eventSimulator/musicPlayerLevelEvent.groovy
eventSimulator/musicPlayerMutedEvent.groovy
eventSimulator/musicPlayerPausedEvent.groovy
eventSimulator/musicPlayerPlayingEvent.groovy
eventSimulator/musicPlayerStoppedEvent.groovy
eventSimulator/musicPlayerTrackDataEvent.groovy
eventSimulator/musicPlayerTrackDescriptionEvent.groovy
eventSimulator/musicPlayerUnmutedEvent.groovy
eventSimulator/pHEvent.groovy
eventSimulator/powerMeterEvent.groovy
eventSimulator/powerMeterHighPowerEvent.groovy
eventSimulator/powerMeterLowPowerEvent.groovy
eventSimulator/presenceLeftEvent.groovy
eventSimulator/presencePresencePresentEvent.groovy
eventSimulator/presencePresentEvent.groovy
eventSimulator/pressureEvent.groovy
eventSimulator/relaySwitchOffDefaultEvent.groovy
eventSimulator/relaySwitchOffEvent.groovy
eventSimulator/relaySwitchOnDefaultEvent.groovy
eventSimulator/relaySwitchOnEvent.groovy
eventSimulator/rssiEvent.groovy
eventSimulator/saturationChangeEvent.groovy
eventSimulator/shockEvent.groovy
eventSimulator/sleepNotSleepingEvent.groovy
eventSimulator/sleepSleepingEvent.groovy
eventSimulator/smokeCarbonMonoxideClearEvent.groovy
eventSimulator/smokeCarbonMonoxideDefaultClearEvent.groovy
eventSimulator/smokeCarbonMonoxideDefaultDetectedEvent.groovy
eventSimulator/smokeCarbonMonoxideDefaultTestedEvent.groovy
eventSimulator/smokeCarbonMonoxideDetectedEvent.groovy
eventSimulator/smokeCarbonMonoxideTestedEvent.groovy
eventSimulator/smokeClearEvent.groovy
eventSimulator/smokeDefaultClearEvent.groovy
eventSimulator/smokeDefaultDetectedEvent.groovy
eventSimulator/smokeDefaultTestedEvent.groovy
eventSimulator/smokeDetectedEvent.groovy
eventSimulator/smokeDetectorBatteryEvent.groovy
eventSimulator/smokeTestedEvent.groovy
eventSimulator/soundEvent.groovy
eventSimulator/soundPressureLevelEvent.groovy
eventSimulator/stepGoalHighEvent.groovy
eventSimulator/stepGoalLowEvent.groovy
eventSimulator/stepStepsHighEvent.groovy
eventSimulator/stepStepsLowEvent.groovy
eventSimulator/switchLevelChangeEvent.groovy
eventSimulator/switchLevelEvent.groovy
eventSimulator/switchLevelOffDefaultEvent.groovy
eventSimulator/switchLevelOffEvent.groovy
eventSimulator/switchLevelOnDefaultEvent.groovy
eventSimulator/switchLevelOnEvent.groovy
eventSimulator/switchOffDefaultEvent.groovy
eventSimulator/switchOffEvent.groovy
eventSimulator/switchOnDefaultEvent.groovy
eventSimulator/switchOnEvent.groovy
eventSimulator/tamperEvent.groovy
eventSimulator/tamperTamperedClosedEvent.groovy
eventSimulator/tamperTamperedOpenEvent.groovy
eventSimulator/temperatureHighEvent.groovy
eventSimulator/temperatureHighMeasurementEvent.groovy
eventSimulator/temperatureLowEvent.groovy
eventSimulator/temperatureLowMeasurementEvent.groovy
eventSimulator/thermostatAutoFanModeEvent.groovy
eventSimulator/thermostatAutoModeEvent.groovy
eventSimulator/thermostatCirculateFanModeEvent.groovy
eventSimulator/thermostatCoolModeEvent.groovy
eventSimulator/thermostatEmergencyHeatModeEvent.groovy
eventSimulator/thermostatFanCirculateFanModeEvent.groovy
eventSimulator/thermostatFanOnFanModeEvent.groovy
eventSimulator/thermostatHeatModeEvent.groovy
eventSimulator/thermostatOffModeEvent.groovy
eventSimulator/thermostatOnFanModeEvent.groovy
eventSimulator/thermostatOperatingStateAutoEvent.groovy
eventSimulator/thermostatOperatingStateCoolEvent.groovy
eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy
eventSimulator/thermostatOperatingStateHeatEvent.groovy
eventSimulator/thermostatOperatingStateOffEvent.groovy
eventSimulator/thermostatSetpointEvent.groovy
eventSimulator/threeAxisChangeEvent.groovy
eventSimulator/ultravioletIndexEvent.groovy
eventSimulator/unlockEvent.groovy
eventSimulator/valveClosedEvent.groovy
eventSimulator/valveOpenEvent.groovy
eventSimulator/voltageEvent.groovy
eventSimulator/waterDefaultDryEvent.groovy
eventSimulator/waterDefaultWetEvent.groovy
eventSimulator/waterDryEvent.groovy
eventSimulator/waterWetEvent.groovy
eventSimulator/windowShadeEvent.groovy

index 986cf78..e7328c5 100755 (executable)
@@ -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()
        }
index 7f08910..a690760 100644 (file)
@@ -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)
                }
        }
 
index 6991b56..725c514 100644 (file)
@@ -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"}'])
index d62800b..f99b46d 100644 (file)
@@ -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"}'])
index 563630c..d675af6 100644 (file)
@@ -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"}'])
index eaa876f..d5e6a22 100644 (file)
@@ -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"}'])
index 3937ff6..d05984e 100644 (file)
@@ -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"}'])
index 889af89..7896e99 100644 (file)
@@ -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"}'])
index 03ca061..1ba53e8 100644 (file)
@@ -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"}'])
index 6862af9..39f2ff9 100644 (file)
@@ -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"}'])
index b3efa58..3b39d0f 100644 (file)
@@ -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"}'])
index cdb5fdf..beb7529 100644 (file)
@@ -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"}'])
index ebf4a78..61f5a92 100644 (file)
@@ -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"}'])
index 555ea4e..31e9b09 100644 (file)
@@ -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}'])
index a7bbdea..d528d78 100644 (file)
@@ -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}'])
index 83c88b9..e4f712b 100644 (file)
@@ -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"}'])
index fb3520d..0595c8e 100644 (file)
@@ -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"}'])
index 1a48705..57708b1 100644 (file)
@@ -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"}'])
index 813441a..0590427 100644 (file)
@@ -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"}'])
index dd01e4c..f88a328 100644 (file)
@@ -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"}'])
index 6686f91..6594fa7 100644 (file)
@@ -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"}'])
index 6686f91..6594fa7 100644 (file)
@@ -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"}'])
index 5ed3b4f..2ff42c8 100644 (file)
@@ -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"}'])
index 0787970..da20561 100644 (file)
@@ -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"}'])
index 56d3dfe..a457fda 100644 (file)
@@ -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"}'])
index 9f2c849..735fc57 100644 (file)
@@ -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"}'])
index c39c026..ecdd464 100644 (file)
@@ -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"}'])
index 9989cbf..85d255b 100644 (file)
@@ -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"}'])
index d34e4ba..9f2ded3 100644 (file)
@@ -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"}'])
index b78ba5b..99dde39 100644 (file)
@@ -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"}'])
index add53cb..69d4589 100644 (file)
@@ -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"}'])
index 0d2a0d6..115a38a 100644 (file)
@@ -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"}'])
index c64a841..8df66c6 100644 (file)
@@ -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"}'])
index 8d57d89..6f470ed 100644 (file)
@@ -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"}'])
index db18679..ee6363c 100644 (file)
@@ -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"}'])
index 0b74952..00795d9 100644 (file)
@@ -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"}'])
index 71c81c5..55d7a42 100644 (file)
@@ -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"}'])
index 5750394..84f7221 100644 (file)
@@ -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"}'])
index bfc0869..12ec029 100644 (file)
@@ -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"}'])
index a658599..8220ad4 100644 (file)
@@ -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"}'])
index 1ed1130..35bd04e 100644 (file)
@@ -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"}'])
index 597f372..c13fe92 100644 (file)
@@ -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"}'])
index 23e12ec..8bd16b8 100644 (file)
@@ -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"}'])
index 864721e..c24b7ac 100644 (file)
@@ -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"}'])
index 7c2f189..2f54a4a 100644 (file)
@@ -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"}'])
index b5d20d2..8485e9a 100644 (file)
@@ -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"}'])
index bcfe170..cd1ae02 100644 (file)
@@ -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"}'])
index 4692c5d..55ea84f 100644 (file)
@@ -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"}'])
index bcfe170..cd1ae02 100644 (file)
@@ -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"}'])
index c2c5029..e296ebd 100644 (file)
@@ -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"}'])
index f515640..fe96531 100644 (file)
@@ -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"}'])
index e208c90..e66b5e9 100644 (file)
@@ -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"}'])
index 7ce594b..4911eab 100644 (file)
@@ -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"}'])
index b0cd918..afd4743 100644 (file)
@@ -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"}'])
index 1dbd8a8..6791eec 100644 (file)
@@ -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"}'])
index b99b59e..869ed7e 100644 (file)
@@ -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"}'])
index 4feb46d..3047149 100644 (file)
@@ -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"}'])
index fc5142b..37a3f17 100644 (file)
@@ -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"}'])
index a6b95d2..546386e 100644 (file)
@@ -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"}'])
index 8f520cf..57730f3 100644 (file)
@@ -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"}'])
index d642662..f7fc270 100644 (file)
@@ -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"}'])
index 19bcc3d..49a9da9 100644 (file)
@@ -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"}'])
index a703e3a..ae2234a 100644 (file)
@@ -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"}'])
index 24f4146..68d8eff 100644 (file)
@@ -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"}'])
index 3be6fcb..623f2e0 100644 (file)
@@ -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"}'])
index 64fd491..23ba4b3 100644 (file)
@@ -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"}'])
index 7c2f924..531290b 100644 (file)
@@ -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"}'])
index cf52512..22d2a6d 100644 (file)
@@ -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"}'])
index 2fdf6dd..b84d5ea 100644 (file)
@@ -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"}'])
index 2fdf6dd..b84d5ea 100644 (file)
@@ -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"}'])
index 58f7c58..9a7bd85 100644 (file)
@@ -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"}'])
index 39e198a..71b4da7 100644 (file)
@@ -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"}'])
index 9697195..0a139fc 100644 (file)
@@ -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"}'])
index cd4154d..4a41376 100644 (file)
@@ -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"}'])
index 68e0f75..f2fd896 100644 (file)
@@ -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"}'])
index 4b1f86e..297ad04 100644 (file)
@@ -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"}'])
index 89009c6..237310b 100644 (file)
@@ -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"}'])
index b8a63e2..53d0da2 100644 (file)
@@ -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"}'])
index 96a5bee..5ee956c 100644 (file)
@@ -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"}'])
index 47e33e5..28e8cef 100644 (file)
@@ -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"}'])
index 5327de2..e0c9e54 100644 (file)
@@ -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"}'])
index 4c5e8fc..d700291 100644 (file)
@@ -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"}'])
index 2abc19a..cb5c668 100644 (file)
@@ -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"}'])
index 0b77e7d..b4d7f64 100644 (file)
@@ -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"}'])
index 7c1df43..83cf013 100644 (file)
@@ -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"}'])
index 5ab06b4..976a518 100644 (file)
@@ -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"}'])
index a2efc20..3e6eb9e 100644 (file)
@@ -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"}'])
index 878b67a..5fc7b91 100644 (file)
@@ -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"}'])
index b889098..f6b54cb 100644 (file)
@@ -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"}'])
index 2ce58bc..f417ae4 100644 (file)
@@ -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"}'])
index e285e5e..4e7bfd7 100644 (file)
@@ -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"}'])
index 57083a8..ed1c9c6 100644 (file)
@@ -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"}'])
index 8683e25..ca6c642 100644 (file)
@@ -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"}'])
index 314a506..a481423 100644 (file)
@@ -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"}'])
index ce80e5f..2bfc393 100644 (file)
@@ -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"}'])
index 0bc041c..9917b56 100644 (file)
@@ -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"}'])
index 3cbbd3a..c3f4d93 100644 (file)
@@ -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"}'])
index 8e9bd1e..974661e 100644 (file)
@@ -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"}'])
index e5dc02b..f4dc37d 100644 (file)
@@ -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"}'])
index 190b5d5..51b9f3d 100644 (file)
@@ -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"}'])
index cbec67f..2ed4014 100644 (file)
@@ -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"}'])
index 151b5c0..3714a7f 100644 (file)
@@ -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"}'])
index 60da0e0..993b16b 100644 (file)
@@ -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"}'])
index 502de0a..0757765 100644 (file)
@@ -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"}'])
index 177164a..18ce77a 100644 (file)
@@ -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"}'])
index 1a7d43c..adb59e7 100644 (file)
@@ -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"}'])
index 6f02dcf..c0f5b55 100644 (file)
@@ -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"}'])
index bd44730..0c021a8 100644 (file)
@@ -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"}'])
index 2d534c9..d9cbcf5 100644 (file)
@@ -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"}'])
index d10deb1..252781e 100644 (file)
@@ -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"}'])
index ea3b9f5..dd82457 100644 (file)
@@ -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"}'])
index a25c74f..d770050 100644 (file)
@@ -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"}'])
index fa1ef3a..b9b7786 100644 (file)
@@ -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"}'])
index b69daee..5422153 100644 (file)
@@ -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"}'])
index b78c3ea..c9e73db 100644 (file)
@@ -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"}'])
index 1da44bf..1dd5521 100644 (file)
@@ -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"}'])
index d044685..359bc70 100644 (file)
@@ -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"}'])
index 9e7db63..c720f9e 100644 (file)
@@ -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"}'])
index cddbef7..ce44368 100644 (file)
@@ -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"}'])
index b8bce76..13801b9 100644 (file)
@@ -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"}'])
index 40d3de8..767468f 100644 (file)
@@ -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"}'])
index 5664cce..f549d18 100644 (file)
@@ -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"}'])
index d1aeb18..b9cb8a5 100644 (file)
@@ -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"}'])
index 052a96a..dcdae8e 100644 (file)
@@ -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"}'])
index 2038fc0..2a37d60 100644 (file)
@@ -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"}'])
index 2812058..37f2276 100644 (file)
@@ -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"}'])
index 102067e..ca12fea 100644 (file)
@@ -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"}'])
index 34d1c52..d534319 100644 (file)
@@ -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"}'])
index cc5ec72..b9649ca 100644 (file)
@@ -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"}'])
index 0a8806b..de8775d 100644 (file)
@@ -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"}'])
index 8ec6866..42bb22e 100644 (file)
@@ -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"}'])
index d281296..b8902af 100644 (file)
@@ -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"}'])
index c2f0499..92af6d7 100644 (file)
@@ -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"}'])
index a16c9e5..1df90d6 100644 (file)
@@ -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"}'])
index c15f7d7..086b6e7 100644 (file)
@@ -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"}'])
index b6ced73..3103146 100644 (file)
@@ -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"}'])
index 2ce9b60..643dd63 100644 (file)
@@ -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"}'])
index 29994fd..95e1420 100644 (file)
@@ -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"}'])
index f86ce3c..ec7e7ff 100644 (file)
@@ -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"}'])
index bc0e45f..9c0ce08 100644 (file)
@@ -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"}'])
index 8cee49b..fe8f20c 100644 (file)
@@ -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"}'])
index 4ab6d7e..3c93513 100644 (file)
@@ -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"}'])
index ee70792..3937875 100644 (file)
@@ -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"}'])
index 56c992a..45de364 100644 (file)
@@ -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"}'])
index ff6d624..90ccc30 100644 (file)
@@ -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"}'])
index 7a134f2..ad930e5 100644 (file)
@@ -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"}'])
index 6f9d92d..243753b 100644 (file)
@@ -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"}'])