From ccd76b26ed8c309b3a413b39535d5309bb1abc9e Mon Sep 17 00:00:00 2001 From: stefanbode Date: Wed, 4 Dec 2024 11:43:51 +0100 Subject: [PATCH] Re-enable shutter report on teleperiod (#22586) * Reactivate shutter report on teleperiod * Reactivate shutter report on teleperiod --- tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino | 2 +- tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index 539925152..a26d1a6b1 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -2383,7 +2383,7 @@ bool Xdrv27(uint32_t function) } break; case FUNC_JSON_APPEND: - if (!ShutterGlobal.sensor_data_reported) { + if (!ShutterGlobal.sensor_data_reported || TasmotaGlobal.tele_period == 0) { ShutterGlobal.sensor_data_reported = true; for (uint8_t i = 0; i < TasmotaGlobal.shutters_present; i++) { ResponseAppend_P(","); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino index 7bc096a4b..282924839 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino @@ -1974,7 +1974,7 @@ bool Xdrv27(uint32_t function) } break; case FUNC_JSON_APPEND: - if (!sensor_data_reported) { + if (!sensor_data_reported || TasmotaGlobal.tele_period == 0) { sensor_data_reported = true; for (uint8_t i = 0; i < TasmotaGlobal.shutters_present; i++) { uint8_t position = ShutterRealToPercentPosition(Shutter[i].real_position, i);