Skip to content

Add Sunricher SR-ZG9002KR12-Pro remote quirk #4003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

niracler
Copy link

@niracler niracler commented Apr 10, 2025

Proposed change

Add support for the Sunricher SR-ZG9002KR12-Pro remote. This device features 12 buttons and a knob with the following capabilities:

  • Button actions include short press, double press, hold, and release
  • Knob supports clockwise and counter-clockwise rotation with speed detection
  • Automatically generates device automation triggers for easy Home Assistant automation configuration

Additional information

This PR adds a new device handler to ZHA that enables full integration of the Sunricher SR-ZG9002KR12-Pro remote with Home Assistant. Users can leverage all the remote's functions to control smart home devices and create automations.

Implementation is based on the work done in zigbee-herdsman-converters repository (PR #8427).

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

Copy link

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.22%. Comparing base (e4844d4) to head (8d576fa).
Report is 4 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4003      +/-   ##
==========================================
+ Coverage   91.17%   91.22%   +0.04%     
==========================================
  Files         334      335       +1     
  Lines       10858    10919      +61     
==========================================
+ Hits         9900     9961      +61     
  Misses        958      958              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@niracler niracler force-pushed the feat/SRZG9002KR12Pro branch from 7826796 to 78f97ec Compare April 10, 2025 07:16
@niracler
Copy link
Author

niracler commented Apr 23, 2025

Hi, I noticed that my PR is still not merged. Is there anything I need to adjust or improve on my end? I’d appreciate any feedback. Thanks!

@TheJulianJES TheJulianJES changed the title feat: add ZHA quirk for Sunricher SR-ZG9002KR12-Pro remote Add Sunricher SR-ZG9002KR12-Pro remote quirk Apr 29, 2025
@TheJulianJES TheJulianJES added the needs review This PR should be reviewed soon, as it generally looks good. label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review This PR should be reviewed soon, as it generally looks good.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants