From 2368e5f4ecdc53a55eb4cbb7aca221ae25c0f629 Mon Sep 17 00:00:00 2001 From: Chris Baumgartner Date: Fri, 11 Dec 2015 09:47:28 -0600 Subject: [PATCH] The target temp (shown in Thermostat card) is not correct when running in heat or cool modes. It is ok for auto mode. --- homeassistant/components/thermostat/ecobee.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/thermostat/ecobee.py b/homeassistant/components/thermostat/ecobee.py index a10d2940001..30221689274 100644 --- a/homeassistant/components/thermostat/ecobee.py +++ b/homeassistant/components/thermostat/ecobee.py @@ -87,7 +87,13 @@ class Thermostat(ThermostatDevice): @property def target_temperature(self): """ 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 def target_temperature_low(self):