-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
421 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
from setuptools import find_packages, setup | ||
|
||
VERSION = "0.0.20" | ||
VERSION = "0.0.21" | ||
|
||
|
||
def readme(): | ||
"""Print long description.""" | ||
with open('README.md') as f: | ||
with open("README.md") as f: | ||
return f.read() | ||
|
||
|
||
|
@@ -16,18 +16,14 @@ def readme(): | |
version=VERSION, | ||
description="Library implementing Zigpy quirks for ZHA in Home Assistant", | ||
long_description=readme(), | ||
long_description_content_type='text/markdown', | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/dmulcahey/zha-device-handlers", | ||
author="David F. Mulcahey", | ||
author_email="[email protected]", | ||
license="Apache License Version 2.0", | ||
keywords='zha quirks homeassistant hass', | ||
packages=find_packages(exclude=['*.tests']), | ||
python_requires='>=3', | ||
install_requires=[ | ||
'zigpy-homeassistant>=0.6.1' | ||
], | ||
tests_require=[ | ||
'pytest', | ||
] | ||
keywords="zha quirks homeassistant hass", | ||
packages=find_packages(exclude=["*.tests"]), | ||
python_requires=">=3", | ||
install_requires=["zigpy-homeassistant>=0.6.1"], | ||
tests_require=["pytest"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
"""Device handler for centralite 3157100.""" | ||
from zigpy.profiles import zha | ||
from zigpy.quirks import CustomDevice | ||
from zigpy.zcl.clusters.general import ( | ||
Basic, Identify, Ota, Time, PollControl) | ||
from zigpy.zcl.clusters.hvac import ( | ||
Fan, Thermostat, UserInterface) | ||
|
||
from zhaquirks.centralite import PowerConfigurationCluster | ||
|
||
DIAGNOSTICS_CLUSTER_ID = 0x0B05 # decimal = 2821 | ||
|
||
|
||
class CentraLite3157100(CustomDevice): | ||
"""Custom device representing centralite 3157100.""" | ||
|
||
signature = { | ||
# <SimpleDescriptor endpoint=1 profile=260 device_type=769 | ||
# device_version=0 | ||
# input_clusters=[0, 1, 3, 513, 514, 516, 32, 2821] | ||
# output_clusters=[10, 25]> | ||
|
||
'models_info': [ | ||
('Centralite', '3157100') | ||
], | ||
'endpoints': { | ||
1: { | ||
'profile_id': zha.PROFILE_ID, | ||
'device_type': zha.DeviceType.THERMOSTAT, | ||
'input_clusters': [ | ||
Basic.cluster_id, | ||
PowerConfigurationCluster.cluster_id, | ||
Identify.cluster_id, | ||
Thermostat.cluster_id, | ||
Fan.cluster_id, | ||
UserInterface.cluster_id, | ||
PollControl.cluster_id, | ||
DIAGNOSTICS_CLUSTER_ID | ||
], | ||
'output_clusters': [ | ||
Time.cluster_id, | ||
Ota.cluster_id | ||
], | ||
}, | ||
} | ||
} | ||
|
||
replacement = { | ||
'endpoints': { | ||
1: { | ||
'profile_id': zha.PROFILE_ID, | ||
'device_type': zha.DeviceType.THERMOSTAT, | ||
'input_clusters': [ | ||
Basic.cluster_id, | ||
PowerConfigurationCluster, | ||
Identify.cluster_id, | ||
Thermostat.cluster_id, | ||
Fan.cluster_id, | ||
UserInterface.cluster_id, | ||
PollControl.cluster_id, | ||
DIAGNOSTICS_CLUSTER_ID | ||
], | ||
'output_clusters': [ | ||
Time.cluster_id, | ||
Ota.cluster_id | ||
], | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
"""Device handler for centralite 3460L.""" | ||
# pylint disable=C0103 | ||
from zigpy.profiles import zha | ||
from zigpy.quirks import CustomDevice | ||
from zigpy.zcl.clusters.general import ( | ||
Basic, Identify, OnOff, OnOffConfiguration, Ota, PollControl) | ||
from zigpy.zcl.clusters.measurement import TemperatureMeasurement | ||
|
||
from zhaquirks.centralite import PowerConfigurationCluster | ||
|
||
DIAGNOSTICS_CLUSTER_ID = 0x0B05 # decimal = 2821 | ||
|
||
|
||
class CentraLite3460L(CustomDevice): | ||
"""Custom device representing centralite 3460L.""" | ||
|
||
signature = { | ||
# <SimpleDescriptor endpoint=1 profile=260 device_type=6 | ||
# device_version=0 | ||
# input_clusters=[0, 1, 3, 7, 32, 1026, 2821] | ||
# output_clusters=[3, 6, 25]> | ||
'models_info': [ | ||
('CentraLite', '3460-L') | ||
], | ||
'endpoints': { | ||
1: { | ||
'profile_id': zha.PROFILE_ID, | ||
'device_type': zha.DeviceType.REMOTE_CONTROL, | ||
'input_clusters': [ | ||
Basic.cluster_id, | ||
PowerConfigurationCluster.cluster_id, | ||
Identify.cluster_id, | ||
OnOffConfiguration.cluster_id, | ||
PollControl.cluster_id, | ||
TemperatureMeasurement.cluster_id, | ||
DIAGNOSTICS_CLUSTER_ID | ||
], | ||
'output_clusters': [ | ||
Identify.cluster_id, | ||
OnOff.cluster_id, | ||
Ota.cluster_id | ||
], | ||
}, | ||
} | ||
} | ||
|
||
replacement = { | ||
'endpoints': { | ||
1: { | ||
'input_clusters': [ | ||
Basic.cluster_id, | ||
PowerConfigurationCluster, | ||
Identify.cluster_id, | ||
OnOffConfiguration.cluster_id, | ||
PollControl.cluster_id, | ||
TemperatureMeasurement.cluster_id, | ||
DIAGNOSTICS_CLUSTER_ID | ||
], | ||
'output_clusters': [ | ||
Identify.cluster_id, | ||
OnOff.cluster_id, | ||
Ota.cluster_id | ||
], | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Module for WAXMAN devices as remote sensors.""" |
Oops, something went wrong.