hasBeenRecentMotion() refers to underfined "minutes" instead of "minutesNoMotion" so it always defaults to isActive = true. Easy fix but I don't have permissions to create a branch:
- if (motionSensor && minutes) {- def deltaMinutes = minutes as Long+ if (motionSensor && minutesNoMotion) {+ def deltaMinutes = minutesNoMotion as Long
Thanks for all the work, this SmartApp is working great for me so far!
hasBeenRecentMotion() refers to underfined "minutes" instead of "minutesNoMotion" so it always defaults to isActive = true. Easy fix but I don't have permissions to create a branch:
- if (motionSensor && minutes) {
- def deltaMinutes = minutes as Long
+ if (motionSensor && minutesNoMotion) {
+ def deltaMinutes = minutesNoMotion as Long
Thanks for all the work, this SmartApp is working great for me so far!
-Tom