X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=official%2Fthermostat-mode-director.groovy;h=298878a3711d8a96828272c1113354763ce948ab;hb=d14509f0e52b02faa0d2a5e6f7530b4ce1a4b1b9;hp=8e822da1e0226f70d957767663735cefa0d4468d;hpb=6a4207fba9cd6defda8e45042f194d2ce8368345;p=smartapps.git diff --git a/official/thermostat-mode-director.groovy b/official/thermostat-mode-director.groovy index 8e822da..298878a 100755 --- a/official/thermostat-mode-director.groovy +++ b/official/thermostat-mode-director.groovy @@ -43,11 +43,11 @@ preferences { input "ending", "time", title: "Ending", required: false } } - page name:"pageSetup" page name:"directorSettings" page name:"ThermostatandDoors" page name:"ThermostatBoost" - page name:"Settings" + page name:"SettingsMethod" + page name:"pageSetup" } @@ -70,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 @@ -285,7 +285,7 @@ def ThermostatBoost() { } // Show "Setup" page -def Settings() { +def SettingsMethod() { def sendPushMessage = [ name: "sendPushMessage", @@ -320,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" ] @@ -353,6 +353,9 @@ def updated(){ init() } +// input "sensor", "capability.temperatureMeasurement" +// input "doors", "capability.contactSensor" + def init(){ state.lastStatus = null subscribe(app, appTouch)