Adding new events.
authorrtrimana <rtrimana@uci.edu>
Tue, 30 Jul 2019 00:51:53 +0000 (17:51 -0700)
committerrtrimana <rtrimana@uci.edu>
Tue, 30 Jul 2019 00:51:53 +0000 (17:51 -0700)
54 files changed:
eventSimulator/alarmBothEvent.groovy [new file with mode: 0644]
eventSimulator/alarmOffEvent.groovy [new file with mode: 0644]
eventSimulator/alarmSirenEvent.groovy [new file with mode: 0644]
eventSimulator/alarmStrobeEvent.groovy [new file with mode: 0644]
eventSimulator/batteryBatteryEvent.groovy [new file with mode: 0644]
eventSimulator/batteryChargeEvent.groovy [deleted file]
eventSimulator/contactDefaultClosedEvent.groovy [new file with mode: 0644]
eventSimulator/contactDefaultOpenEvent.groovy [new file with mode: 0644]
eventSimulator/coolingSetpointEvent.groovy [new file with mode: 0644]
eventSimulator/energyMeterEvent.groovy [new file with mode: 0644]
eventSimulator/eventSimulator.groovy
eventSimulator/heatingSetpointEvent.groovy [new file with mode: 0644]
eventSimulator/humidityMeasurementEvent.groovy [new file with mode: 0644]
eventSimulator/illuminanceMeasurementEvent.groovy [new file with mode: 0644]
eventSimulator/lockEvent.groovy [deleted file]
eventSimulator/lockLockedEvent.groovy [new file with mode: 0644]
eventSimulator/lockUnlockedEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerLevelEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerMutedEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerPausedEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerPlayingEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerStoppedEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerTrackDataEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerTrackDescriptionEvent.groovy [new file with mode: 0644]
eventSimulator/musicPlayerUnmutedEvent.groovy [new file with mode: 0644]
eventSimulator/powerMeterEvent.groovy [new file with mode: 0644]
eventSimulator/presencePresencePresentEvent.groovy [new file with mode: 0644]
eventSimulator/relaySwitchOffEvent.groovy [new file with mode: 0644]
eventSimulator/relaySwitchOnEvent.groovy [new file with mode: 0644]
eventSimulator/sleepNotSleepingEvent.groovy [new file with mode: 0644]
eventSimulator/sleepSleepingEvent.groovy [new file with mode: 0644]
eventSimulator/smokeDetectorBatteryEvent.groovy [new file with mode: 0644]
eventSimulator/stepGoalEvent.groovy [new file with mode: 0644]
eventSimulator/stepStepsEvent.groovy [new file with mode: 0644]
eventSimulator/switchLevelEvent.groovy [new file with mode: 0644]
eventSimulator/switchLevelOffEvent.groovy [new file with mode: 0644]
eventSimulator/switchLevelOnEvent.groovy [new file with mode: 0644]
eventSimulator/temperatureEvent.groovy [new file with mode: 0644]
eventSimulator/temperatureMeasurementEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatAutoFanModeEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatCirculateFanModeEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatFanCirculateFanModeEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatFanOnFanModeEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatOnFanModeEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatOperatingStateAutoEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatOperatingStateCoolEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatOperatingStateHeatEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatOperatingStateOffEvent.groovy [new file with mode: 0644]
eventSimulator/thermostatSetpointEvent.groovy [new file with mode: 0644]
eventSimulator/valveClosedEvent.groovy [new file with mode: 0644]
eventSimulator/valveOpenEvent.groovy [new file with mode: 0644]
eventSimulator/waterDryEvent.groovy [new file with mode: 0644]
eventSimulator/waterWetEvent.groovy [new file with mode: 0644]

