-
Notifications
You must be signed in to change notification settings - Fork 25
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
New updates no longer enable heating #78
Comments
I think I found the culprit already, sorry for the inconvenience! The better switching of the heating and cooling modes conflicted with the reverse_cycle option. I'll add the necessary checks and push an update asap. # Check new mode against previous HVAC mode and
if previous_mode is not None and previous_mode != self._hvac_mode:
if previous_mode == HVAC_MODE_COOL:
await self._async_cooler_turn_off()
elif previous_mode == HVAC_MODE_HEAT:
await self._async_heater_turn_off()
elif previous_mode == HVAC_MODE_FAN_ONLY:
await self._async_fan_turn_off()
elif previous_mode == HVAC_MODE_DRY:
await self._async_dryer_turn_off()
elif previous_mode == HVAC_MODE_HEAT_COOL:
if self._hvac_mode == HVAC_MODE_COOL:
await self._async_heater_turn_off()
elif self._hvac_mode == HVAC_MODE_HEAT:
await self._async_cooler_turn_off() Tbh. I never understood much, why this integration added this bit of logic as it can easily be implemented with template switches by the user. Do you have any insights on this @zacs ? Also @brizoo, can you explain to me what your setup looks like, that you use |
That option was added by another contributor, so I don't recall the exact reasoning. I believe it was because if you had a single switch for both heater and cooler (a reverse cycle style unit) and wanted to avoid a rapid/inconsistent on-off-on sort of sequence to the switch. Thanks for putting a fix together so quickly! |
Hey @zacs and @david-kalbermatten I have air air climate and heater units from Daikin. Now what I have done is implemented automations to create a "smart" thermostat for my home that works for heating in winter and cooling in summer. I use the dual mode thermostat from this page and I found it was the easier solution for my skills and needs. I don't know if I answer to your question, I'm not sure what is using templates for reverse_cycle, I just used what looked like the easiest way of doing what I needed. I might be wrong! Thanks |
Hi @david-kalbermatten , |
Fudge me... The old check only checked for This is the old check: if not self._active and None not in (self._cur_temp, self._target_temp):
self._active = True
_LOGGER.info(
"Obtained current and target temperature. "
"Generic Dual-mode thermostat active. %s, %s",
self._cur_temp,
self._target_temp,
) This is the new check if not self._active and self._cur_temp is not None:
if self._target_temp is not None or None not in (self._target_temp_high, self._target_temp_low):
self._active = True
_LOGGER.info(
"Obtained current and target temperature(s). "
"Generic Dual-mode thermostat active. Current: %s, Target: %s, Low: %s, High: %s",
self._cur_temp,
self._target_temp,
self._target_temp_low,
self._target_temp_high
) Created #79 to address the issue |
Feel free to reopen if the issue is still not solved after updating (yet again :D) |
After updating in HACS to the last version today, my thermostats no longer turn the heating on or off based on temperature. I understand the latest update changed some things, but the readme has not been updated yet. Am I supposed to change something in my configuration yaml?
I am using dual mode heating/ccooling thermostats.
Here is my climate_heater conf.yaml conf file:
########################################
DUAL MODE GENERIC THERMOSTAT
########################################
Heating Thermostat climate.salon
name: Thermostat Salon
unique_id: climate.salon
heater: switch.chauffage_salon
cooler: switch.clim_salon
fan: switch.fan_salon
fan_behavior: cooler
dryer: switch.dryer_salon
dryer_behavior: cooler
target_sensor: sensor.temperature_moyenne_salon
min_temp: 14
max_temp: 30
cold_tolerance: 0.1
hot_tolerance: 0.1
away_temp_heater: 17 #has to be set from here
away_temp_cooler: 30 #has to be set from here
precision: 0.1
reverse_cycle: cooler, heater
enable_heat_cool: True
min_cycle_duration:
minutes: 0
seconds: 30
Heating Thermostat climate.chambres
name: Thermostat Chambres
unique_id: climate.chambres
heater: switch.chauffage_chambres
cooler: switch.clim_chambres
fan: switch.fan_chambres
fan_behavior: cooler
dryer: switch.dryer_chambres
dryer_behavior: cooler
target_sensor: sensor.thermometre_couloir_temperature
min_temp: 14
max_temp: 30
cold_tolerance: 0.1
hot_tolerance: 0.1
away_temp_heater: 17 #has to be set from here
away_temp_cooler: 30 #has to be set from here
precision: 0.1
reverse_cycle: cooler, heater
enable_heat_cool: True
min_cycle_duration:
minutes: 0
seconds: 30
I have reverted to the previous version of climate.py and it's working again !
The text was updated successfully, but these errors were encountered: