From f27a8d3facf7f83478d4676c8264771d0a4713a2 Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Fri, 26 Jan 2018 20:37:01 +0100 Subject: [PATCH] lowercase variants of some IP-devices (Issue #110) --- changelog.txt | 1 + pyhomematic/devicetypes/actors.py | 6 ++++-- pyhomematic/devicetypes/misc.py | 1 + pyhomematic/devicetypes/sensors.py | 1 + pyhomematic/devicetypes/thermostats.py | 2 ++ 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 82c5ef70f..11fece5ab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ Version 0.1.38 (2018-01-) - KeyMatic improvements @PH89 - Fix skipping remotes @danielperna84 + - Added lowercase variants for some IP-devices (Issue #110) @danielperna84 Version 0.1.37 (2018-01-11) - Allow skipping remotes @pvizeli diff --git a/pyhomematic/devicetypes/actors.py b/pyhomematic/devicetypes/actors.py index db8fa1972..d8d14b853 100644 --- a/pyhomematic/devicetypes/actors.py +++ b/pyhomematic/devicetypes/actors.py @@ -387,7 +387,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False): sensorIndex = None if "HmIP-FSM" in self.TYPE: sensorIndex = 5 - elif "HMIP-PSM" in self.TYPE or "HmIP-PSM-CH" in self.TYPE: + elif "HMIP-PSM" in self.TYPE or "HmIP-PSM" in self.TYPE or "HmIP-PSM-CH" in self.TYPE: sensorIndex = 6 elif "HmIP-BSM" in self.TYPE: sensorIndex = 7 @@ -511,12 +511,14 @@ def __init__(self, device_description, proxy, resolveparamsets=False): "HMW-LC-Bl1-DR-2": KeyBlind, "HMW-LC-Dim1L-DR": KeyDimmer, "HMIP-PS": IPSwitch, + "HmIP-PS": IPSwitch, "HMIP-PSM": IPSwitchPowermeter, + "HmIP-PSM": IPSwitchPowermeter, "HmIP-PSM-CH": IPSwitchPowermeter, "HmIP-FSM": IPSwitchPowermeter, "HmIP-BSM": IPSwitchPowermeter, "HMIP-BDT": IPKeyDimmer, - "HmIP-BDT": IPKeyDimmer, # Version above did not work, keeping it though, just in case + "HmIP-BDT": IPKeyDimmer, "HM-Sec-Key": KeyMatic, "HM-Sec-Key-S": KeyMatic, "HM-Sec-Key-O": KeyMatic, diff --git a/pyhomematic/devicetypes/misc.py b/pyhomematic/devicetypes/misc.py index bafcf1d86..c70b4f21b 100644 --- a/pyhomematic/devicetypes/misc.py +++ b/pyhomematic/devicetypes/misc.py @@ -120,6 +120,7 @@ def ELEMENT(self): "HMW-IO-4-FM": Remote, "HMW-IO-12-FM": Remote, "HMIP-WRC2": Remote, + "HmIP-WRC2": Remote, "HmIP-WRC6": Remote, "HM-SwI-3-FM": RemotePress, "ZEL STG RM FSS UP3": RemotePress, diff --git a/pyhomematic/devicetypes/sensors.py b/pyhomematic/devicetypes/sensors.py index 0ede0df9f..49dca44f5 100644 --- a/pyhomematic/devicetypes/sensors.py +++ b/pyhomematic/devicetypes/sensors.py @@ -478,6 +478,7 @@ def get_air_pressure(self, channel=None): "BC-SC-Rd-WM": MaxShutterContact, "HM-SCI-3-FM": IPShutterContact, "HMIP-SWDO": IPShutterContact, + "HmIP-SWDO": IPShutterContact, "HM-Sec-RHS": RotaryHandleSensor, "ZEL STG RM FDK": RotaryHandleSensor, "HM-Sec-RHS-2": RotaryHandleSensor, diff --git a/pyhomematic/devicetypes/thermostats.py b/pyhomematic/devicetypes/thermostats.py index c2d49f8a6..b3bf060bb 100644 --- a/pyhomematic/devicetypes/thermostats.py +++ b/pyhomematic/devicetypes/thermostats.py @@ -317,9 +317,11 @@ def turnoff(self): "BC-TC-C-WM-2": MAXWallThermostat, "BC-TC-C-WM-4": MAXWallThermostat, "HMIP-eTRV": IPThermostat, + "HmIP-eTRV": IPThermostat, "HmIP-eTRV-2": IPThermostat, "HmIP-STHD": IPThermostatWall, "HmIP-WTH-2": IPThermostatWall, "HMIP-WTH": IPThermostatWall, + "HmIP-WTH": IPThermostatWall, "HmIP-BWTH": IPThermostatWall }