Skip to content

Commit

Permalink
Fix false-positive cooling detection
Browse files Browse the repository at this point in the history
Fix for #172
  • Loading branch information
rhammen authored Oct 30, 2023
1 parent 3c40dca commit c50eeba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/luxtronik/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c50eeba

Please sign in to comment.