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

Commit

Permalink
0.1.78 (#473)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Norbert Rümelin <[email protected]>
  • Loading branch information
3 people authored Feb 4, 2024
1 parent 74121b2 commit 8aaf60d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Version 0.1.78 (2024-02-04)
- Add support for HmIP-SWDM-2 @ranasenR
- Add support for HmIP-BROLL-2 @waldling
- Add support for HmIPW-WRC2 @derco0n
- Add support for Nurtic-Vibe @Nurtic-Vibe
- Add support for HmIP-PSM-2 @l-mb
- Add warning for missing device support

Version 0.1.77 (2022-01-10)
- Add HmIP-WRCR @danielperna84
- Add HmIP-SMI55-2 @hzpz
Expand Down
4 changes: 2 additions & 2 deletions pyhomematic/_hm.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ def createDeviceObjects(self, interface_id):
if dev['TYPE'] in devicetypes.SUPPORTED:
deviceObject = devicetypes.SUPPORTED[dev['TYPE']](
dev, self._proxies[interface_id], self.resolveparamsets)
LOG.debug("RPCFunctions.createDeviceObjects: created %s as SUPPORTED device for %s" % (
LOG.debug("RPCFunctions.createDeviceObjects: created %s as SUPPORTED device for %s" % (
dev['ADDRESS'], dev['TYPE']))
else:
deviceObject = devicetypes.UNSUPPORTED(
dev, self._proxies[interface_id], self.resolveparamsets)
LOG.debug("RPCFunctions.createDeviceObjects: created %s as UNSUPPORTED device for %s" % (
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." % (
dev['ADDRESS'], dev['TYPE']))
LOG.debug(
"RPCFunctions.createDeviceObjects: adding to self.devices_all")
Expand Down
4 changes: 3 additions & 1 deletion pyhomematic/devicetypes/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
sensorIndex = None
if "HmIP-FSM" in self.TYPE or "HmIP-FSM16" in self.TYPE:
sensorIndex = 5
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:
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:
sensorIndex = 6
elif "HmIP-BSM" in self.TYPE:
sensorIndex = 7
Expand Down Expand Up @@ -1092,6 +1092,7 @@ def ELEMENT(self):
"HM-LC-BlX": Blind,
"HM-Sec-Win": Blind,
"HmIP-BROLL": IPKeyBlind,
"HmIP-BROLL-2": IPKeyBlind,
"HmIP-FROLL": IPKeyBlind,
"HmIP-BBL": IPKeyBlindTilt,
"HmIP-FBL": IPKeyBlindTilt,
Expand Down Expand Up @@ -1218,6 +1219,7 @@ def ELEMENT(self):
"HmIP-USBSM": IPSwitchPowermeter,
"HMIP-PSM": IPSwitchPowermeter,
"HmIP-PSM": IPSwitchPowermeter,
"HmIP-PSM-2": IPSwitchPowermeter,
"HmIP-PSM-CH": IPSwitchPowermeter,
"HmIP-PSM-IT": IPSwitchPowermeter,
"HmIP-PSM-PE": IPSwitchPowermeter,
Expand Down
3 changes: 3 additions & 0 deletions pyhomematic/devicetypes/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class RemoteWired(HMEvent, HelperEventRemote, HelperActionPress):
def ELEMENT(self):
if "WRC6" in self.TYPE:
return [1, 2, 3, 4, 5, 6]
if "WRC2" in self.TYPE:
return [1, 2]


class RemoteBatteryIP(Remote, HelperLowBatIP, HelperOperatingVoltageIP):
Expand Down Expand Up @@ -153,6 +155,7 @@ def ELEMENT(self):
"HmIP-BRC2": Remote,
"HmIP-WRC6": RemoteBatteryIP,
"HmIPW-WRC6": RemoteWired,
"HmIPW-WRC2": RemoteWired,
"HmIP-WRCD": RemoteBatteryIP,
"HmIP-WRCR": RemoteBatteryIP,
"HmIP-KRCA": RemoteBatteryIP,
Expand Down
1 change: 1 addition & 0 deletions pyhomematic/devicetypes/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
"HmIP-SWDO-PL": IPShutterContactSabotage,
"HmIP-SWDO-I": IPShutterContactSabotage,
"HmIP-SWDM": IPShutterContact,
"HmIP-SWDM-2": IPShutterContact,
"HmIP-SWDM-B2": IPShutterContact,
"HmIP-SRH": RotaryHandleSensorIP,
"HM-Sec-RHS": RotaryHandleSensor,
Expand Down
3 changes: 2 additions & 1 deletion pyhomematic/devicetypes/thermostats.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def turnoff(self):

class IPWThermostatWall(HMThermostat, IPAreaThermostatNoBattery, HelperWired):
"""
HmIPW-STH + HmIPW-WTH
HmIPW-STH, HmIPW-STHD, HmIPW-WTH
ClimateControl-Wall Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
Expand Down Expand Up @@ -485,5 +485,6 @@ def turnoff(self):
"HmIP-BWTH24": IPThermostatWall230V,
"HmIP-HEATING": IPThermostat,
"HmIPW-STH": IPWThermostatWall,
"HmIPW-STHD": IPWThermostatWall,
"HmIPW-WTH": IPWThermostatWall,
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def readme():

PACKAGE_NAME = 'pyhomematic'
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION = '0.1.77'
VERSION = '0.1.78'

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

Expand Down

0 comments on commit 8aaf60d

Please sign in to comment.