Skip to content

Comments

Fixed issue with device port updates not being caught#1

Open
meatheadmike wants to merge 22 commits intokris2k2:masterfrom
meatheadmike:master
Open

Fixed issue with device port updates not being caught#1
meatheadmike wants to merge 22 commits intokris2k2:masterfrom
meatheadmike:master

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