mirror of https://github.com/arendst/Tasmota.git
Fix Alexa for ALL cores
Alexa uses Phillips Hue Emulation to control Tasmota. With this fix, the webserver arguments are passed to Tasmota as keys instead of args solving the Alexa issue for ALL cores. Besides, for core 2.6.0 is planned to deprecate the use of args in favor of keys. This fix makes Alexa to works compiling Tasmota under core 2.3.0, 2.4.0, 2.4.1, 2.4.2, 2.5.0 (stage), 2.6.0 (planned) Tested Ok.
This commit is contained in:
parent
77d54be267
commit
06cc70aaf4
|
@ -664,7 +664,7 @@ void HueLights(String *path)
|
|||
response = "[";
|
||||
|
||||
StaticJsonBuffer<400> jsonBuffer;
|
||||
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg((WebServer->args())-1));
|
||||
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg("1"));
|
||||
if (hue_json.containsKey("on")) {
|
||||
|
||||
response += FPSTR(HUE_LIGHT_RESPONSE_JSON);
|
||||
|
|
Loading…
Reference in New Issue