mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added some more hue devices and Gamut-Profile
Added the new Lightstrip plus, hue go and Aura. The first two come with a new Gamut profile and the Aura is from Living Colors. Former-commit-id: 83b676bf136095f3069c219810ea361829d81558
This commit is contained in:
parent
42a6f72f06
commit
8ffbc16090
@ -20,14 +20,16 @@ bool operator !=(CiColor p1, CiColor p2) {
|
|||||||
return !(p1 == p2);
|
return !(p1 == p2);
|
||||||
}
|
}
|
||||||
|
|
||||||
PhilipsHueLight::PhilipsHueLight(unsigned int id, QString originalState, QString modelId) :
|
PPhilipsHueLight::PhilipsHueLight(unsigned int id, QString originalState, QString modelId) :
|
||||||
id(id), originalState(originalState) {
|
id(id), originalState(originalState) {
|
||||||
// Hue system model ids (http://www.developers.meethue.com/documentation/supported-lights).
|
// Hue system model ids (http://www.developers.meethue.com/documentation/supported-lights).
|
||||||
// Light strips, color iris, ...
|
// Light strips, color iris, ...
|
||||||
const std::set<QString> GAMUT_A_MODEL_IDS = { "LLC001", "LLC005", "LLC006", "LLC007", "LLC010", "LLC011", "LLC012",
|
const std::set<QString> GAMUT_A_MODEL_IDS = { "LLC001", "LLC005", "LLC006", "LLC007", "LLC010", "LLC011", "LLC012",
|
||||||
"LLC013", "LST001" };
|
"LLC013", "LLC014", "LST001" };
|
||||||
// Hue bulbs, spots, ...
|
// Hue bulbs, spots, ...
|
||||||
const std::set<QString> GAMUT_B_MODEL_IDS = { "LCT001", "LCT002", "LCT003", "LLM001" };
|
const std::set<QString> GAMUT_B_MODEL_IDS = { "LCT001", "LCT002", "LCT003", "LCT007", "LLM001" };
|
||||||
|
// Hue Lightstrip plus, go ...
|
||||||
|
const std::set<QString> GAMUT_C_MODEL_IDS = { "LLC020", "LST002" };
|
||||||
// Find id in the sets and set the appropiate color space.
|
// Find id in the sets and set the appropiate color space.
|
||||||
if (GAMUT_A_MODEL_IDS.find(modelId) != GAMUT_A_MODEL_IDS.end()) {
|
if (GAMUT_A_MODEL_IDS.find(modelId) != GAMUT_A_MODEL_IDS.end()) {
|
||||||
colorSpace.red = {0.703f, 0.296f};
|
colorSpace.red = {0.703f, 0.296f};
|
||||||
@ -37,6 +39,10 @@ PhilipsHueLight::PhilipsHueLight(unsigned int id, QString originalState, QString
|
|||||||
colorSpace.red = {0.675f, 0.322f};
|
colorSpace.red = {0.675f, 0.322f};
|
||||||
colorSpace.green = {0.4091f, 0.518f};
|
colorSpace.green = {0.4091f, 0.518f};
|
||||||
colorSpace.blue = {0.167f, 0.04f};
|
colorSpace.blue = {0.167f, 0.04f};
|
||||||
|
} else if (GAMUT_C_MODEL_IDS.find(modelId) != GAMUT_B_MODEL_IDS.end()) {
|
||||||
|
colorSpace.red = {0.675f, 0.322f};
|
||||||
|
colorSpace.green = {0.2151f, 0.7106f};
|
||||||
|
colorSpace.blue = {0.167f, 0.04f};
|
||||||
} else {
|
} else {
|
||||||
colorSpace.red = {1.0f, 0.0f};
|
colorSpace.red = {1.0f, 0.0f};
|
||||||
colorSpace.green = {0.0f, 1.0f};
|
colorSpace.green = {0.0f, 1.0f};
|
||||||
|
Loading…
Reference in New Issue
Block a user