From f5bf513b318298755d5d98284df15aa212253c1c Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Wed, 22 Mar 2017 23:00:31 +0100 Subject: [PATCH 1/4] Added missing operational modes for thermostats --- homeassistant/components/climate/homematic.py | 4 ++++ homeassistant/components/homematic.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/climate/homematic.py b/homeassistant/components/climate/homematic.py index 66b50cd507d9f8..7385eeac98aea3 100644 --- a/homeassistant/components/climate/homematic.py +++ b/homeassistant/components/climate/homematic.py @@ -16,11 +16,15 @@ STATE_MANUAL = "manual" STATE_BOOST = "boost" +STATE_COMFORT = "comfort" +STATE_LOWERING = "lowering" HM_STATE_MAP = { "AUTO_MODE": STATE_AUTO, "MANU_MODE": STATE_MANUAL, "BOOST_MODE": STATE_BOOST, + "COMFORT_MODE": STATE_COMFORT, + "LOWERING_MODE": STATE_LOWERING } HM_TEMP_MAP = [ diff --git a/homeassistant/components/homematic.py b/homeassistant/components/homematic.py index e9bcfa80f6c67e..94c194ed811a7e 100644 --- a/homeassistant/components/homematic.py +++ b/homeassistant/components/homematic.py @@ -22,7 +22,7 @@ from homeassistant.config import load_yaml_config_file DOMAIN = 'homematic' -REQUIREMENTS = ["pyhomematic==0.1.22"] +REQUIREMENTS = ["pyhomematic==0.1.23"] SCAN_INTERVAL_HUB = timedelta(seconds=300) SCAN_INTERVAL_VARIABLES = timedelta(seconds=30) From 663c7845dfb7c5766543eb890d5d4bfd8217be3f Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Wed, 22 Mar 2017 23:16:16 +0100 Subject: [PATCH 2/4] Added attributes --- homeassistant/components/homematic.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/homematic.py b/homeassistant/components/homematic.py index 94c194ed811a7e..aeb25ad3696164 100644 --- a/homeassistant/components/homematic.py +++ b/homeassistant/components/homematic.py @@ -82,7 +82,12 @@ 'RSSI_DEVICE': ['rssi', {}], 'VALVE_STATE': ['valve', {}], 'BATTERY_STATE': ['battery', {}], - 'CONTROL_MODE': ['mode', {0: 'Auto', 1: 'Manual', 2: 'Away', 3: 'Boost'}], + 'CONTROL_MODE': ['mode', {0: 'Auto', + 1: 'Manual', + 2: 'Away', + 3: 'Boost', + 4: 'Comfort', + 5: 'Lowering'}], 'POWER': ['power', {}], 'CURRENT': ['current', {}], 'VOLTAGE': ['voltage', {}], From cff992322d8ccf3a821dc3c8c89cb944c0686392 Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Wed, 22 Mar 2017 23:17:30 +0100 Subject: [PATCH 3/4] Updated requirements --- requirements_all.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_all.txt b/requirements_all.txt index 60352b4febbf61..e8c16438a79f1d 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -511,7 +511,7 @@ pyharmony==1.0.12 pyhik==0.1.0 # homeassistant.components.homematic -pyhomematic==0.1.22 +pyhomematic==0.1.23 # homeassistant.components.sensor.hydroquebec pyhydroquebec==1.0.0 From e6ac4b673b4e27eb7eb512b9e488187738ba3429 Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Sat, 25 Mar 2017 02:52:33 +0100 Subject: [PATCH 4/4] Bumped dependency --- homeassistant/components/homematic.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homematic.py b/homeassistant/components/homematic.py index aeb25ad3696164..e40cab05b29693 100644 --- a/homeassistant/components/homematic.py +++ b/homeassistant/components/homematic.py @@ -22,7 +22,7 @@ from homeassistant.config import load_yaml_config_file DOMAIN = 'homematic' -REQUIREMENTS = ["pyhomematic==0.1.23"] +REQUIREMENTS = ["pyhomematic==0.1.24"] SCAN_INTERVAL_HUB = timedelta(seconds=300) SCAN_INTERVAL_VARIABLES = timedelta(seconds=30) diff --git a/requirements_all.txt b/requirements_all.txt index e8c16438a79f1d..086a612b7b5366 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -511,7 +511,7 @@ pyharmony==1.0.12 pyhik==0.1.0 # homeassistant.components.homematic -pyhomematic==0.1.23 +pyhomematic==0.1.24 # homeassistant.components.sensor.hydroquebec pyhydroquebec==1.0.0