diff --git a/custom_components/versatile_thermostat/climate.py b/custom_components/versatile_thermostat/climate.py index ad1c512..115c05d 100644 --- a/custom_components/versatile_thermostat/climate.py +++ b/custom_components/versatile_thermostat/climate.py @@ -2050,7 +2050,10 @@ class VersatileThermostat(ClimateEntity, RestoreEntity): now - self._last_ext_temperature_mesure.replace(tzinfo=self._current_tz) ).total_seconds() / 60.0 - mode_cond = self._is_over_climate or self._hvac_mode != HVACMode.OFF + # TODO before change: + # mode_cond = self._is_over_climate or self._hvac_mode != HVACMode.OFF + # fixed into this. Why if _is_over_climate we could into security even if HVACMode is OFF ? + mode_cond = self._hvac_mode != HVACMode.OFF temp_cond: bool = ( delta_temp > self._security_delay_min diff --git a/custom_components/versatile_thermostat/underlyings.py b/custom_components/versatile_thermostat/underlyings.py index 87d4ce6..521dcd1 100644 --- a/custom_components/versatile_thermostat/underlyings.py +++ b/custom_components/versatile_thermostat/underlyings.py @@ -581,8 +581,41 @@ class UnderlyingClimate(UnderlyingEntity): return self._underlying_climate.temperature_unit @property - def target_temperature_step(self) -> str: + def target_temperature_step(self) -> float: """Get the target_temperature_step""" if not self.is_initialized: return 1 return self._underlying_climate.target_temperature_step + + @property + def target_temperature_high(self) -> float: + """Get the target_temperature_high""" + if not self.is_initialized: + return 30 + return self._underlying_climate.target_temperature_high + + @property + def target_temperature_low(self) -> float: + """Get the target_temperature_low""" + if not self.is_initialized: + return 15 + return self._underlying_climate.target_temperature_low + + @property + def is_aux_heat(self) -> bool: + """Get the is_aux_heat""" + if not self.is_initialized: + return False + return self._underlying_climate.is_aux_heat + + def turn_aux_heat_on(self) -> None: + """Turn auxiliary heater on.""" + if not self.is_initialized: + return None + return self._underlying_climate.turn_aux_heat_on() + + def turn_aux_heat_off(self) -> None: + """Turn auxiliary heater on.""" + if not self.is_initialized: + return None + return self._underlying_climate.turn_aux_heat_off() \ No newline at end of file