studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.52k stars 267 forks source link

Get the name of all Groups on the bridge? #115

Closed JohnGiorgi closed 4 years ago

JohnGiorgi commented 6 years ago

Is there a simple way to get the name of all groups on the bridge? I know I can try:

b = Bridge(<bridge ip>)
groups = b.get_group()
group_names = [groups[key]['name'] for key in groups]

I have a hunch there is a simpler way to interact with the API that will return all group names as strings in a list (without having to parse the dictionary get_group() returns like I have done). Is there??

Thanks very much in advance!