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.
This commit is contained in:
Sean Dague authored and Paulus Schoutsen committed 2016-07-31 19:13:36 -07:00
1 parent 1856e0110b
commit 483b0045fc
2 files changed
+4 -4

No files matched your search

@@ -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
+1 -1
View File
@@ -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