diff --git a/eventSimulator/alarmBothEvent.groovy b/eventSimulator/alarmBothEvent.groovy
new file mode 100644 (file)
index 0000000..03ca061
--- /dev/null
@@ -0,0 +1,2 @@
+                       alarmObject.setValue([name: "alarm", value: "both", deviceId: "alarmID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/alarmOffEvent.groovy b/eventSimulator/alarmOffEvent.groovy
new file mode 100644 (file)
index 0000000..6862af9
--- /dev/null
@@ -0,0 +1,2 @@
+                       alarmObject.setValue([name: "alarm", value: "off", deviceId: "alarmID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/alarmSirenEvent.groovy b/eventSimulator/alarmSirenEvent.groovy
new file mode 100644 (file)
index 0000000..b3efa58
--- /dev/null
@@ -0,0 +1,2 @@
+                       alarmObject.setValue([name: "alarm", value: "siren", deviceId: "alarmID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/alarmStrobeEvent.groovy b/eventSimulator/alarmStrobeEvent.groovy
new file mode 100644 (file)
index 0000000..cdb5fdf
--- /dev/null
@@ -0,0 +1,2 @@
+                       alarmObject.setValue([name: "alarm", value: "strobe", deviceId: "alarmID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/batteryBatteryEvent.groovy b/eventSimulator/batteryBatteryEvent.groovy
new file mode 100644 (file)
index 0000000..ebf4a78
--- /dev/null
@@ -0,0 +1,2 @@
+                       batteryObject.setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/batteryChargeEvent.groovy b/eventSimulator/batteryChargeEvent.groovy
deleted file mode 100644 (file)
index 889fe85..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-                       smokeDetectorObject.setValue([name: "battery", value: "5", deviceId: "smokeDetectorID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/contactDefaultClosedEvent.groovy b/eventSimulator/contactDefaultClosedEvent.groovy
new file mode 100644 (file)
index 0000000..0b74952
--- /dev/null
@@ -0,0 +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
diff --git a/eventSimulator/contactDefaultOpenEvent.groovy b/eventSimulator/contactDefaultOpenEvent.groovy
new file mode 100644 (file)
index 0000000..71c81c5
--- /dev/null
@@ -0,0 +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
diff --git a/eventSimulator/coolingSetpointEvent.groovy b/eventSimulator/coolingSetpointEvent.groovy
new file mode 100644 (file)
index 0000000..bfc0869
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "coolingSetpoint", value: "60", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/energyMeterEvent.groovy b/eventSimulator/energyMeterEvent.groovy
new file mode 100644 (file)
index 0000000..597f372
--- /dev/null
@@ -0,0 +1,2 @@
+                       energyMeterObject.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 82cbd6a..ad7c1db 100644 (file)
@@ -2,8 +2,13 @@ while(true) {
        def eventNumber = Verify.getInt(0,4)
        switch(eventNumber) {
                case 0:
-                       lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+                       def event = Verify.getInt(0,1)
+                       if (event == 0) {
+                                       lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
+                                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])                       } else {
+                                       lockObject.setValue([name: "lock", value: "unlocked", deviceId: "lockID0", descriptionText: "",
+                                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+                       }
                        break
                case 1:
                        lockObject.setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "",
@@ -18,14 +23,8 @@ while(true) {
                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
                        break
                case 4:
-                       def event = Verify.getInt(0,1)
-                       if (event == 0) {
-                                       presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
-                                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
-                       } else {
-                                       presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "",
-                                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
-                       }
+                       appObject.setValue([name: "Touched", value: "touched", deviceId: "touchedSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
                        break
        }
 }
diff --git a/eventSimulator/heatingSetpointEvent.groovy b/eventSimulator/heatingSetpointEvent.groovy
new file mode 100644 (file)
index 0000000..7c2f189
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "heatingSetpoint", value: "40", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/humidityMeasurementEvent.groovy b/eventSimulator/humidityMeasurementEvent.groovy
new file mode 100644 (file)
index 0000000..bcfe170
--- /dev/null
@@ -0,0 +1,2 @@
+                       humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/illuminanceMeasurementEvent.groovy b/eventSimulator/illuminanceMeasurementEvent.groovy
new file mode 100644 (file)
index 0000000..de15937
--- /dev/null
@@ -0,0 +1,2 @@
+                       illuminanceMeasurementObject.setValue([name: "illuminance", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/lockEvent.groovy b/eventSimulator/lockEvent.groovy
deleted file mode 100644 (file)
index e208c90..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-                       lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/lockLockedEvent.groovy b/eventSimulator/lockLockedEvent.groovy
new file mode 100644 (file)
index 0000000..5cf9e4c
--- /dev/null
@@ -0,0 +1,2 @@
+                       lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
\ No newline at end of file
diff --git a/eventSimulator/lockUnlockedEvent.groovy b/eventSimulator/lockUnlockedEvent.groovy
new file mode 100644 (file)
index 0000000..7ce594b
--- /dev/null
@@ -0,0 +1,2 @@
+                       lockObject.setValue([name: "lock", value: "unlocked", deviceId: "lockID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerLevelEvent.groovy b/eventSimulator/musicPlayerLevelEvent.groovy
new file mode 100644 (file)
index 0000000..8f520cf
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "level", value: "36"/*A number between 0 to 100 as a charge*/, deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerMutedEvent.groovy b/eventSimulator/musicPlayerMutedEvent.groovy
new file mode 100644 (file)
index 0000000..d642662
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "mute", value: "muted", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerPausedEvent.groovy b/eventSimulator/musicPlayerPausedEvent.groovy
new file mode 100644 (file)
index 0000000..19bcc3d
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "status", value: "paused", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerPlayingEvent.groovy b/eventSimulator/musicPlayerPlayingEvent.groovy
new file mode 100644 (file)
index 0000000..a703e3a
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "status", value: "playing", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerStoppedEvent.groovy b/eventSimulator/musicPlayerStoppedEvent.groovy
new file mode 100644 (file)
index 0000000..24f4146
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "status", value: "stopped", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerTrackDataEvent.groovy b/eventSimulator/musicPlayerTrackDataEvent.groovy
new file mode 100644 (file)
index 0000000..3be6fcb
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "trackData", value: "someTrack", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerTrackDescriptionEvent.groovy b/eventSimulator/musicPlayerTrackDescriptionEvent.groovy
new file mode 100644 (file)
index 0000000..64fd491
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "trackDescription", value: "someDescriptions", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/musicPlayerUnmutedEvent.groovy b/eventSimulator/musicPlayerUnmutedEvent.groovy
new file mode 100644 (file)
index 0000000..7c2f924
--- /dev/null
@@ -0,0 +1,2 @@
+                       musicPlayerObject.setValue([name: "mute", value: "umuted", deviceId: "musicPlayerID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/powerMeterEvent.groovy b/eventSimulator/powerMeterEvent.groovy
new file mode 100644 (file)
index 0000000..2fdf6dd
--- /dev/null
@@ -0,0 +1,2 @@
+                       powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/presencePresencePresentEvent.groovy b/eventSimulator/presencePresencePresentEvent.groovy
new file mode 100644 (file)
index 0000000..8557f32
--- /dev/null
@@ -0,0 +1,2 @@
+                       presenceSensorObject.setValue([name: "presence", value: "presence.present", deviceId: "presenceSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
diff --git a/eventSimulator/relaySwitchOffEvent.groovy b/eventSimulator/relaySwitchOffEvent.groovy
new file mode 100644 (file)
index 0000000..89009c6
--- /dev/null
@@ -0,0 +1,2 @@
+                       relaySwitchObject.setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/relaySwitchOnEvent.groovy b/eventSimulator/relaySwitchOnEvent.groovy
new file mode 100644 (file)
index 0000000..96a5bee
--- /dev/null
@@ -0,0 +1,2 @@
+                       relaySwitchObject.setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/sleepNotSleepingEvent.groovy b/eventSimulator/sleepNotSleepingEvent.groovy
new file mode 100644 (file)
index 0000000..2abc19a
--- /dev/null
@@ -0,0 +1,2 @@
+                       sleepSensorObject.setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/sleepSleepingEvent.groovy b/eventSimulator/sleepSleepingEvent.groovy
new file mode 100644 (file)
index 0000000..0b77e7d
--- /dev/null
@@ -0,0 +1,2 @@
+                       sleepSensorObject.setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/smokeDetectorBatteryEvent.groovy b/eventSimulator/smokeDetectorBatteryEvent.groovy
new file mode 100644 (file)
index 0000000..0bc041c
--- /dev/null
@@ -0,0 +1,2 @@
+                       smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/stepGoalEvent.groovy b/eventSimulator/stepGoalEvent.groovy
new file mode 100644 (file)
index 0000000..de1ee84
--- /dev/null
@@ -0,0 +1,2 @@
+                       stepSensorObject.setValue([name: "goal", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/stepStepsEvent.groovy b/eventSimulator/stepStepsEvent.groovy
new file mode 100644 (file)
index 0000000..bd9a683
--- /dev/null
@@ -0,0 +1,2 @@
+                       stepSensorObject.setValue([name: "steps", value: "46"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/switchLevelEvent.groovy b/eventSimulator/switchLevelEvent.groovy
new file mode 100644 (file)
index 0000000..1cd0c6c
--- /dev/null
@@ -0,0 +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"}'])
diff --git a/eventSimulator/switchLevelOffEvent.groovy b/eventSimulator/switchLevelOffEvent.groovy
new file mode 100644 (file)
index 0000000..6f02dcf
--- /dev/null
@@ -0,0 +1,2 @@
+                       switchLevelObject.setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/switchLevelOnEvent.groovy b/eventSimulator/switchLevelOnEvent.groovy
new file mode 100644 (file)
index 0000000..2d534c9
--- /dev/null
@@ -0,0 +1,2 @@
+                       switchLevelObject.setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/temperatureEvent.groovy b/eventSimulator/temperatureEvent.groovy
new file mode 100644 (file)
index 0000000..d044685
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "temperature", value: "55", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/temperatureMeasurementEvent.groovy b/eventSimulator/temperatureMeasurementEvent.groovy
new file mode 100644 (file)
index 0000000..b8bce76
--- /dev/null
@@ -0,0 +1,2 @@
+                       temperatureMeasurementObject.setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatAutoFanModeEvent.groovy b/eventSimulator/thermostatAutoFanModeEvent.groovy
new file mode 100644 (file)
index 0000000..40d3de8
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatFanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatCirculateFanModeEvent.groovy b/eventSimulator/thermostatCirculateFanModeEvent.groovy
new file mode 100644 (file)
index 0000000..d1aeb18
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatFanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatFanCirculateFanModeEvent.groovy b/eventSimulator/thermostatFanCirculateFanModeEvent.groovy
new file mode 100644 (file)
index 0000000..2812058
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatFanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatFanOnFanModeEvent.groovy b/eventSimulator/thermostatFanOnFanModeEvent.groovy
new file mode 100644 (file)
index 0000000..102067e
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatFanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatOnFanModeEvent.groovy b/eventSimulator/thermostatOnFanModeEvent.groovy
new file mode 100644 (file)
index 0000000..0a8806b
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatFanMode", value: "on", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatOperatingStateAutoEvent.groovy b/eventSimulator/thermostatOperatingStateAutoEvent.groovy
new file mode 100644 (file)
index 0000000..8ec6866
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatOperatingState", value: "auto", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatOperatingStateCoolEvent.groovy b/eventSimulator/thermostatOperatingStateCoolEvent.groovy
new file mode 100644 (file)
index 0000000..d281296
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatOperatingState", value: "cool", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy b/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy
new file mode 100644 (file)
index 0000000..c2f0499
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatOperatingState", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatOperatingStateHeatEvent.groovy b/eventSimulator/thermostatOperatingStateHeatEvent.groovy
new file mode 100644 (file)
index 0000000..a16c9e5
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatOperatingState", value: "heat", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatOperatingStateOffEvent.groovy b/eventSimulator/thermostatOperatingStateOffEvent.groovy
new file mode 100644 (file)
index 0000000..c15f7d7
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatOperatingState", value: "off", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/thermostatSetpointEvent.groovy b/eventSimulator/thermostatSetpointEvent.groovy
new file mode 100644 (file)
index 0000000..b6ced73
--- /dev/null
@@ -0,0 +1,2 @@
+                       thermostatObject.setValue([name: "thermostatSetpoint", value: "50", deviceId: "thermostatID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/valveClosedEvent.groovy b/eventSimulator/valveClosedEvent.groovy
new file mode 100644 (file)
index 0000000..bc0e45f
--- /dev/null
@@ -0,0 +1,2 @@
+                       valveObject.setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/valveOpenEvent.groovy b/eventSimulator/valveOpenEvent.groovy
new file mode 100644 (file)
index 0000000..8cee49b
--- /dev/null
@@ -0,0 +1,2 @@
+                       valveObject.setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/waterDryEvent.groovy b/eventSimulator/waterDryEvent.groovy
new file mode 100644 (file)
index 0000000..ff6d624
--- /dev/null
@@ -0,0 +1,2 @@
+                       waterSensorObject.setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
diff --git a/eventSimulator/waterWetEvent.groovy b/eventSimulator/waterWetEvent.groovy
new file mode 100644 (file)
index 0000000..7a134f2
--- /dev/null
@@ -0,0 +1,2 @@
+                       waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])