)
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"
}
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
}
// Show "Setup" page
-def Settings() {
+def SettingsMethod() {
def sendPushMessage = [
name: "sendPushMessage",
required: false
]
- def pageName = "Settings"
+ def pageName = "SettingsMethod"
def pageProperties = [
- name: "Settings",
- title: "Settings",
+ name: "SettingsMethod",
+ title: "SettingsMethod",
nextPage: "pageSetup"
]
init()
}
+// input "sensor", "capability.temperatureMeasurement"
+// input "doors", "capability.contactSensor"
+
def init(){
state.lastStatus = null
subscribe(app, appTouch)