Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ private tempCheck(currentTemp, desiredTemp)
private hasBeenRecentMotion()
{
def isActive = false
if (motionSensor && minutes) {
def deltaMinutes = minutes as Long
if (motionSensor && minutesNoMotion) {
def deltaMinutes = minutesNoMotion as Long
if (deltaMinutes) {
def motionEvents = motionSensor.eventsSince(new Date(now() - (60000 * deltaMinutes)))
log.trace "Found ${motionEvents?.size() ?: 0} events in the last $deltaMinutes minutes"
Expand Down Expand Up @@ -309,4 +309,4 @@ private def textHelp() {
" in the Hampton Bay Wink Ceiling Fan MR101Z receiver in the Gardinier 52' Ceiling Fan or"+
" Universal Ceiling Fan Premier Remote from Home Depot."

}
}