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

Commit

Permalink
Merge pull request #172 from danielperna84/devel
Browse files Browse the repository at this point in the history
0.1.50
  • Loading branch information
danielperna84 authored Oct 1, 2018
2 parents f1e005a + cac48f0 commit 241ff4e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 0.1.50 (2018-10-01)
- Added Support for HmIP-FROLL @jplck
- Added missing channel for HM-LC-Dim2T @danielperna84
- Added ping-method for HMConnection object @danielperna84

Version 0.1.49 (2018-09-16)
- Rework RSSI handling (Issue #164, Issue #121) @klada
- Prevent failure of everything when single host is down (Issue #162)
Expand Down
7 changes: 7 additions & 0 deletions pyhomematic/_hm.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,13 @@ def listBidcosInterfaces(self, remote):
LOG.debug(
"ServerThread.listBidcosInterfaces: Exception: %s" % str(err))

def ping(self, remote):
"""Send ping to CCU/Homegear to generate PONG event"""
try:
self.proxies["%s-%s" % (self._interface_id, remote)].ping("%s-%s" % (self._interface_id, remote))
except Exception as err:
LOG.warning("ServerThread.ping: Exception: %s" % str(err))

def homegearCheckInit(self, remote):
"""Check if proxy is still initialized"""
rdict = self.remotes.get(remote)
Expand Down
5 changes: 5 additions & 0 deletions pyhomematic/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ def listBidcosInterfaces(self, remote):
if self._server is not None:
return self._server.listBidcosInterfaces(remote)

def ping(self, remote):
"""Send ping to CCU/Homegear to generate PONG-event"""
if self._server is not None:
self._server.ping(remote)

def homegearCheckInit(self, remote):
"""Check if proxy is still initialized"""
if self._server is not None:
Expand Down
3 changes: 2 additions & 1 deletion pyhomematic/devicetypes/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Dimmer(GenericDimmer, HelperWorking):
"""
@property
def ELEMENT(self):
if "Dim2L" in self._TYPE:
if "Dim2L" in self._TYPE or "Dim2T" in self._TYPE:
return [1, 2]
return [1]

Expand Down Expand Up @@ -426,6 +426,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
"HM-LC-BlX": Blind,
"HM-Sec-Win": Blind,
"HmIP-BROLL": IPKeyBlind,
"HmIP-FROLL": IPKeyBlind,
"HmIP-BBL": IPKeyBlindTilt,
"HM-LC-Dim1L-Pl": Dimmer,
"HM-LC-Dim1L-Pl-2": Dimmer,
Expand Down
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.49'
VERSION = '0.1.50'

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

Expand Down

0 comments on commit 241ff4e

Please sign in to comment.