Issue #66 When windows opens and closes rapidly, thermostat stays to OFF

This commit is contained in:
Jean-Marc Collin
2023-03-19 10:28:16 +01:00
parent 0671e008a1
commit 93cfd22744
2 changed files with 209 additions and 1 deletions

View File

@@ -1468,6 +1468,10 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
# if not self._saved_hvac_mode:
# self._saved_hvac_mode = self._hvac_mode
if self._window_state == new_state.state:
_LOGGER.debug("%s - no change in window state. Forget the event")
return
self._window_state = new_state.state
if self._window_state == STATE_OFF:
_LOGGER.info(