PhilipsHue / HueSDK

Philips Hue Software Development Kit
98 stars 39 forks source link

Scene Transition Times returning null after a bridge reconnect #34

Closed danzada1 closed 6 years ago

danzada1 commented 6 years ago

My code is able to successfully retrieve the transition time of a newly created scene if my app does not reconnect to the bridge. But after a reconnect, I only receive null when calling getTransitionTime on a fetched scene, even though the light states are retrieved OK. Any ideas on how to fix?

Thanks!

jhvdb87 commented 6 years ago

Transition time is a write only value and not part of the JSON on retrieval from the bridge. That's why the value is null. I would rather use the transition time on the light states you set for the lights in the scene.

danzada1 commented 6 years ago

Thanks! That makes sense and is working for me now.