Reputation: 8488
From my code I try to schedule an alarm on philips hue and want the light brightness to gradually turn on from 0 to max value.
I use following code:
PHBridge selectedBridge = PHHueSDK.getInstance().getSelectedBridge();
PHSchedule schedule = new PHSchedule("My Alarm");
PHLightState lightState = new PHLightState();
lightState.setOn(true);
lightState.setTransitionTime(120000);
lightState.setIncrementBri(1);
schedule.setLightState(lightState);
schedule.setLightIdentifier(lightIdentifier);
but the apis lightState.setTransitionTime(120000) and lightState.setIncrementBri(1) dient't seem to help. can someone help me with this.
Upvotes: 0
Views: 829
Reputation: 331
transition time is uint16, so a max of 65535 is allowed.
see Lights API - which is the best documentation you get at the moment... sigh.
I don't know whether it solves you problem, but one less bug.
Upvotes: 2