Skip to content

Commit

Permalink
Merge pull request #178 from rhammen/patch-2
Browse files Browse the repository at this point in the history
Fix false-positive cooling detection
  • Loading branch information
BenPru authored Oct 30, 2023
2 parents 65bb1f6 + c50eeba commit e0db55b
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 @@ -294,7 +294,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 e0db55b

Please sign in to comment.