X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=eventSimulator%2FbuttonPushedEvent.groovy;fp=eventSimulator%2FbuttonPushedEvent.groovy;h=d528d78bc305ba785a1ca5e56fb7958b3e32f4b0;hb=83071d3bcfc33f015ece13868342644498a9dda3;hp=a7bbdea4ef1d1a577b034b41f9b20cf0f73ac46e;hpb=6a9540f69ca09047c6b4f65e49e710840dba81c0;p=smartthings-infrastructure.git diff --git a/eventSimulator/buttonPushedEvent.groovy b/eventSimulator/buttonPushedEvent.groovy index a7bbdea..d528d78 100644 --- a/eventSimulator/buttonPushedEvent.groovy +++ b/eventSimulator/buttonPushedEvent.groovy @@ -1,8 +1,8 @@ - buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", + buttonObject[0].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: "", + buttonObject[0].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: "", + buttonObject[0].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: "", + buttonObject[0].setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}'])