- println("the music player with id:$id is starting to play!")
- this.status = "playing"
- sendEvent([name: "status", value: "playing", deviceId: this.id, descriptionText: "",
- displayed: true, linkText: "", isStateChange: false, unit: "", data: [value: "playing"]])
+ if (status != "playing") {
+ println("the music player with id:$id is starting to play!")
+ this.status = "playing"
+ sendEvent([name: "status", value: "playing", deviceId: this.id, descriptionText: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+ }