-
Notifications
You must be signed in to change notification settings - Fork 711
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 Tuya remote TS0042 and TS0043 variants #3368
Add Tuya remote TS0042 and TS0043 variants #3368
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3368 +/- ##
==========================================
+ Coverage 88.49% 88.51% +0.01%
==========================================
Files 305 305
Lines 9621 9636 +15
==========================================
+ Hits 8514 8529 +15
Misses 1107 1107 ☔ View full report in Codecov by Sentry. |
device_automation_triggers = { | ||
(SHORT_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: SHORT_PRESS}, | ||
(LONG_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: LONG_PRESS}, | ||
(DOUBLE_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: DOUBLE_PRESS}, | ||
(SHORT_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: SHORT_PRESS}, | ||
(LONG_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: LONG_PRESS}, | ||
(DOUBLE_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: DOUBLE_PRESS}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are the same as other triggers, we could just do
device_automation_triggers = TuyaSmartRemote0042TOPlusA.device_automation_triggers
This is also fine though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Proposed change
Fixes #3367
As desribed in #668 and #663 custom quirks is required to support the following models:
A Tuya zigbee remote 2-button one TS0042 & a 3-button one TS0043. I could connected them to ZHA but they could not match the Tuya quirks.
Additional information
Checklist
pre-commit
checks pass / the code has been formatted using Black