From: rtrimana Date: Tue, 30 Jul 2019 00:51:53 +0000 (-0700) Subject: Adding new events. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=852a5b392cfa82c81299d22213af02dc4bf606a5 Adding new events. --- diff --git a/eventSimulator/alarmBothEvent.groovy b/eventSimulator/alarmBothEvent.groovy new file mode 100644 index 0000000..03ca061 --- /dev/null +++ b/eventSimulator/alarmBothEvent.groovy @@ -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 index 0000000..6862af9 --- /dev/null +++ b/eventSimulator/alarmOffEvent.groovy @@ -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 index 0000000..b3efa58 --- /dev/null +++ b/eventSimulator/alarmSirenEvent.groovy @@ -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 index 0000000..cdb5fdf --- /dev/null +++ b/eventSimulator/alarmStrobeEvent.groovy @@ -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 index 0000000..ebf4a78 --- /dev/null +++ b/eventSimulator/batteryBatteryEvent.groovy @@ -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 index 889fe85..0000000 --- a/eventSimulator/batteryChargeEvent.groovy +++ /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 index 0000000..0b74952 --- /dev/null +++ b/eventSimulator/contactDefaultClosedEvent.groovy @@ -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 index 0000000..71c81c5 --- /dev/null +++ b/eventSimulator/contactDefaultOpenEvent.groovy @@ -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 index 0000000..bfc0869 --- /dev/null +++ b/eventSimulator/coolingSetpointEvent.groovy @@ -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 index 0000000..597f372 --- /dev/null +++ b/eventSimulator/energyMeterEvent.groovy @@ -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"}']) diff --git a/eventSimulator/eventSimulator.groovy b/eventSimulator/eventSimulator.groovy index 82cbd6a..ad7c1db 100644 --- a/eventSimulator/eventSimulator.groovy +++ b/eventSimulator/eventSimulator.groovy @@ -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 index 0000000..7c2f189 --- /dev/null +++ b/eventSimulator/heatingSetpointEvent.groovy @@ -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 index 0000000..bcfe170 --- /dev/null +++ b/eventSimulator/humidityMeasurementEvent.groovy @@ -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 index 0000000..de15937 --- /dev/null +++ b/eventSimulator/illuminanceMeasurementEvent.groovy @@ -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 index e208c90..0000000 --- a/eventSimulator/lockEvent.groovy +++ /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 index 0000000..5cf9e4c --- /dev/null +++ b/eventSimulator/lockLockedEvent.groovy @@ -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 index 0000000..7ce594b --- /dev/null +++ b/eventSimulator/lockUnlockedEvent.groovy @@ -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 index 0000000..8f520cf --- /dev/null +++ b/eventSimulator/musicPlayerLevelEvent.groovy @@ -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 index 0000000..d642662 --- /dev/null +++ b/eventSimulator/musicPlayerMutedEvent.groovy @@ -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 index 0000000..19bcc3d --- /dev/null +++ b/eventSimulator/musicPlayerPausedEvent.groovy @@ -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 index 0000000..a703e3a --- /dev/null +++ b/eventSimulator/musicPlayerPlayingEvent.groovy @@ -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 index 0000000..24f4146 --- /dev/null +++ b/eventSimulator/musicPlayerStoppedEvent.groovy @@ -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 index 0000000..3be6fcb --- /dev/null +++ b/eventSimulator/musicPlayerTrackDataEvent.groovy @@ -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 index 0000000..64fd491 --- /dev/null +++ b/eventSimulator/musicPlayerTrackDescriptionEvent.groovy @@ -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 index 0000000..7c2f924 --- /dev/null +++ b/eventSimulator/musicPlayerUnmutedEvent.groovy @@ -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 index 0000000..2fdf6dd --- /dev/null +++ b/eventSimulator/powerMeterEvent.groovy @@ -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 index 0000000..8557f32 --- /dev/null +++ b/eventSimulator/presencePresencePresentEvent.groovy @@ -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 index 0000000..89009c6 --- /dev/null +++ b/eventSimulator/relaySwitchOffEvent.groovy @@ -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 index 0000000..96a5bee --- /dev/null +++ b/eventSimulator/relaySwitchOnEvent.groovy @@ -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 index 0000000..2abc19a --- /dev/null +++ b/eventSimulator/sleepNotSleepingEvent.groovy @@ -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 index 0000000..0b77e7d --- /dev/null +++ b/eventSimulator/sleepSleepingEvent.groovy @@ -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 index 0000000..0bc041c --- /dev/null +++ b/eventSimulator/smokeDetectorBatteryEvent.groovy @@ -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 index 0000000..de1ee84 --- /dev/null +++ b/eventSimulator/stepGoalEvent.groovy @@ -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 index 0000000..bd9a683 --- /dev/null +++ b/eventSimulator/stepStepsEvent.groovy @@ -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 index 0000000..1cd0c6c --- /dev/null +++ b/eventSimulator/switchLevelEvent.groovy @@ -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 index 0000000..6f02dcf --- /dev/null +++ b/eventSimulator/switchLevelOffEvent.groovy @@ -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 index 0000000..2d534c9 --- /dev/null +++ b/eventSimulator/switchLevelOnEvent.groovy @@ -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 index 0000000..d044685 --- /dev/null +++ b/eventSimulator/temperatureEvent.groovy @@ -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 index 0000000..b8bce76 --- /dev/null +++ b/eventSimulator/temperatureMeasurementEvent.groovy @@ -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 index 0000000..40d3de8 --- /dev/null +++ b/eventSimulator/thermostatAutoFanModeEvent.groovy @@ -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 index 0000000..d1aeb18 --- /dev/null +++ b/eventSimulator/thermostatCirculateFanModeEvent.groovy @@ -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 index 0000000..2812058 --- /dev/null +++ b/eventSimulator/thermostatFanCirculateFanModeEvent.groovy @@ -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 index 0000000..102067e --- /dev/null +++ b/eventSimulator/thermostatFanOnFanModeEvent.groovy @@ -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 index 0000000..0a8806b --- /dev/null +++ b/eventSimulator/thermostatOnFanModeEvent.groovy @@ -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 index 0000000..8ec6866 --- /dev/null +++ b/eventSimulator/thermostatOperatingStateAutoEvent.groovy @@ -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 index 0000000..d281296 --- /dev/null +++ b/eventSimulator/thermostatOperatingStateCoolEvent.groovy @@ -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 index 0000000..c2f0499 --- /dev/null +++ b/eventSimulator/thermostatOperatingStateEmergencyHeatEvent.groovy @@ -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 index 0000000..a16c9e5 --- /dev/null +++ b/eventSimulator/thermostatOperatingStateHeatEvent.groovy @@ -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 index 0000000..c15f7d7 --- /dev/null +++ b/eventSimulator/thermostatOperatingStateOffEvent.groovy @@ -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 index 0000000..b6ced73 --- /dev/null +++ b/eventSimulator/thermostatSetpointEvent.groovy @@ -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 index 0000000..bc0e45f --- /dev/null +++ b/eventSimulator/valveClosedEvent.groovy @@ -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 index 0000000..8cee49b --- /dev/null +++ b/eventSimulator/valveOpenEvent.groovy @@ -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 index 0000000..ff6d624 --- /dev/null +++ b/eventSimulator/waterDryEvent.groovy @@ -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 index 0000000..7a134f2 --- /dev/null +++ b/eventSimulator/waterWetEvent.groovy @@ -0,0 +1,2 @@ + waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "", + displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])