dynamicPage(name: "configActions", title: "Configure Actions", uninstall: true, install: true) {
section ("When this person") {
input "person", "capability.presenceSensor", title: "Who?", multiple: false, required: true
+ input "days", "enum", title: "Set for specific day(s) of the week", multiple: true, required: false,
+ options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
}
section ("Still at home past") {
input "timeOfDay", "time", title: "What time?", required: true
section (title: "More options", hidden: hideOptions(), hideable: true) {
input "sendPushMessage", "bool", title: "Send a push notification?"
input "phone", "phone", title: "Send a Text Message?", required: false
- input "days", "enum", title: "Set for specific day(s) of the week", multiple: true, required: false,
- options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
+ //input "days", "enum", title: "Set for specific day(s) of the week", multiple: true, required: false,
+ // options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
}
section([mobileOnly:true]) {
def initialize() {
schedule(timeToday(timeOfDay, location?.timeZone), "checkPresence")
- if (customName) {
- app.setTitle(customName)
- }
+ //if (customName) {
+ // app.setTitle(customName)
+ //}
}
def checkPresence() {