Removing not required events in device handlers.
[smartthings-infrastructure.git] / ColorControl / ColorControl.groovy
index a65afbb78e2630ccdf969b096c611a08cf1335f1..0e9ced0f3d70afae552600d363ac1ccdd2175ee9 100644 (file)
@@ -156,8 +156,6 @@ public class ColorControl {
                        println("The light is changed to on!")
                        sendEvent([name: "switch", value: "on", deviceId: this.id, descriptionText: "",
                                   displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
-                       sendEvent([name: "switch.on", value: "on", deviceId: this.id, descriptionText: "",
-                                  displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
                }
        }
 
@@ -167,8 +165,6 @@ public class ColorControl {
                        println("The light is changed to off!")
                        sendEvent([name: "switch", value: "off", deviceId: this.id, descriptionText: "",
                                   displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
-                       sendEvent([name: "switch.off", value: "off", deviceId: this.id, descriptionText: "",
-                                  displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
                }
        }