From 85c2faca2c819933760ec313a56388a95e33f5ef Mon Sep 17 00:00:00 2001 From: Rahmadi Trimananda Date: Fri, 9 Aug 2019 16:08:49 -0700 Subject: [PATCH] Update working-from-home.groovy --- official/working-from-home.groovy | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/official/working-from-home.groovy b/official/working-from-home.groovy index d804c07..931b7b5 100755 --- a/official/working-from-home.groovy +++ b/official/working-from-home.groovy @@ -32,6 +32,8 @@ def configActions() { 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 @@ -48,8 +50,8 @@ def configActions() { 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]) { @@ -70,9 +72,9 @@ def updated() { def initialize() { schedule(timeToday(timeOfDay, location?.timeZone), "checkPresence") - if (customName) { - app.setTitle(customName) - } + //if (customName) { + // app.setTitle(customName) + //} } def checkPresence() { -- 2.34.1