dcoffing / KOF-CeilingFan

Zigbee Ceiling Fan/light Controller by Home Depot (King of Fans)
46 stars 213 forks source link

Fan never turns off after motion stops #6

Open trusnock opened 5 years ago

trusnock commented 5 years ago

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