PhilipsHue / PhilipsHueSDK-Java-MultiPlatform-Android

The Software Development Kit for Philips Hue Java Mulfi-Platform and Android (beta)
273 stars 214 forks source link

Hue Lux #6

Closed ibaton closed 10 years ago

ibaton commented 10 years ago

Does there need to be any changes to the library to support Philips Hue Lux?

SteveyO commented 10 years ago

No changes to the SDK have been made for Lux. If you try and update a 'Lux' PHLightState with an invalid value in the SDK (e.g. Hue, xy, ct, colorloop effect) the bridge returns an error, which in turn is relayed through the SDK. If you want to have control in your app, to ensure that you don't send invalid state attributes to Lux bulbs, the safest bet is to check the PHLight object. In here you can find an enum of PHLightType 's, a Lux bulb having a DIM_LIGHT type (i.e. In the bridge the type is "dimmable light").