Skip to content

Commit 0100084

Browse files
authored
Merge pull request BenPru#404 from rhammen/resolve_cooling_flickering
Resolve Status-Cooling flickering
2 parents 5f8c648 + d8eef3e commit 0100084

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

custom_components/luxtronik/common.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ def correct_key_value(
9595
):
9696
return LuxStatus1Option.compressor_heater
9797
# endregion Workaround Luxtronik Bug: Line 1 shows 'pump forerun' on CompressorHeater!
98+
# region Workaround Detect passive cooling operation mode
99+
if (
100+
sensor_id == LC.C0080_STATUS
101+
and value == LuxOperationMode.no_request
102+
and bool(get_sensor_data(sensors,LC.C0119_STATUS_LINE_3) == 'cooling')
103+
):
104+
return LuxOperationMode.cooling
105+
# endregion Workaround Detect passive cooling operation mode
106+
98107
return value
99108

100109

custom_components/luxtronik/sensor.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -304,27 +304,6 @@ def _handle_coordinator_update(
304304
self._attr_native_value = LuxOperationMode.domestic_water.value
305305
# endregion Workaround Thermal desinfection with (only) using 2nd heatsource
306306

307-
# region Workaround Detect passive cooling operation mode
308-
if self._attr_native_value == LuxOperationMode.no_request.value:
309-
# detect passive cooling
310-
if self.coordinator.detect_cooling_present():
311-
T_in = self._get_value(LC.C0010_FLOW_IN_TEMPERATURE)
312-
T_out = self._get_value(LC.C0011_FLOW_OUT_TEMPERATURE)
313-
T_heat_in = self._get_value(LC.C0204_HEAT_SOURCE_INPUT_TEMPERATURE)
314-
T_heat_out = self._get_value(
315-
LC.C0024_HEAT_SOURCE_OUTPUT_TEMPERATURE
316-
)
317-
Flow_WQ = self._get_value(LC.C0173_HEAT_SOURCE_FLOW_RATE)
318-
Pump = self._get_value(LC.C0043_PUMP_FLOW)
319-
if (
320-
(T_out > T_in)
321-
and (T_heat_out > T_heat_in)
322-
and (Flow_WQ > 0)
323-
and Pump
324-
):
325-
# LOGGER.info(f"Cooling mode detected!!!")
326-
self._attr_native_value = LuxOperationMode.cooling.value
327-
# endregion Workaround Detect passive cooling operation mode
328307
# endregion Workaround Luxtronik Bug
329308

330309
self._last_state = self._attr_native_value

0 commit comments

Comments
 (0)