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

Fixed issue with device port updates not being caught #1

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

meatheadmike
Copy link

If left long enough, wemo dimmers will eventually switch the port they are listening on. If we don't catch this, they simply stop responding on SmarthThings. This can be tested by resetting the dimmer (hold down the tiny button at the bottom of the switch until it glows white). One it restarts it will pick a port - usually a new one.

This PR addresses that issue. There are a few other code updates based on best practices that I gleaned from the API docs. The fix is primarily just one line in the subscribeToDevices() function:

discoverAllWemoTypes()

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.

1 participant