SteveyO / Hue-Emulator

A Bridge API Emulator for the Philips Hue (Personal Wireless System)
165 stars 41 forks source link

/groups/0 does not seem to exist #9

Open Cellcote opened 9 years ago

Cellcote commented 9 years ago

The resource /groups/0 does not seem to exist. As mentioned here (http://www.developers.meethue.com/documentation/api-core-concepts#color_gets_more_complicated), a request to /groups/0 would be a group containing all lights, however, i seem to be getting this error:

[{"error":{"address":"/groups/0","description":"resource, /groups/0, not available","type":"3"}}]

SteveyO commented 9 years ago

The emulator supports setting light states to Group 0, i.e. http://www.developers.meethue.com/documentation/groups-api#25_set_group_state

The group 0 is not visible on a real hue bridge either, however, you are right, if you do a GET on groups/0 it returns the above error. On a hue bridge it returns some information about the default group. Doing a GET on groups/0 is not that common hence I hadn't noticed it. I may fix in the next version, although not a big issue imho.