X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=blobdiff_plain;f=eventSimulator%2FeventSimulator.groovy;h=b0f57f5e81d828d3982062fdeaf8eb3b781215e7;hp=393f9bd1fbbbc769d776ad69c819b1b2aff36409;hb=c5a0fcbc48e9ef7e4cbf422adc96cb824882f4a3;hpb=79e780c723c35de16bbbc9a048a865e568193f34 diff --git a/eventSimulator/eventSimulator.groovy b/eventSimulator/eventSimulator.groovy index 393f9bd..b0f57f5 100644 --- a/eventSimulator/eventSimulator.groovy +++ b/eventSimulator/eventSimulator.groovy @@ -1,40 +1,13 @@ while(true) { - def eventNumber = Verify.getInt(0,5) + def eventNumber = Verify.getInt(0,1) switch(eventNumber) { case 0: - def event = Verify.getInt(0,1) - if (event == 0) { -<<<<<<< HEAD - switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) - } else { - switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "", -======= - 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: "", ->>>>>>> a02c9807815a35c0f57241ee6510a3d312499049 - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) - } - break - case 1: - break - case 2: - colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "", + touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) break - case 3: - colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "", - displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) - break - case 4: -<<<<<<< HEAD - break - case 5: -======= + case 1: appObject.setValue([name: "Touched", value: "touched", deviceId: "touchedSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}']) ->>>>>>> a02c9807815a35c0f57241ee6510a3d312499049 break } }