KraigM / homebridge-wink

Wink hub plugin for HomeBridge
54 stars 37 forks source link

Dynamically Register/Unregister Devices #12

Open pdlove opened 8 years ago

pdlove commented 8 years ago

One of the devices I have in abundance is the GE Link Bulb. I'm wanting to utilize the "connected" flag in the Wink API to properly Register/Unregister the bulbs with HomeKit when the light switch is turned on or off. In addition, when a new device is added or removed in Wink, that should be reflected in HomeKit. I believe the accessory will still have to be removed from HomeKit manually, but it should at least show as unavailable.

In the development of these other devices, I believe this should be possible and will require changes to hap-nodejs and likely home kit. The Wemo project definitely wants this because of how device discovery works on that platform. Because of this, it will likely take a while to get rolled out and fully working. Should I find it not possible, I will notate that here and close the ticket. If doing this causes errors to log on the iPhone in the HomeKit Developer app, even if the error is not shown to the user, I will consider it not supported.

pdlove commented 8 years ago

I'm looking into using the new homebridge platform for this. All of the changes have been proposed there to make this a reality.