From 483b0045fcfc49157abf3165609f4353f755558b Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sun, 31 Jul 2016 22:13:36 -0400 Subject: [PATCH] support cooling season in proliphix thermostat (#2689) Instead of always assuming we want to change the heat, instead use the setback attribute which sets heat / cool setback based on current HVAC mode. This means that the proliphix thermostat will do sensible things during cooling season. --- homeassistant/components/thermostat/proliphix.py | 6 +++--- requirements_all.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/thermostat/proliphix.py b/homeassistant/components/thermostat/proliphix.py index bf5c61d2be6..a330f8c2000 100644 --- a/homeassistant/components/thermostat/proliphix.py +++ b/homeassistant/components/thermostat/proliphix.py @@ -9,7 +9,7 @@ from homeassistant.components.thermostat import ( from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, TEMP_FAHRENHEIT) -REQUIREMENTS = ['proliphix==0.1.0'] +REQUIREMENTS = ['proliphix==0.2.0'] def setup_platform(hass, config, add_devices, discovery_info=None): @@ -72,7 +72,7 @@ class ProliphixThermostat(ThermostatDevice): @property def target_temperature(self): """Return the temperature we try to reach.""" - return self._pdp.setback_heat + return self._pdp.setback @property def operation(self): @@ -87,4 +87,4 @@ class ProliphixThermostat(ThermostatDevice): def set_temperature(self, temperature): """Set new target temperature.""" - self._pdp.setback_heat = temperature + self._pdp.setback = temperature diff --git a/requirements_all.txt b/requirements_all.txt index 998b42c3651..1ac7581cb63 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -232,7 +232,7 @@ phue==0.8 plexapi==1.1.0 # homeassistant.components.thermostat.proliphix -proliphix==0.1.0 +proliphix==0.2.0 # homeassistant.components.sensor.systemmonitor psutil==4.3.0