Add support for HOBEIAN ZG-101ZL button - #5274
Open
gvfarns wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #5274 +/- ##
=======================================
Coverage 92.60% 92.60%
=======================================
Files 424 425 +1
Lines 14667 14670 +3
=======================================
+ Hits 13582 13585 +3
Misses 1085 1085 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
Add a Quirks v2 definition for the HOBEIAN ZG-101ZL single-button
Zigbee remote.
The device sends the following On/Off cluster commands:
toggleonoffThe quirk maps these to short press, double press, and long press
device automation triggers respectively.
Additional information
Tested with a physical HOBEIAN ZG-101ZL using ZHA. With the quirk
applied, ZHA identifies the three actions as Remote Button Short Press,
Remote Button Double Press, and Remote Button Long Press.
Fixes #4413
Device diagnostics
zha-01KZP61FYF98BBDKSQ0CDCDN9D-HOBEIAN ZG-101ZL-a2a1f487d60d056f113bff9f86b5a10c.json
Checklist
pre-commitchecks pass / the code has been formatted using Black