PhilipsHue / PhilipsHueSDK-iOS-OSX

The Software Development Kit for Philips Hue on iOS and OS X (beta)
579 stars 169 forks source link

Ability to Delete Lights (especially dead ones) #79

Closed lightbow closed 9 years ago

lightbow commented 9 years ago

When I call: PHBridgeSendAPI bridgeSendAPI = [[PHBridgeSendAPI alloc] init]; [bridgeSendAPI removeLightWithId:identifier completionHandler:^(NSArray errors) { [[LBErrorAndWarningController sharedController] reportErrors:errors]; }];

I get this error: UNSUPPORTED_IN_THIS_VERSION = 80

I have several customers (and myself included) where dead bulbs (or bugs that caused a light to appear twice) are still in the light list coming from the bridge. It would be great to be able to nuke those entries without a full bridge reset.

pverh commented 9 years ago

As of SDK version 1.3.1beta it is possible to delete lights using the above method when you have a bridge running the 1.7 firmware or higher.