From e11c874edaa142f2ef311450e1a684c01b6e928b Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 21 Jul 2025 09:26:30 +0200 Subject: [PATCH] Fix power0 regression from yesterday --- tasmota/tasmota_support/support_tasmota.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_support/support_tasmota.ino b/tasmota/tasmota_support/support_tasmota.ino index db2ac55b9..07d3ce058 100644 --- a/tasmota/tasmota_support/support_tasmota.ino +++ b/tasmota/tasmota_support/support_tasmota.ino @@ -410,9 +410,11 @@ void SetAllPower(uint32_t state, uint32_t source) { break; } #ifdef USE_SONOFF_IFAN - // Do not touch Fan relays - TasmotaGlobal.power &= 0x0001; - TasmotaGlobal.power |= (current_power & 0xFFFE); + if (IsModuleIfan()) { + // Do not touch Fan relays + TasmotaGlobal.power &= 0x0001; + TasmotaGlobal.power |= (current_power & 0xFFFE); + } #endif // USE_SONOFF_IFAN SetDevicePower(TasmotaGlobal.power, source); }