mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-02 15:37:42 +00:00
Revert last commit, always display XY colors when colors are available
This commit is contained in:
parent
6b1efb9abc
commit
e4173848b9
@ -631,13 +631,11 @@ void HueLightStatus1(uint8_t device, String *response)
|
||||
light_status += "\"colormode\":\"" + String(g_gotct ? "ct" : "hs") + "\",";
|
||||
}
|
||||
if (LST_RGB <= light_subtype) { // colors
|
||||
light_status += "\"hue\":" + String(hue) + ",";
|
||||
light_status += "\"sat\":" + String(sat) + ",";
|
||||
if (!g_gotct) {
|
||||
float x, y;
|
||||
light_state.getXY(&x, &y);
|
||||
light_status += "\"xy\":[" + String(x, 5) + "," + String(y, 5) + "],";
|
||||
}
|
||||
light_status += "\"hue\":" + String(hue) + ",";
|
||||
light_status += "\"sat\":" + String(sat) + ",";
|
||||
}
|
||||
if (LST_COLDWARM == light_subtype || LST_RGBW <= light_subtype) { // white temp
|
||||
light_status += "\"ct\":" + String(ct > 0 ? ct : 284) + ","; // if no ct, default to medium white
|
||||
|
Loading…
x
Reference in New Issue
Block a user