From bdd1a96910eab1815b1d99a4f96d955ea6f7429d Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Wed, 7 Aug 2019 18:55:57 -0700 Subject: [PATCH] Update rise-and-shine.groovy --- official/rise-and-shine.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1