Parameters necessary for creating a new Group.
More...
#include <hueplusplus/Group.h>
|
| CreateGroup (const std::vector< int > &lights, const std::string &name, const std::string &type, const std::string &roomType) |
| Protected constructor, should not be called directly. More...
|
|
Parameters necessary for creating a new Group.
Provides static functions for each group type that can be created by the user.
- Note
- These are not all types that Group::getType() can return, because some types cannot be created manually.
◆ CreateGroup()
hueplusplus::CreateGroup::CreateGroup |
( |
const std::vector< int > & |
lights, |
|
|
const std::string & |
name, |
|
|
const std::string & |
type, |
|
|
const std::string & |
roomType |
|
) |
| |
|
protected |
Protected constructor, should not be called directly.
- Parameters
-
lights | List of light ids for the group. |
name | Name of the group, empty for default name. |
type | Type of the group, empty for default type. |
roomType | Room class if type is room, empty for default class or if type is not room. |
◆ Entertainment()
CreateGroup hueplusplus::CreateGroup::Entertainment |
( |
const std::vector< int > & |
lights, |
|
|
const std::string & |
name = "" |
|
) |
| |
|
static |
Create an Entertainment group.
The lights are used in an entertainment setup and can have relative positions. The group can be empty.
- Parameters
-
lights | List of light ids, may be empty. |
name | Name of the group, optional. |
◆ getRequest()
nlohmann::json hueplusplus::CreateGroup::getRequest |
( |
| ) |
const |
Get request to create the group.
- Returns
- JSON request for a POST to create the new group
◆ LightGroup()
CreateGroup hueplusplus::CreateGroup::LightGroup |
( |
const std::vector< int > & |
lights, |
|
|
const std::string & |
name = "" |
|
) |
| |
|
static |
Create a LightGroup.
LightGroup is the default type for groups. Empty LightGroups will be deleted.
- Parameters
-
lights | List of light ids, must not be empty. |
name | Name of the new group, optional. |
◆ Room()
CreateGroup hueplusplus::CreateGroup::Room |
( |
const std::vector< int > & |
lights, |
|
|
const std::string & |
name = "" , |
|
|
const std::string & |
roomType = "" |
|
) |
| |
|
static |
Create a Room group.
Rooms can have a room class and can be empty. Every light can only be in one room.
- Parameters
-
lights | List of light ids, may be empty. |
name | Name of the room, optional. |
roomType | Class of the room (case sensitive), optional. Refer to Hue developer documentation for a list of possible room classes. |
◆ Zone()
CreateGroup hueplusplus::CreateGroup::Zone |
( |
const std::vector< int > & |
lights, |
|
|
const std::string & |
name = "" |
|
) |
| |
|
static |
Create a Zone.
Zones can be empty, a light can be in multiple zones.
- Parameters
-
lights | List of light ids, may be empty. |
name | Name of the Zone, optional. |
The documentation for this class was generated from the following files: