lifx-sdk-java icon indicating copy to clipboard operation
lifx-sdk-java copied to clipboard

Group discovery takes a really long time

Open iheart2code opened this issue 10 years ago • 3 comments

Discovering individual LIFX bulbs is super quick (< 1 second) but it takes anywhere from 5 to 15 seconds for the groups to be populated.

iheart2code avatar Jan 27 '15 06:01 iheart2code

I have seen it take much longer – I have seen open(true) take 2-5 minutes.

joakimar avatar Jan 30 '15 03:01 joakimar

This is not apparent from the documentation (#17), but when you do open(true) it is going to wait for everything to load before continuing. This includes groups, alarms and details. As it turns out this can take a long time because the lights don't really like to answer all requests. If you need open(true) to be faster create a separate issue for that, so I'll know to prioritize.

Getting groups to load faster on open(false) is on the radar and will be fixed in the near future.

loefberg avatar Jan 30 '15 07:01 loefberg

This could be resolved with an implementation of #29

iheart2code avatar Jan 30 '15 19:01 iheart2code