From: Seyed Amir Hossein Aqajari Date: Thu, 8 Aug 2019 01:55:57 +0000 (-0700) Subject: Update rise-and-shine.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bdd1a96910eab1815b1d99a4f96d955ea6f7429d;p=smartapps.git Update rise-and-shine.groovy --- diff --git a/official/rise-and-shine.groovy b/official/rise-and-shine.groovy index 947067b..aedc22f 100755 --- a/official/rise-and-shine.groovy +++ b/official/rise-and-shine.groovy @@ -87,7 +87,7 @@ def motionActiveHandler(evt) def endTime = timeTodayAfter(startTime, endTime ?: "16:00", timeZone) log.debug "startTime: $startTime, endTime: $endTime, t0: ${new Date(t0)}, modeStartTime: ${modeStartTime}, actionTakenOn: $state.actionTakenOn, currentMode: $location.mode, newMode: $newMode " - if (t0 >= startTime.time && t0 <= endTime.time && location.mode != newMode) { + if (/*t0 >= startTime.time && t0 <= endTime.time*/true && location.mode != newMode) { def message = "Good morning! SmartThings changed the mode to '$newMode'" send(message) setLocationMode(newMode)