Closed clboles closed 3 years ago
In climate.py, perhaps this is where the swap is happening. Notice if mode is cool, it's returning the heating setpoint (and vice versa).
@property
def target_temperature_high(self) -> Optional[float]:
"""Return the highbound target temperature we try to reach."""
if self.hvac_mode == HVAC_MODE_HEAT_COOL or self.hvac_mode == HVAC_MODE_AUTO:
return self.get_float_attr(ATTR_HEATING_SETPOINT)
return None
@property
def target_temperature_low(self) -> Optional[float]:
"""Return the lowbound target temperature we try to reach."""
if self.hvac_mode == HVAC_MODE_HEAT_COOL or self.hvac_mode == HVAC_MODE_AUTO:
return self.get_float_attr(ATTR_COOLING_SETPOINT)
return None
When I correct these lines in my custom_components dir, the target temperatures are displayed correctly in HA.
Resolved by #74
I've just moved from Nest to Honeywell T6 Pro Z-wave thermostats. The states are reported properly in Hubitat, but when I try to use the Thermostat card in Home Assistant, the cool and heat setpoints are reversed, causing the card to not work very well.
Here is the state info from Hubitat:
And here are the state attributes from Home Assistant:
Notice target_temp_high is the heat value, and target_temp_low is the cool value.
Is there any additional info I can provide to help debug this?
Thanks!