mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Update xdrv_10_scripter.ino
This commit is contained in:
parent
9d4129501b
commit
2bc4c9ff03
@ -5821,8 +5821,8 @@ void Script_Handle_Hue(String *path) {
|
||||
String x_str = tok_x.getStr();
|
||||
String y_str = tok_y.getStr();
|
||||
uint8_t rr,gg,bb;
|
||||
LightStateClass::XyToRgb(x, y, &rr, &gg, &bb);
|
||||
LightStateClass::RgbToHsb(rr, gg, bb, &hue, &sat, nullptr);
|
||||
XyToRgb(x, y, &rr, &gg, &bb);
|
||||
RgbToHsb(rr, gg, bb, &hue, &sat, nullptr);
|
||||
if (resp) { response += ","; }
|
||||
response += FPSTR(sHUE_LIGHT_RESPONSE_JSON);
|
||||
response.replace("{id", String(device));
|
||||
|
Loading…
x
Reference in New Issue
Block a user