diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 91f2f2f..bc516d2 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ diff --git a/SomfyController.littlefs.bin b/SomfyController.littlefs.bin index 0821512..baf50d5 100644 Binary files a/SomfyController.littlefs.bin and b/SomfyController.littlefs.bin differ diff --git a/Web.cpp b/Web.cpp index 71089e7..b55bfc7 100644 --- a/Web.cpp +++ b/Web.cpp @@ -184,7 +184,7 @@ void Web::begin() { uint8_t target = 255; somfy_commands command = somfy_commands::My; if (method == HTTP_GET || method == HTTP_PUT || method == HTTP_POST) { - if (server.hasArg("shadeId")) { + if (apiServer.hasArg("shadeId")) { shadeId = atoi(apiServer.arg("shadeId").c_str()); if (apiServer.hasArg("command")) command = translateSomfyCommand(apiServer.arg("command")); else if(apiServer.hasArg("target")) target = atoi(apiServer.arg("target").c_str()); diff --git a/data/index.js b/data/index.js index c28e81b..6e4f981 100644 --- a/data/index.js +++ b/data/index.js @@ -1318,6 +1318,7 @@ class Somfy { document.getElementById('btnLinkRemote').style.display = 'none'; document.getElementsByName('shadeUpTime')[0].value = 10000; document.getElementsByName('shadeDownTime')[0].value = 10000; + document.getElementById('fldTiltTime').value = 7000; document.getElementById('somfyMain').style.display = 'none'; document.getElementById('somfyShade').style.display = ''; document.getElementById('btnSaveShade').innerText = 'Add Shade';