From: Rahmadi Trimananda Date: Thu, 8 Aug 2019 21:12:08 +0000 (-0700) Subject: Update switch-activates-home-phrase-or-mode.groovy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=commitdiff_plain;h=14b6cb3f42fa5d5e5944a14e6e71c0ed891d1ea5 Update switch-activates-home-phrase-or-mode.groovy --- diff --git a/official/switch-activates-home-phrase-or-mode.groovy b/official/switch-activates-home-phrase-or-mode.groovy index 6415c4f..ab60af0 100755 --- a/official/switch-activates-home-phrase-or-mode.groovy +++ b/official/switch-activates-home-phrase-or-mode.groovy @@ -29,6 +29,14 @@ definition( iconX2Url: "https://raw.githubusercontent.com/MichaelStruck/SmartThings/master/IFTTT-SmartApps/App1@2x.png", iconX3Url: "https://raw.githubusercontent.com/MichaelStruck/SmartThings/master/IFTTT-SmartApps/App1@2x.png") +page(name: "pageAbout", title: "About ${textAppName()}") { + section { + paragraph "${textVersion()}\n${textCopyright()}\n\n${textLicense()}\n" + } + section("Instructions") { + paragraph textHelp() + } +} preferences { page(name: "getPref") @@ -60,15 +68,6 @@ def getPref() { } } -page(name: "pageAbout", title: "About ${textAppName()}") { - section { - paragraph "${textVersion()}\n${textCopyright()}\n\n${textLicense()}\n" - } - section("Instructions") { - paragraph textHelp() - } -} - def installed() { log.debug "Installed with settings: ${settings}" subscribe(controlSwitch, "switch", "switchHandler") @@ -143,4 +142,4 @@ private def textHelp() { "Ties a Hello, Home phrase or mode to a switch's (virtual or real) on/off state. Perfect for use with IFTTT. "+ "Simple define a switch to be used, then tie the on/off state of the switch to a specific Hello, Home phrases or mode. "+ "Connect the switch to an IFTTT action, and the Hello, Home phrase or mode will fire with the switch state change." -} \ No newline at end of file +}