diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index 54e10c26129e..e42402bc2af5 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -668,6 +668,8 @@ void ShutterInit(void) break; case SHT_COUNTER: ShutterGlobal.open_velocity_max = ShutterSettings.open_velocity_max; + // Limit the numbers of shutter to 4 because only 4 counters can be defined + TasmotaGlobal.shutters_present = tmin(TasmotaGlobal.shutters_present, 4); break; }