Homematic Fixes (#6769)

* Added missing operational modes for thermostats

* Added attributes

* Updated requirements

* Bumped dependency
This commit is contained in:
Daniel Perna 2017-03-25 09:48:05 +01:00 committed by Pascal Vizeli
parent f4e9466394
commit 447048701c
3 changed files with 12 additions and 3 deletions

View file

@ -16,11 +16,15 @@ _LOGGER = logging.getLogger(__name__)
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 = [

View file

@ -22,7 +22,7 @@ from homeassistant.helpers.event import track_time_interval
from homeassistant.config import load_yaml_config_file
DOMAIN = 'homematic'
REQUIREMENTS = ["pyhomematic==0.1.22"]
REQUIREMENTS = ["pyhomematic==0.1.24"]
SCAN_INTERVAL_HUB = timedelta(seconds=300)
SCAN_INTERVAL_VARIABLES = timedelta(seconds=30)
@ -82,7 +82,12 @@ HM_ATTRIBUTE_SUPPORT = {
'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', {}],

View file

@ -517,7 +517,7 @@ pyharmony==1.0.12
pyhik==0.1.0
# homeassistant.components.homematic
pyhomematic==0.1.22
pyhomematic==0.1.24
# homeassistant.components.sensor.hydroquebec
pyhydroquebec==1.0.0