From 35d4f93033af1e28b5719caf274ed8fe44d3ce39 Mon Sep 17 00:00:00 2001 From: Edvald Eysteinsson Date: Sat, 6 May 2017 19:39:06 +0200 Subject: [PATCH] Delete testdevicehandler.groovy --- .../testdevicehandler.groovy | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 devicetypes/edvaldeysteinsson/testdevicehandler.src/testdevicehandler.groovy diff --git a/devicetypes/edvaldeysteinsson/testdevicehandler.src/testdevicehandler.groovy b/devicetypes/edvaldeysteinsson/testdevicehandler.src/testdevicehandler.groovy deleted file mode 100644 index 492c489..0000000 --- a/devicetypes/edvaldeysteinsson/testdevicehandler.src/testdevicehandler.groovy +++ /dev/null @@ -1,39 +0,0 @@ -metadata { - definition (name: "TestDeviceHandler", namespace: "edvaldeysteinsson", author: "Edvald Eysteinsson") { - capability "Switch" - capability "Light" - } - - // simulator metadata - simulator { - } - - // UI tile definitions - tiles { - multiAttributeTile(name:"switch", type: "lighting", width: 3, height: 4, canChangeIcon: true){ - tileAttribute ("device.switch", key: "PRIMARY_CONTROL") { - attributeState "on", label:'On', action:"switch.off", icon:"st.Appliances.appliances14", backgroundColor:"#79b821", nextState:"off" - attributeState "off", label:'Off', action:"switch.on", icon:"st.Appliances.appliances14", backgroundColor:"#ffffff", nextState:"on" - } - } - - main(["switch"]) - } -} - -def parse(String description) { -} - -def on() { - log.info "Switch On" - makeCall(1) -} - -def off() { - log.info "Switch Off" - makeCall(0) -} - -def makeCall(level) { - -}