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 27336f825f22c708c0cb81ceaf8ba4ae05702272..f881ffb64e85fcd4f129c6a88117e7d378877e35 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?"
+       }  
     }
 }