Removing not required events in device handlers.
[smartthings-infrastructure.git] / ColorTemperature / ColorTemperature.groovy
index 4956e0499c48139cbbee8e7ed8992009f4949c06..250ac12ea9690c99978e688fe50076cab50c64a0 100644 (file)
@@ -75,8 +75,6 @@ public class ColorTemperature {
                        println("The light is changed to $currentSwitch!")
                        sendEvent([name: "switch", value: "$currentSwitch", deviceId: this.id, descriptionText: "",
                                   displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
-                       sendEvent([name: "switch.on", value: "$currentSwitch", deviceId: this.id, descriptionText: "",
-                                  displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
                }
        }
 
@@ -86,8 +84,6 @@ public class ColorTemperature {
                        println("The light is changed to $currentSwitch!")
                        sendEvent([name: "switch", value: "$currentSwitch", deviceId: this.id, descriptionText: "",
                                   displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
-                       sendEvent([name: "switch.off", value: "$currentSwitch", deviceId: this.id, descriptionText: "",
-                                  displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
                }
        }