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

Commit 8aaf60d

Browse files
danielperna84ranasenRwaldling
authored
0.1.78 (#473)
* Bump version * Align with master * Update sensors.py (#472) Add support for HmIP-SWDM-2 * Update actors.py (#471) Add support for HmIP-BROLL-2 * Add support for HmIPW-WRC2 * Add HmIPW-STHD * Add HmIP-PSM-2 * Add warning --------- Co-authored-by: ranasenR <75384680+ranasenR@users.noreply.github.com> Co-authored-by: Norbert Rümelin <46649453+waldling@users.noreply.github.com>
1 parent 74121b2 commit 8aaf60d

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Version 0.1.78 (2024-02-04)
2+
- Add support for HmIP-SWDM-2 @ranasenR
3+
- Add support for HmIP-BROLL-2 @waldling
4+
- Add support for HmIPW-WRC2 @derco0n
5+
- Add support for Nurtic-Vibe @Nurtic-Vibe
6+
- Add support for HmIP-PSM-2 @l-mb
7+
- Add warning for missing device support
8+
19
Version 0.1.77 (2022-01-10)
210
- Add HmIP-WRCR @danielperna84
311
- Add HmIP-SMI55-2 @hzpz

pyhomematic/_hm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ def createDeviceObjects(self, interface_id):
188188
if dev['TYPE'] in devicetypes.SUPPORTED:
189189
deviceObject = devicetypes.SUPPORTED[dev['TYPE']](
190190
dev, self._proxies[interface_id], self.resolveparamsets)
191-
LOG.debug("RPCFunctions.createDeviceObjects: created %s as SUPPORTED device for %s" % (
191+
LOG.debug("RPCFunctions.createDeviceObjects: created %s as SUPPORTED device for %s" % (
192192
dev['ADDRESS'], dev['TYPE']))
193193
else:
194194
deviceObject = devicetypes.UNSUPPORTED(
195195
dev, self._proxies[interface_id], self.resolveparamsets)
196-
LOG.debug("RPCFunctions.createDeviceObjects: created %s as UNSUPPORTED device for %s" % (
196+
LOG.warning("RPCFunctions.createDeviceObjects: Created %s as UNSUPPORTED device for %s. Please switch to https://github.com/danielperna84/custom_homematic to use this device in Home Assistant." % (
197197
dev['ADDRESS'], dev['TYPE']))
198198
LOG.debug(
199199
"RPCFunctions.createDeviceObjects: adding to self.devices_all")

pyhomematic/devicetypes/actors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
787787
sensorIndex = None
788788
if "HmIP-FSM" in self.TYPE or "HmIP-FSM16" in self.TYPE:
789789
sensorIndex = 5
790-
elif "HMIP-PSM" in self.TYPE or "HmIP-PSM" in self.TYPE or "HmIP-USBSM" in self.TYPE or "HmIP-PSM-CH" in self.TYPE:
790+
elif "HMIP-PSM" in self.TYPE or "HmIP-PSM" in self.TYPE or "HmIP-PSM-2" in self.TYPE or "HmIP-USBSM" in self.TYPE or "HmIP-PSM-CH" in self.TYPE:
791791
sensorIndex = 6
792792
elif "HmIP-BSM" in self.TYPE:
793793
sensorIndex = 7
@@ -1092,6 +1092,7 @@ def ELEMENT(self):
10921092
"HM-LC-BlX": Blind,
10931093
"HM-Sec-Win": Blind,
10941094
"HmIP-BROLL": IPKeyBlind,
1095+
"HmIP-BROLL-2": IPKeyBlind,
10951096
"HmIP-FROLL": IPKeyBlind,
10961097
"HmIP-BBL": IPKeyBlindTilt,
10971098
"HmIP-FBL": IPKeyBlindTilt,
@@ -1218,6 +1219,7 @@ def ELEMENT(self):
12181219
"HmIP-USBSM": IPSwitchPowermeter,
12191220
"HMIP-PSM": IPSwitchPowermeter,
12201221
"HmIP-PSM": IPSwitchPowermeter,
1222+
"HmIP-PSM-2": IPSwitchPowermeter,
12211223
"HmIP-PSM-CH": IPSwitchPowermeter,
12221224
"HmIP-PSM-IT": IPSwitchPowermeter,
12231225
"HmIP-PSM-PE": IPSwitchPowermeter,

pyhomematic/devicetypes/misc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class RemoteWired(HMEvent, HelperEventRemote, HelperActionPress):
6969
def ELEMENT(self):
7070
if "WRC6" in self.TYPE:
7171
return [1, 2, 3, 4, 5, 6]
72+
if "WRC2" in self.TYPE:
73+
return [1, 2]
7274

7375

7476
class RemoteBatteryIP(Remote, HelperLowBatIP, HelperOperatingVoltageIP):
@@ -153,6 +155,7 @@ def ELEMENT(self):
153155
"HmIP-BRC2": Remote,
154156
"HmIP-WRC6": RemoteBatteryIP,
155157
"HmIPW-WRC6": RemoteWired,
158+
"HmIPW-WRC2": RemoteWired,
156159
"HmIP-WRCD": RemoteBatteryIP,
157160
"HmIP-WRCR": RemoteBatteryIP,
158161
"HmIP-KRCA": RemoteBatteryIP,

pyhomematic/devicetypes/sensors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
12411241
"HmIP-SWDO-PL": IPShutterContactSabotage,
12421242
"HmIP-SWDO-I": IPShutterContactSabotage,
12431243
"HmIP-SWDM": IPShutterContact,
1244+
"HmIP-SWDM-2": IPShutterContact,
12441245
"HmIP-SWDM-B2": IPShutterContact,
12451246
"HmIP-SRH": RotaryHandleSensorIP,
12461247
"HM-Sec-RHS": RotaryHandleSensor,

pyhomematic/devicetypes/thermostats.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def turnoff(self):
398398

399399
class IPWThermostatWall(HMThermostat, IPAreaThermostatNoBattery, HelperWired):
400400
"""
401-
HmIPW-STH + HmIPW-WTH
401+
HmIPW-STH, HmIPW-STHD, HmIPW-WTH
402402
ClimateControl-Wall Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
403403
"""
404404
def __init__(self, device_description, proxy, resolveparamsets=False):
@@ -485,5 +485,6 @@ def turnoff(self):
485485
"HmIP-BWTH24": IPThermostatWall230V,
486486
"HmIP-HEATING": IPThermostat,
487487
"HmIPW-STH": IPWThermostatWall,
488+
"HmIPW-STHD": IPWThermostatWall,
488489
"HmIPW-WTH": IPWThermostatWall,
489490
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def readme():
77

88
PACKAGE_NAME = 'pyhomematic'
99
HERE = os.path.abspath(os.path.dirname(__file__))
10-
VERSION = '0.1.77'
10+
VERSION = '0.1.78'
1111

1212
PACKAGES = find_packages(exclude=['dist', 'build', 'tests'])
1313

0 commit comments

Comments
 (0)