Skip to content

Commit

Permalink
Fix Overkiz Hitachi OVP air-to-air heat pump (home-assistant#114611)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotvav authored Apr 2, 2024
1 parent 49fc8a1 commit a3dce51
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ async def _global_control(
OverkizState.OVP_FAN_SPEED,
OverkizCommandParam.AUTO,
)
# Sanitize fan mode: Overkiz is sometimes providing a state that
# cannot be used as a command. Convert it to HA space and back to Overkiz
if fan_mode not in FAN_MODES_TO_OVERKIZ.values():
fan_mode = FAN_MODES_TO_OVERKIZ[OVERKIZ_TO_FAN_MODES[fan_mode]]

hvac_mode = self._control_backfill(
hvac_mode,
OverkizState.OVP_MODE_CHANGE,
Expand Down

0 comments on commit a3dce51

Please sign in to comment.