Skip to content

Commit

Permalink
Fix battery reporting half on some Nimly locks (#3465)
Browse files Browse the repository at this point in the history
Adds `DoublingPowerConfigurationCluster` for some Nimly locks
  • Loading branch information
uvNikita authored Oct 29, 2024
1 parent bc2aa90 commit 728ee42
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions zhaquirks/nimly/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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
Expand All @@ -24,13 +25,19 @@
)


(
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")
.also_applies_to(NIMLY, "EasyFingerTouch")
.also_applies_to(NIMLY, "EasyCodeTouch")
.node_descriptor(NIMLY_LOCK_NODE_DESCRIPTOR)
.replaces(DoublingPowerConfigurationCluster, endpoint_id=11)
.add_to_registry()
)

0 comments on commit 728ee42

Please sign in to comment.