Skip to content

Conversation

delneet
Copy link

@delneet delneet commented Oct 1, 2025

Proposed change

Add model info keys for 1 and 2 gang (somgoms) tuya switches.

Additional information

I've previously tried to add the quirks myself, but that was a long time ago.
The details for the devices can still be found here.

Tested locally by adding the classes with added models as a custom quirk.

Device diagnostics

zha-01K5HSH1TTN2PSEN2QWK0RNZ8F-_TZE200_7tdtqgwv TS0601-6f728dec125a6b2ceb1843843764a18c.json
zha-01K5HSH1TTN2PSEN2QWK0RNZ8F-_TZE200_nkjintbl TS0601-663b23194d21583c587d70a1dcccd8d5.json

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
  • Device diagnostics data has been attached

Add _TZE200_7tdtqgwv to TuyaSingleSwitchTO
Add _TZE200_nkjintbl to TuyaDoubleSwitchTO
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (500e74e) to head (a527250).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #4363   +/-   ##
=======================================
  Coverage   92.12%   92.12%           
=======================================
  Files         358      358           
  Lines       11917    11917           
=======================================
  Hits        10979    10979           
  Misses        938      938           

☔ 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.

@delneet delneet marked this pull request as ready for review October 1, 2025 20:48
@TheJulianJES TheJulianJES added Tuya Request/PR regarding a Tuya device smash This PR is close to be merged soon labels Oct 2, 2025
Copy link
Collaborator

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Z2M has some of them as different models, but this should be fine as well. Thanks for the PR!

@TheJulianJES TheJulianJES changed the title Add Tuya ts0601 models for 1 and 2 gang switches Add Tuya TS0601 1 and 2 gang switch variants Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smash This PR is close to be merged soon Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants