diff --git a/Somfy.cpp b/Somfy.cpp index 2641b48..5c3a45b 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -1965,7 +1965,7 @@ void SomfyShade::sendCommand(somfy_commands cmd, uint8_t repeat) { this->tiltTarget = this->currentTiltPos; } } - else if(this->shadeType == shade_types::garage1 && cmd == somfy_commands::My) { + else if(this->shadeType == shade_types::garage1 && cmd == somfy_commands::Prog) { SomfyRemote::sendCommand(somfy_commands::Toggle, repeat); } else { diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 5316907..6e4183c 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ diff --git a/Web.cpp b/Web.cpp index aa3afce..e7fcbbb 100644 --- a/Web.cpp +++ b/Web.cpp @@ -381,6 +381,7 @@ void Web::handleRepeatCommand(WebServer& server) { server.send(500, _encoding_json, F("{\"status\":\"ERROR\",\"desc\":\"Shade reference could not be found.\"}")); return; } + if(shade->shadeType == shade_types::garage1 && command == somfy_commands::Prog) command = somfy_commands::Toggle; if(!shade->isLastCommand(command)) { // We are going to send this as a new command. shade->sendCommand(command, repeat >= 0 ? repeat : shade->repeats);