michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
411 stars 114 forks source link

Get groups function without lights #21

Closed DanielSchultz closed 10 years ago

DanielSchultz commented 10 years ago

If i want all groups with lights list, the list of lights are empty.

Maybe you have forgotten to save the list of lights in the Class "HueClient-Groups" in the function "GetGroupsAsync".

michielpost commented 10 years ago

The lights are not returned from the bridge when you get all the groups, only when you get a single group. But the same Group class is reused for getting a list of groups and for getting a single group. Same goes for the Action property.

I'll add some comments to the Lights and Action property to clarify this.