From b59d63a07a8c64788d887d55c939eba9b3f48013 Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Sun, 28 Oct 2018 11:17:41 +0100 Subject: [PATCH] Reverting Alexa fix General Alexa for all cores doesnt work. Reverting fix. This fix does only work on Stage core 2.5.0. Awaiting new general fix from @ascillato soon --- sonoff/xplg_wemohue.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xplg_wemohue.ino b/sonoff/xplg_wemohue.ino index 2f70174f0..f8eff5ddc 100644 --- a/sonoff/xplg_wemohue.ino +++ b/sonoff/xplg_wemohue.ino @@ -664,7 +664,7 @@ void HueLights(String *path) response = "["; StaticJsonBuffer<400> jsonBuffer; - JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg("1")); + JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg((WebServer->args())-1)); if (hue_json.containsKey("on")) { response += FPSTR(HUE_LIGHT_RESPONSE_JSON);