Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICTC-G-1 bug fix #6

Merged
merged 2 commits into from
Jan 8, 2020
Merged

ICTC-G-1 bug fix #6

merged 2 commits into from
Jan 8, 2020

Conversation

EPMatt
Copy link
Contributor

@EPMatt EPMatt commented Jan 8, 2020

This PR is a bug fix for the last issue described in PR #5.
The issue was caused by some rotate_left / rotate_right events sent in conjunction with the rotate_left_quick message, which is used to turn the bulb off. These unwanted messages triggered a dimming action which was not stopped by the self.off() call, thus continuing to change brightness after the lamp was turned off, with the result of the lamp being turned on again or, in some cases, the lamp not being turned off and having its brightness dimmed down.
Calling the self.release() method before turning the light off or full on ensures that any dimming action currently running stops and doesn't affect the bulb brightness anymore.

Succesfully tested with delay : 50 in the app configuration.

@xaviml xaviml merged commit 60071ae into xaviml:master Jan 8, 2020
@xaviml
Copy link
Owner

xaviml commented Jan 8, 2020

Great solution @EPMatt and thanks for your contribution. I will create a new release at some point today.

@EPMatt EPMatt deleted the ictc-g-1-fix branch January 11, 2020 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants