extractedEvents.write(line)
event.close()
elif eventList[i] == "motion":
+ print("HERE????")
#Write two events subsequently
event = open("eventSimulator/motionActiveEvent.groovy", "r")
for line in event:
def each(Closure Input) {
switches.each(Input)
}
+ def eachWithIndex(Closure Input) {
+ switches.eachWithIndex(Input)
+ }
def find(Closure Input) {
switches.find(Input)
}
buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
- displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}'])
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
+
+ buttonObject.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: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}'])
+
+ buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}'])
+ buttonObject.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: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 2}'])
+
+ buttonObject.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: "",
- displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}'])
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}'])