Update speaker-weather-forecast.groovy
[smartapps.git] / official / switch-activates-home-phrase-or-mode.groovy
index 6415c4fe28e7aaad61afda2c98f386f0815e02f2..ab60af038229e42e87b1c53cb8f11c0ab537a58e 100755 (executable)
@@ -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
+}