Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove auxiliary heating #81

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions custom_components/vimar/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
HVAC_MODE_COOL,
HVAC_MODE_HEAT,
HVAC_MODE_OFF,
SUPPORT_AUX_HEAT,
SUPPORT_FAN_MODE,
SUPPORT_TARGET_TEMPERATURE,
)
Expand Down Expand Up @@ -126,8 +125,6 @@ def supported_features(self):
flags = SUPPORT_TARGET_TEMPERATURE
if self.has_state("velocita_fancoil"):
flags |= SUPPORT_FAN_MODE
if self.has_state("stato_boost on/off"):
flags |= SUPPORT_AUX_HEAT
return flags

@property
Expand Down Expand Up @@ -232,12 +229,6 @@ def hvac_action(self):
else:
return CURRENT_HVAC_IDLE

@property
def is_aux_heat(self):
"""Return True if an auxiliary heater is on. Requires SUPPORT_AUX_HEAT."""
if self.has_state("stato_boost on/off"):
return self.get_state("stato_boost on/off") != "0"

@property
def fan_modes(self):
"""Return the list of available fan modes. Requires SUPPORT_FAN_MODE."""
Expand Down Expand Up @@ -290,17 +281,6 @@ async def async_set_fan_mode(self, fan_mode):
fancoil_speed = "100"
self.change_state("modalita_fancoil", "1", "velocita_fancoil", fancoil_speed)

# aux heating is just an output status
async def async_turn_aux_heat_on(self):
"""Turn auxiliary heater on."""
_LOGGER.info("Vimar Climate setting aux_heat: %s", "on")
self.change_state("stato_boost on/off", "1")

async def async_turn_aux_heat_off(self):
"""Turn auxiliary heater off."""
_LOGGER.info("Vimar Climate setting aux_heat: %s", "off")
self.change_state("stato_boost on/off", "0")

async def async_set_hvac_mode(self, hvac_mode):
"""Set new target hvac mode."""
set_function_mode = None
Expand Down