-
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
13 changed files
with
267 additions
and
71 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 |
---|---|---|
|
@@ -13,5 +13,5 @@ pytest-sugar | |
pytest-timeout | ||
pytest-asyncio | ||
pytest>=7.1.3 | ||
zigpy>=0.69 | ||
zigpy>=0.70 | ||
ruff==0.0.261 |
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
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,3 @@ | ||
"""Nimly module.""" | ||
|
||
NIMLY = "Onesti Products AS" |
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,43 @@ | ||
"""Device handler for Nimly Smart Locks.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
from zigpy.zdo.types import NodeDescriptor | ||
|
||
from zhaquirks import DoublingPowerConfigurationCluster | ||
from zhaquirks.nimly import NIMLY | ||
|
||
# clears the mains powered mac capability flag | ||
NIMLY_LOCK_NODE_DESCRIPTOR = NodeDescriptor( | ||
logical_type=2, | ||
complex_descriptor_available=0, | ||
user_descriptor_available=0, | ||
reserved=0, | ||
aps_flags=0, | ||
frequency_band=8, | ||
manufacturer_code=4660, | ||
maximum_buffer_size=108, | ||
maximum_incoming_transfer_size=127, | ||
server_mask=11264, | ||
maximum_outgoing_transfer_size=127, | ||
descriptor_capability_field=0, | ||
mac_capability_flags=NodeDescriptor.MACCapabilityFlags.AllocateAddress | ||
| NodeDescriptor.MACCapabilityFlags.RxOnWhenIdle, | ||
) | ||
|
||
|
||
( | ||
QuirkBuilder(NIMLY, "EasyFingerTouch") | ||
.also_applies_to(NIMLY, "EasyCodeTouch") | ||
.node_descriptor(NIMLY_LOCK_NODE_DESCRIPTOR) | ||
.add_to_registry() | ||
) | ||
|
||
( | ||
QuirkBuilder(NIMLY, "NimlyPRO") | ||
.also_applies_to(NIMLY, "NimlyCode") | ||
.also_applies_to(NIMLY, "NimlyTouch") | ||
.also_applies_to(NIMLY, "NimlyIn") | ||
.node_descriptor(NIMLY_LOCK_NODE_DESCRIPTOR) | ||
.replaces(DoublingPowerConfigurationCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
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
Oops, something went wrong.