diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index 538e11fe492f..c0383ccf9000 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -1515,8 +1515,9 @@ void CmndShutterPosition(void) int8_t target_pos_percent = (XdrvMailbox.payload < 0) ? (XdrvMailbox.payload == -99 ? ShutterRealToPercentPosition(Shutter[index].real_position, index) : 0) : ((XdrvMailbox.payload > 100) ? 100 : XdrvMailbox.payload); target_pos_percent = ((Settings->shutter_options[index] & 1) && ((SRC_MQTT != TasmotaGlobal.last_source) - || (SRC_SERIAL != TasmotaGlobal.last_source) - || (SRC_WEBCOMMAND != TasmotaGlobal.last_source) + && (SRC_SERIAL != TasmotaGlobal.last_source) + && (SRC_WEBGUI != TasmotaGlobal.last_source) + && (SRC_WEBCOMMAND != TasmotaGlobal.last_source) )) ? 100 - target_pos_percent : target_pos_percent; if (XdrvMailbox.payload != -99) { diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino index c5255c5637fd..29ffe43f4cba 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino @@ -1340,8 +1340,9 @@ void CmndShutterPosition(void) int8_t target_pos_percent = (XdrvMailbox.payload < 0) ? (XdrvMailbox.payload == -99 ? ShutterRealToPercentPosition(Shutter[index].real_position, index) : 0) : ((XdrvMailbox.payload > 100) ? 100 : XdrvMailbox.payload); target_pos_percent = ((Settings->shutter_options[index] & 1) && ((SRC_MQTT != TasmotaGlobal.last_source) - || (SRC_SERIAL != TasmotaGlobal.last_source) - || (SRC_WEBCOMMAND != TasmotaGlobal.last_source) + && (SRC_SERIAL != TasmotaGlobal.last_source) + && (SRC_WEBGUI != TasmotaGlobal.last_source) + && (SRC_WEBCOMMAND != TasmotaGlobal.last_source) )) ? 100 - target_pos_percent : target_pos_percent; if (XdrvMailbox.payload != -99) { //target_pos_percent = (Settings->shutter_options[index] & 1) ? 100 - target_pos_percent : target_pos_percent;