Update hue-mood-lighting.groovy
[smartapps.git] / official / thermostat-mode-director.groovy
index de38b24c04b3444a1b3c311a363bc348ee97c3f3..298878a3711d8a96828272c1113354763ce948ab 100755 (executable)
@@ -37,11 +37,17 @@ definition(
 )
 
 preferences {
-    page name:"pageSetup"
+    page(name: "timeIntervalInput", title: "Only during a certain time") {
+               section {
+                       input "starting", "time", title: "Starting", required: false
+                       input "ending", "time", title: "Ending", required: false
+               }
+       }
     page name:"directorSettings"
     page name:"ThermostatandDoors"
     page name:"ThermostatBoost"
-    page name:"Settings"
+    page name:"SettingsMethod"
+    page name:"pageSetup"
 
 }
 
@@ -64,7 +70,7 @@ def pageSetup() {
             href "directorSettings", title: "Director Settings", description: "", state:greyedOut()
             href "ThermostatandDoors", title: "Thermostat and Doors", description: "", state: greyedOutTherm()
             href "ThermostatBoost", title: "Thermostat Boost", description: "", state: greyedOutTherm1()
-            href "Settings", title: "Settings", description: "", state: greyedOutSettings()
+            href "SettingsMethod", title: "SettingsMethod", description: "", state: greyedOutSettings()
             }
         section([title:"Options", mobileOnly:true]) {
             label title:"Assign a name", required:false
@@ -279,7 +285,7 @@ def ThermostatBoost() {
 }
 
 // Show "Setup" page
-def Settings() {
+def SettingsMethod() {
 
     def sendPushMessage = [
         name:          "sendPushMessage",
@@ -314,11 +320,11 @@ def Settings() {
         required:      false
     ]
     
-    def pageName = "Settings"
+    def pageName = "SettingsMethod"
     
     def pageProperties = [
-        name:       "Settings",
-        title:      "Settings",
+        name:       "SettingsMethod",
+        title:      "SettingsMethod",
         nextPage:   "pageSetup"
     ]
 
@@ -347,6 +353,9 @@ def updated(){
        init()
 }
 
+// input "sensor", "capability.temperatureMeasurement"
+// input "doors", "capability.contactSensor"
+
 def init(){
        state.lastStatus = null
        subscribe(app, appTouch)