From 48b5d0703ee5d3e036c759d32c7f4e6f5dae4700 Mon Sep 17 00:00:00 2001 From: kathiresan Date: Tue, 24 Nov 2015 03:43:53 -0600 Subject: [PATCH] MSA-700: NetworkScanner Device Discovery --- .../scanner-smartthings-apps.groovy | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 smartapps/networkscanner/scanner-smartthings-apps.src/scanner-smartthings-apps.groovy diff --git a/smartapps/networkscanner/scanner-smartthings-apps.src/scanner-smartthings-apps.groovy b/smartapps/networkscanner/scanner-smartthings-apps.src/scanner-smartthings-apps.groovy new file mode 100644 index 0000000..b481ab4 --- /dev/null +++ b/smartapps/networkscanner/scanner-smartthings-apps.src/scanner-smartthings-apps.groovy @@ -0,0 +1,42 @@ +/** + * SCANNER SMARTTHINGS APPS + * + * Copyright 2015 kathiresan + * + */ +definition( + name: "SCANNER SMARTTHINGS APPS", + namespace: "NetworkScanner", + author: "kathiresan", + description: "Network Scanner Smartthings Apps", + category: "My Apps", + iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png", + iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png", + iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png", + oauth: true) + + +preferences { + section("Title") { + // TODO: put inputs here + } +} + +def installed() { + log.debug "Installed with settings: ${settings}" + + initialize() +} + +def updated() { + log.debug "Updated with settings: ${settings}" + + unsubscribe() + initialize() +} + +def initialize() { + // TODO: subscribe to attributes, devices, locations, etc. +} + +// TODO: implement event handlers \ No newline at end of file