PLUGIN: Wink Connect (formerly Wink Hub Controller)

I think I just found a bug in v0.20. I reset my VeraEdge yesterday due to other issues and installed 0.19 from the app store and today and upgraded to 0.20 and my two switches on my Relay disappeared from Vera. It used to show the 2 separate devices that are wired to the 2 switches on v0.19.

@cybermarge - Still need assistance with luup restarts

[quote=“wezley69, post:622, topic:185289”]@cybermarge - Still need assistance with luup restarts

Long answer:
Looks like this is caused by the manual update to the plugin…
You installed version 0.19 from the App Marketplace…
You then manually upgraded to 0.20…
In the lua file for v0.20, I made some changes to remove obsolete files… These files are still required by the version of the plugin that the Vera thinks is installed… So Vera downloads the files again and restarts the LuaUPnP engine… When the Vera restarts the LuaUPnP engine, the files are no longer missing… the plugin initializes and deletes the files… Then, when the Vera saves the UserData, it notices the files are missing, downloads the files and restarts the LuaUPnP engine…

Short answer:
I made a change (deleting obsolete files) that should have been delayed to the next published version (after the references to the obsolete files were removed from the file manifest for the plugin).

Now that the v0.20 version has been approved and is available in the App Marketplace, you can resolve the issue by upgrading the plugin from the app marketplace.

[quote=“cybrmage, post:623, topic:185289”][quote=“wezley69, post:622, topic:185289”]@cybermarge - Still need assistance with luup restarts

Long answer:
Looks like this is caused by the manual update to the plugin…
You installed version 0.19 from the App Marketplace…
You then manually upgraded to 0.20…
In the lua file for v0.20, I made some changes to remove obsolete files… These files are still required by the version of the plugin that the Vera thinks is installed… So Vera downloads the files again and restarts the LuaUPnP engine… When the Vera restarts the LuaUPnP engine, the files are no longer missing… the plugin initializes and deletes the files… Then, when the Vera saves the UserData, it notices the files are missing, downloads the files and restarts the LuaUPnP engine…

Short answer:
I made a change (deleting obsolete files) that should have been delayed to the next published version (after the references to the obsolete files were removed from the file manifest for the plugin).

Now that the v0.20 version has been approved and is available in the App Marketplace, you can resolve the issue by upgrading the plugin from the app marketplace.[/quote]

Ah! I was wondering why I was getting so many LUUP restarts as well. I did the same thing, that’s actually how I usually update this plugin when you release updates.

Thanks cybrmage!

Yes Thank You Cybermarge!

Edit: Working perfectly! No restarts.

Actually… it’s a combination of factors… The data for the Wink Relay switches that is returned by the Wink API servers has changed slightly… and that caused these switches to be ignored (because they were mistaken for Tapt switches, but don’t have the correct data for a Tapt switch)…

The attached update (v0.20.1) should resolve the issue. (“L_Wink_Hub1.lua” is the only file that has changed)

After the most recent update you posted Cybrmage I’ve started having issues with the plugin loading, currently it’s stuck on “Initializing child devices…” and I’ve tried rebooting and completely powering down my VeraEdge but it doesn’t seem to load correctly. Anything else I should try? I can’t enable DEBUG mode, I just get an error saying “ERROR: Device not ready”.

I still need the LuaUPnP.log… I have it running without issue on UI5 and UI7, so… need to see the logs…

I still need the LuaUPnP.log… I have it running without issue on UI5 and UI7, so… need to see the logs…[/quote]

Here you go: Dropbox

@DubbedOut

Something in the device data is causing the plugin to crash…
Attached is a fix (v0.20.2) to prevent that crash (basically, abort the function rather than cause the crash)… I think there is something else going wrong, but the log you provided does not show what it is…

Once you try it and verify that the plugin doesn’t crash, please enable debug mode and post the new log so I can track down the root cause…

Been running for a couple days now and I’ve only noticed an issue with my groups not always showing the correct status. Sometimes when I re-sync they show up correctly again.

Any reason why the wink plugin would continually restart and try to configure? The status says ready but I see restarts in the luup engine.

Sent from my iPhone using Tapatalk

Is there a way you can add color control to this Zigbee device inside the WINK?

Any chance we’ll see support for the iHome Control Smart Plug in future updates? Wink | Help | iHome

Sure… There’s a reason… But, without logs it is impossible to tell whether its the Wink Connect plugin or another issue. Post the issue with logs in a new thread and I’ll see what I can find.

Funny you should ask… I actually picked up some EcoSmart RGBW and Tunable White bulbs last week…
UI7 has added support for color, so adding support for color changing devices, so adding full support is already done (see below)…
UI5 does not have color support, so there is no standard way of getting a color picker… I will have to add a color picker to the plugin… Until I am able to do that, on/off/dim for RGBW bulbs and on/off/dim/presets for Tunable White bulbs is the best I can do.

I have no plans to acquire any iHome devices… So, to add support, you will need to add the device to your Wink account, turn on Debug Mode in the plugin and capture the logs from the getDeviceListRemote function. (Please create a new thread in the Wink Connect subforum)

An updated version (v0.20.12), with color support, is available in the LATEST VERSION thread HERE

We now have a subforum specifically for the plugin… and I’ve been working on collating the available information…
Wink Connect Forum
Latest Updates
Documentation
Supported Device notes

If you have any issues, please create a new thread in the Wink Connect subforum rather than adding to this thread.

Mage, what bulbs did you get?

Sent from my HTC6525LVW using Tapatalk

[quote=“Aaron, post:636, topic:185289”]Mage, what bulbs did you get?

Sent from my HTC6525LVW using Tapatalk[/quote]

I get it, i meant - model #s? Web searches are not bringing up anything. I even looked when I was in store and didn’t see anything from Ecosmart that was RGBW or tunable white.

Also, any plan to turn on Autoupdate in the plugin?

thx

Ecosmart A19 Smart Bulb - Full Color Spectrum
Model #: 50215019901
HD Part #: 1000844848

Ecosmart A19 Smart Bulb - Soft White/Bright White/Daylight
Model #: 50211020001
HD Part #: 1000844849

Ecosmart BR30 Smart Bulb - Soft White/Bright White/Daylight
Model #: 50214020001
HD Part #: 1000844850

Ecosmart GU10 Smart Bulb - Soft White/Bright White/Daylight
Model #: 50216020001
HD Part #: 1000844851

Ecosmart PAR20 Smart Bulb - Soft White/Bright White/Daylight
Model #: 50212020001
HD Part #: 1000844852

Kinda strange that we get them in the great white north before the lower 48…

yup, those dont’ come up in web searches for Ecosmart RGB. And, those are quite expensive! Hope they work well.

I installed the latest version but I’m not seeing any tunable white controls / color settings? I have UI5.