Skip to content
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

Add Moes (Tuya) TRV602Z and TRV801Z #3769

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

prairiesnpr
Copy link
Collaborator

Proposed change

Adds Moes _TZE204_qyr2m29i and _TZE204_ltwbm23f

Based on: https://github.com/Koenkk/zigbee-herdsman-converters/blob/79e4c8560f96e6ba52a94370137d420e2a9641b8/src/devices/tuya.ts#L5169

Additional information

DP 2 is used for system mode and preset mode. Currently this quirk ignores preset mode and maps those values to a system mode value. #3643 may address, but I haven't had time to see how that would work when setting attributes.

Closes: #3603
Closes: #3620
Closes: #3639
Closes: #3609
Closes: #3578

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

@prairiesnpr prairiesnpr force-pushed the add-trv-_TZE204_qyr2m29i branch from a3b7768 to f6e039d Compare January 25, 2025 14:52
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.42%. Comparing base (d9481d3) to head (f6e039d).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3769      +/-   ##
==========================================
+ Coverage   90.40%   90.42%   +0.02%     
==========================================
  Files         320      320              
  Lines       10490    10518      +28     
==========================================
+ Hits         9483     9511      +28     
  Misses       1007     1007              

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

@TheJulianJES TheJulianJES added the Tuya Request/PR regarding a Tuya device label Jan 25, 2025
@abmantis
Copy link
Contributor

You can check https://github.com/zigpy/zha-device-handlers/pull/3644/files#diff-d01eb6338c5bfa4635fb433e6a8fc5b9cf3de58e784218f8930c5ccaedd927f5R155 on how to map a DP to multiple attrs (requires #3643 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tuya Request/PR regarding a Tuya device
Projects
None yet
3 participants