Update rise-and-shine.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Thu, 8 Aug 2019 01:55:57 +0000 (18:55 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Thu, 8 Aug 2019 01:55:57 +0000 (18:55 -0700)
official/rise-and-shine.groovy

index 947067bc32babe46e3e5e4ddd81b9ccd189f7c36..aedc22f138f4cbc197c014cff4f4003a5c4ef666 100755 (executable)
@@ -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)