diff --git a/MQTT.cpp b/MQTT.cpp index ae41771..24fc5b3 100644 --- a/MQTT.cpp +++ b/MQTT.cpp @@ -99,6 +99,10 @@ void MQTTClass::receive(const char *topic, byte*payload, uint32_t length) { if(val >= 0 && val <= 100) shade->setMyPosition(val); } + else if(strncmp(command, "myTiltPos", sizeof(command)) == 0) { + if(val >= 0 && val <= 100) + shade->setMyPosition(shade->myPos, val); + } else if(strncmp(command, "sunFlag", sizeof(command)) == 0) { if(val >= 0) shade->sendCommand(somfy_commands::SunFlag); else shade->sendCommand(somfy_commands::Flag); diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index e4a6876..b160f38 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