Skip to content

New Devices (Matter Switch) Aqara H2 Switches #2030

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 4 commits into
base: main
Choose a base branch
from

Conversation

lelandblue
Copy link
Contributor

@lelandblue lelandblue commented Mar 28, 2025

Check all that apply

Type of Change

  • [ X ] WWST Certification Request
  • Bug fix
  • New feature
  • Refactor

Checklist

  • [ X ] I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing
  • I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior

Description of Change

Adding fingerprints for multiple Aqara Devices that all share the same profile.
They all are requesting the profile of light-power-energy-powerConsumption and have device names such as Aqara Light Switch H2 US (2 Buttons 2 Channel) . According to the DCL they all have a Matter Device Type of (0x100).

Please note: These devices will add children based on this handling in the init file

Summary of Completed Tests

SPROL will test

Adding fingerprints for all Aqara devices PID (0x1004, 0x1005, 0x1008, 0x1009)
Copy link

Copy link

github-actions bot commented Mar 28, 2025

File Coverage
All files 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/embedded-cluster-utils.lua 38%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/eve-energy/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/aqara-cube/init.lua 96%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against eaa6cf1

Copy link

github-actions bot commented Mar 28, 2025

Test Results

   65 files    419 suites   0s ⏱️
2 141 tests 2 141 ✅ 0 💤 0 ❌
3 660 runs  3 660 ✅ 0 💤 0 ❌

Results for commit eaa6cf1.

♻️ This comment has been updated with latest results.

@lelandblue lelandblue changed the title New Devices (Matter Switch) 4 Aqara H2 Switches New Devices (Matter Switch) Aqara H2 Switches Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant