The target temp (shown in Thermostat card) is not correct when running in heat or cool modes. It is ok for auto mode.

This commit is contained in:
Chris Baumgartner 2015-12-11 09:47:28 -06:00
parent 9e41c495fc
commit 2368e5f4ec

View File

@ -87,7 +87,13 @@ class Thermostat(ThermostatDevice):
@property @property
def target_temperature(self): def target_temperature(self):
""" Returns the temperature we try to reach. """ """ Returns the temperature we try to reach. """
return (self.target_temperature_low + self.target_temperature_high) / 2 if self.hvac_mode == 'heat' or self.hvac_mode == 'auxHeatOnly':
return self.target_temperature_low
elif self.hvac_mode == 'cool':
return self.target_temperature_high
else:
return (self.target_temperature_low +
self.target_temperature_high) / 2
@property @property
def target_temperature_low(self): def target_temperature_low(self):