)
preferences {
- page name:"pageSetup"
- page name:"Setup"
- page name:"Settings"
page name: "timeIntervalInput"
-
+ page name:"Settings1"
+ page name:"Setup"
+ page name:"pageSetup"
}
// Show setup page
}
section("Setup Menu") {
href "Setup", title: "Setup", description: "", state:greyedOut()
- href "Settings", title: "Settings", description: "", state: greyedOutSettings()
+ href "Settings1", title: "Settings1", description: "", state: greyedOutSettings()
}
section([title:"Options", mobileOnly:true]) {
label title:"Assign a name", required:false
}
// Show "Setup" page
-def Settings() {
+def Settings1() {
def falseAlarmThreshold = [
name: "falseAlarmThreshold",
options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
]
- def pageName = "Settings"
+ def pageName = "Settings1"
def pageProperties = [
- name: "Settings",
- title: "Settings",
+ name: "Settings1",
+ title: "Settings1",
nextPage: "pageSetup"
]
inactive_switches[random_int].on()
// then remove that switch from the pool off switches that can be turned on
- inactive_switches.remove(random_int)
+ //inactive_switches.remove(random_int)
}
// re-run again when the frequency demands it
//below is used to check restrictions
private getAllOk() {
- modeOk && daysOk && timeOk && homeIsEmpty
+ modeOk && homeIsEmpty/*&& daysOk && timeOk*/
}