michielpost / Q42.HueApi

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

New attribute: GroupScene #161

Closed niels9001 closed 5 years ago

niels9001 commented 5 years ago

It's now possible to also set to use a Group instead of the list of lights when creating a scene:

https://developers.meethue.com/develop/hue-api/4-scenes/ `

string 1.28 Type of the scene.If not provided on creation a “LightScene” is created. Supported types:
LightScene 1.28 Default
GroupScene 1.28 Represents a scene which links to a specific group. While creating a new GroupScene, the group attribute shall be provided.The lights array is a read-only attribute, it cannot be modified, and shall not be provided upon GroupScene creation.When lights in a group is changed, the GroupScenes associated to this group will be automatically updated with the new list of lights in the group. The new lights added to the group will be assigned with default states for associated GroupScenes.When a group is deleted or becomes empty, all the GroupScenes associated to the group will be deleted automatically.
group string 1.28 group ID that a scene is linked to.

`

michielpost commented 5 years ago

These properties are already added: https://github.com/Q42/Q42.HueApi/blob/a21f5cbb4627c4b3ccedf5401eddaf33b6932301/src/Q42.HueApi/Models/Scene.cs#L71-L75