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)