From c50eebaf878f83439091f1e1703e338e23fbea47 Mon Sep 17 00:00:00 2001 From: rhammen <75572839+rhammen@users.noreply.github.com> Date: Mon, 30 Oct 2023 22:43:50 +0100 Subject: [PATCH] Fix false-positive cooling detection Fix for #172 --- custom_components/luxtronik/sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/luxtronik/sensor.py b/custom_components/luxtronik/sensor.py index d4fbd85..b4a366b 100644 --- a/custom_components/luxtronik/sensor.py +++ b/custom_components/luxtronik/sensor.py @@ -285,7 +285,8 @@ def _handle_coordinator_update( T_heat_in = self._get_value(LC.C0204_HEAT_SOURCE_INPUT_TEMPERATURE) T_heat_out = self._get_value(LC.C0020_HEAT_SOURCE_OUTPUT_TEMPERATURE) Flow_WQ = self._get_value(LC.C0173_HEAT_SOURCE_FLOW_RATE) - if (T_out > T_in) and (T_heat_out > T_heat_in) and (Flow_WQ > 0): + Pump = self._get_value(LC.C0043_PUMP_FLOW) + if (T_out > T_in) and (T_heat_out > T_heat_in) and (Flow_WQ > 0) and Pump: # LOGGER.info(f"Cooling mode detected!!!") self._attr_native_value = LuxOperationMode.cooling.value # endregion Workaround Detect passive cooling operation mode