Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
lowercase variants of some IP-devices (Issue #110)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielperna84 committed Jan 26, 2018
1 parent 2dce27e commit f27a8d3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 4 additions & 2 deletions pyhomematic/devicetypes/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pyhomematic/devicetypes/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pyhomematic/devicetypes/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions pyhomematic/devicetypes/thermostats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f27a8d3

Please sign in to comment.