michielpost / Q42.HueApi

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

group metadata is null #318

Open ahihi opened 1 month ago

ahihi commented 1 month ago

hi,

i am using HueApi 1.4.0, as it is the last version with .NET Framework 4.6.1 support.

when i retrieve information about groups like this:

var hue = new LocalHueApi(address, key);
var groupsResponse = await hue.GetGroupsAsync();

i expect to find the group names in the metadata for each group. but i am only getting a null Metadata field for each group. is there something else i need to do to populate this field?

michielpost commented 1 month ago

That is not how the new Hue API works unfortunately. Each group has an owner, this is a resource id. You can get the name of the owner, most of the time this is a room. But for group 0 it is the bridge.