From: Seyed Amir Hossein Aqajari Date: Thu, 30 Jan 2020 22:44:16 +0000 (-0800) Subject: Infrastructure compatible with locks' group! X-Git-Url: http://demsky.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=4ae86fc86ba1f31391ad4136d5c9b39625974f78 Infrastructure compatible with locks' group! --- diff --git a/eventSimulator/carbonDioxideEvent.groovy b/eventSimulator/carbonDioxideEvent.groovy index 1b951e0..7483f2e 100644 --- a/eventSimulator/carbonDioxideEvent.groovy +++ b/eventSimulator/carbonDioxideEvent.groovy @@ -1,2 +1,2 @@ - carbonDioxideMeasurementObject[0].setValue([name: "carbonDioxide", value: 45, deviceId: "carbonDioxideID0", descriptionText: "", + carbonDioxideMeasurementObject.setValue([name: "carbonDioxide", value: 45, deviceId: "carbonDioxideID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/consumableStatusEvent.groovy b/eventSimulator/consumableStatusEvent.groovy index 6f470ed..8d57d89 100644 --- a/eventSimulator/consumableStatusEvent.groovy +++ b/eventSimulator/consumableStatusEvent.groovy @@ -1,2 +1,2 @@ - consumableObject[0].setValue([name: "consumableStatus", value: "status", deviceId: "consumableID0", descriptionText: "", + consumableObject.setValue([name: "consumableStatus", value: "status", deviceId: "consumableID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/lqiEvent.groovy b/eventSimulator/lqiEvent.groovy index aee8917..9dd3d20 100644 --- a/eventSimulator/lqiEvent.groovy +++ b/eventSimulator/lqiEvent.groovy @@ -1,2 +1,2 @@ - signalStrengthObject[0].setValue([name: "lqi", value: 70, deviceId: "signalStrengthID0", descriptionText: "", + signalStrengthObject.setValue([name: "lqi", value: 70, deviceId: "signalStrengthID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/nfcTouchEvent.groovy b/eventSimulator/nfcTouchEvent.groovy index b8eef4b..1409566 100644 --- a/eventSimulator/nfcTouchEvent.groovy +++ b/eventSimulator/nfcTouchEvent.groovy @@ -1,2 +1,2 @@ - touchSensorObject[0].setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "", + touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/pHEvent.groovy b/eventSimulator/pHEvent.groovy index 200cafe..2efdb03 100644 --- a/eventSimulator/pHEvent.groovy +++ b/eventSimulator/pHEvent.groovy @@ -1,2 +1,2 @@ - pHMeasurementObject[0].setValue([name: "pH", value: 40, deviceId: "pHMeasurementID0", descriptionText: "", + pHMeasurementObject.setValue([name: "pH", value: 40, deviceId: "pHMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/pressureEvent.groovy b/eventSimulator/pressureEvent.groovy index 95b897f..8cc4aae 100644 --- a/eventSimulator/pressureEvent.groovy +++ b/eventSimulator/pressureEvent.groovy @@ -1,2 +1,2 @@ - sensorObject[0].setValue([name: "pressure", value: 40, deviceId: "sensorID0", descriptionText: "", + sensorObject.setValue([name: "pressure", value: 40, deviceId: "sensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/rssiEvent.groovy b/eventSimulator/rssiEvent.groovy index a0d49e5..f45cdf6 100644 --- a/eventSimulator/rssiEvent.groovy +++ b/eventSimulator/rssiEvent.groovy @@ -1,2 +1,2 @@ - signalStrengthObject[0].setValue([name: "rssi", value: 70, deviceId: "signalStrengthID0", descriptionText: "", + signalStrengthObject.setValue([name: "rssi", value: 70, deviceId: "signalStrengthID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/shockEvent.groovy b/eventSimulator/shockEvent.groovy index d700291..4c5e8fc 100644 --- a/eventSimulator/shockEvent.groovy +++ b/eventSimulator/shockEvent.groovy @@ -1,2 +1,2 @@ - shockSensorObject[0].setValue([name: "shock", value: "shocked", deviceId: "shockSensorID0", descriptionText: "", + shockSensorObject.setValue([name: "shock", value: "shocked", deviceId: "shockSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/soundEvent.groovy b/eventSimulator/soundEvent.groovy index 418c796..410608a 100644 --- a/eventSimulator/soundEvent.groovy +++ b/eventSimulator/soundEvent.groovy @@ -1,2 +1,2 @@ - soundSensorObject[0].setValue([name: "sound", value: 54, deviceId: "soundSensorID0", descriptionText: "", + soundSensorObject.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 293302c..98788aa 100644 --- a/eventSimulator/soundPressureLevelEvent.groovy +++ b/eventSimulator/soundPressureLevelEvent.groovy @@ -1,2 +1,2 @@ - soundPressureLevelObject[0].setValue([name: "soundPressureLevel", value: 70, deviceId: "soundPressureLevelID0", descriptionText: "", + soundPressureLevelObject.setValue([name: "soundPressureLevel", value: 70, deviceId: "soundPressureLevelID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/tamperEvent.groovy b/eventSimulator/tamperEvent.groovy index 5422153..b69daee 100644 --- a/eventSimulator/tamperEvent.groovy +++ b/eventSimulator/tamperEvent.groovy @@ -1,2 +1,2 @@ - tamperAlertObject[0].setValue([name: "tamper", value: "tampered", deviceId: "tamperAlertID0", descriptionText: "", + tamperAlertObject.setValue([name: "tamper", value: "tampered", deviceId: "tamperAlertID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/ultravioletIndexEvent.groovy b/eventSimulator/ultravioletIndexEvent.groovy index 95e1420..29994fd 100644 --- a/eventSimulator/ultravioletIndexEvent.groovy +++ b/eventSimulator/ultravioletIndexEvent.groovy @@ -1,2 +1,2 @@ - ultravioletIndexObject[0].setValue([name: "ultravioletIndex", value: "someValue", deviceId: "ultravioletIndexID0", descriptionText: "", + ultravioletIndexObject.setValue([name: "ultravioletIndex", value: "someValue", deviceId: "ultravioletIndexID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/voltageEvent.groovy b/eventSimulator/voltageEvent.groovy index 4ea2307..07c36d6 100644 --- a/eventSimulator/voltageEvent.groovy +++ b/eventSimulator/voltageEvent.groovy @@ -1,2 +1,2 @@ - voltageMeasurementObject[0].setValue([name: "voltage", value: 22, deviceId: "voltageMeasurementID0", descriptionText: "", + voltageMeasurementObject.setValue([name: "voltage", value: 22, deviceId: "voltageMeasurementID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) diff --git a/eventSimulator/windowShadeEvent.groovy b/eventSimulator/windowShadeEvent.groovy index 243753b..6f9d92d 100644 --- a/eventSimulator/windowShadeEvent.groovy +++ b/eventSimulator/windowShadeEvent.groovy @@ -1,2 +1,2 @@ - windowShadeObject[0].setValue([name: "windowShade", value: "someValue", deviceId: "windowShadeID0", descriptionText: "", + windowShadeObject.setValue([name: "windowShade", value: "someValue", deviceId: "windowShadeID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])