gohue icon indicating copy to clipboard operation
gohue copied to clipboard

Add initial support for Groups

Open nixpanic opened this issue 7 years ago • 0 comments

This adds support for the following functions that act on a Group:

  • Bridge.GetAllGroups() Returns an array of all the groups that are known to the bridge (this function has been renamed from Bridge.GetGroups() to match the Bridge.GetAllLights(), GetAllScenes() naming scheme)

  • Bridge.GetGroupByName(name) Returns the group with the given name, or an error if not found

  • Bridge.NewGroup(name, class, lights[]) Create a new group

  • Group.Delete() Remove the group from the bridge

  • Group.On() Turn all the lights in the group on

  • Group.Off() Turn all the lights in the group off

nixpanic avatar Aug 05 '18 17:08 nixpanic