diff --git a/custom_components/versatile_thermostat/base_thermostat.py b/custom_components/versatile_thermostat/base_thermostat.py index 51c93d8f..85d50d42 100644 --- a/custom_components/versatile_thermostat/base_thermostat.py +++ b/custom_components/versatile_thermostat/base_thermostat.py @@ -1595,7 +1595,7 @@ async def _async_presence_changed(self, event): await self.async_control_heating(force=True) async def _async_update_presence(self, new_state): - _LOGGER.debug("%s - Updating presence. New state is %s", self, new_state) + _LOGGER.info("%s - Updating presence. New state is %s", self, new_state) self._presence_state = new_state if self._attr_preset_mode in HIDDEN_PRESETS or self._presence_on is False: _LOGGER.info( @@ -1613,24 +1613,6 @@ async def _async_update_presence(self, new_state): if self._attr_preset_mode not in [PRESET_BOOST, PRESET_COMFORT, PRESET_ECO]: return - # Change temperature with preset named _away - # new_temp = None - # if new_state == STATE_ON or new_state == STATE_HOME: - # new_temp = self._presets[self._attr_preset_mode] - # _LOGGER.info( - # "%s - Someone is back home. Restoring temperature to %.2f", - # self, - # new_temp, - # ) - # else: - # new_temp = self._presets_away[ - # self.get_preset_away_name(self._attr_preset_mode) - # ] - # _LOGGER.info( - # "%s - No one is at home. Apply temperature %.2f", - # self, - # new_temp, - # ) new_temp = self.find_preset_temp(self.preset_mode) if new_temp is not None: _LOGGER.debug( diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index 451ffe3d..c1383334 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -109,6 +109,12 @@ async def _async_internal_set_temperature(self, temperature): async def _send_regulated_temperature(self, force=False): """Sends the regulated temperature to all underlying""" + _LOGGER.info( + "%s - Calling ThermostatClimate._send_regulated_temperature force=%s", + self, + force, + ) + if not self._regulated_target_temp: self._regulated_target_temp = self.target_temperature