Skip to content

Fan never turns off after motion stops #6

Description

@trusnock

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions