Update routine-director.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Fri, 9 Aug 2019 19:19:41 +0000 (12:19 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Fri, 9 Aug 2019 19:19:41 +0000 (12:19 -0700)
official/routine-director.groovy

index 27336f8..f881ffb 100755 (executable)
@@ -33,6 +33,13 @@ definition(
 )
 
 preferences {
+    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: "selectRoutines")
 
     page(name: "Settings", title: "Settings", uninstall: true, install: true) {
@@ -60,11 +67,10 @@ preferences {
                 options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
             input "modes", "mode", title: "Only when mode is", multiple: true, required: false
         }
-           
-       section {
-               input "starting", "time", title: "Starting", required: false
-               input "ending", "time", title: "Ending", required: false
-       }
+
+       section("Change to this mode") {
+               input "newMode", "mode", title: "Mode?"
+       }  
     }
 }