Nice work. The engine loads and a new switch is created (Lutron dimmable). However, the new switch generates an error and does not toggle the light.
Strange... The Lutron dimmers were devices I actually tested the plugin with...
The section of code involved enumerates the Vera child devices and matches them against the devices reported by the hub... So either the device list returned by the Wink Hub is missing some data, has changed format or something else completely...
Can you go to the setup page for the Lutron Dimmer device, go to the Advanced tab and check the ID parameter... it should be similar to "Wink_123456_123456"...
Also, can you go to the settings page for the hub devices, click on "Debug" to turn on debugging output then do a reload and post the section of the log before the error that start with "(Wink_Hub::findChildDevices): testing device" and before that "(Wink_Hub::HUB_DEVICES::getDeviceList): processing device" for the device. I need to see what the Wink API is sending as the device definition and the results of processing that definition into a vera device. Thanks
Does the app recognize the Spotter as one of the child devices and controlled by Vera.
Mine does not. But I have found out that the spotters are kinda weird.
I do not have any spotters, so I have not been able to add support for them.
Although the spotters are not attached to a hub, they are attached to your Wink API account... The plugin uses the Wink API to get device information, so if someone can provide the data format that the Wink API provides for the spotter, i should be able to add support for it...
If someone wants to provide the required data, enable debug mode and then do a reload. then post the section from the log that starts ""(Wink_Hub::HUB_DEVICES::getDeviceList): processing device" for the spotter device.
If anyone has additional devices that are not supported - provide the appropriate data and i'll try to add support.
I also can't see the wink lights in apps like homewave, but that could be operator error as I am just figuring out homewave.
The lights should show up in any mobile app, as they use the same device type in vera as any other binary light light or dimmable light. You may need to refresh the configuration in the mobile app before they will show up... If that is not the case, let me know and I will try to track down the problem (eventually... when I have my toys set up in the new house...)