- println("the momentary switch with id:$id is pushed!")
- sendEvent([name: "momentary", value: "pushed", deviceId: id, descriptionText: "",
- displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+ setValue([name: "momentary", value: "pushed", deviceId: id, descriptionText: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])