Skip to content

Commit 728ee42

Browse files
authored
Fix battery reporting half on some Nimly locks (#3465)
Adds `DoublingPowerConfigurationCluster` for some Nimly locks
1 parent bc2aa90 commit 728ee42

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

zhaquirks/nimly/lock.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from zigpy.quirks.v2 import QuirkBuilder
44
from zigpy.zdo.types import NodeDescriptor
55

6+
from zhaquirks import DoublingPowerConfigurationCluster
67
from zhaquirks.nimly import NIMLY
78

89
# clears the mains powered mac capability flag
@@ -24,13 +25,19 @@
2425
)
2526

2627

28+
(
29+
QuirkBuilder(NIMLY, "EasyFingerTouch")
30+
.also_applies_to(NIMLY, "EasyCodeTouch")
31+
.node_descriptor(NIMLY_LOCK_NODE_DESCRIPTOR)
32+
.add_to_registry()
33+
)
34+
2735
(
2836
QuirkBuilder(NIMLY, "NimlyPRO")
2937
.also_applies_to(NIMLY, "NimlyCode")
3038
.also_applies_to(NIMLY, "NimlyTouch")
3139
.also_applies_to(NIMLY, "NimlyIn")
32-
.also_applies_to(NIMLY, "EasyFingerTouch")
33-
.also_applies_to(NIMLY, "EasyCodeTouch")
3440
.node_descriptor(NIMLY_LOCK_NODE_DESCRIPTOR)
41+
.replaces(DoublingPowerConfigurationCluster, endpoint_id=11)
3542
.add_to_registry()
3643
)

0 commit comments

Comments
 (0)