-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add TS0041 signature variant for Tesla Smart TSL-SEN-BUTTON (_TZ3000_ajsypttg) #5263
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,6 +118,50 @@ class TuyaSmartRemote0041TI(CustomDevice): | |
| } | ||
|
|
||
|
|
||
| class TuyaSmartRemote0041TIIAS(CustomDevice): | ||
| """Tuya 1-button remote device with time on in and IAS ancillary device type.""" | ||
|
|
||
| signature = { | ||
| # SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1025, device_version=1, input_clusters=[0, 1, 6, 10], output_clusters=[25])) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: the pasted descriptor lists the input clusters as |
||
| # Tesla Smart TSL-SEN-BUTTON (_TZ3000_ajsypttg) | ||
| MODEL: "TS0041", | ||
| ENDPOINTS: { | ||
| 1: { | ||
| PROFILE_ID: zha.PROFILE_ID, | ||
| DEVICE_TYPE: zha.DeviceType.IAS_ANCILLARY_CONTROL, | ||
| INPUT_CLUSTERS: [ | ||
| Basic.cluster_id, | ||
| PowerConfiguration.cluster_id, | ||
| OnOff.cluster_id, | ||
| Time.cluster_id, | ||
| ], | ||
| OUTPUT_CLUSTERS: [Ota.cluster_id], | ||
| }, | ||
| }, | ||
| } | ||
| replacement = { | ||
| ENDPOINTS: { | ||
| 1: { | ||
| PROFILE_ID: zha.PROFILE_ID, | ||
| DEVICE_TYPE: zha.DeviceType.REMOTE_CONTROL, | ||
| INPUT_CLUSTERS: [ | ||
| Basic.cluster_id, | ||
| TuyaNoBindPowerConfigurationCluster, | ||
| TuyaSmartRemoteOnOffCluster, | ||
| Time.cluster_id, | ||
| ], | ||
| OUTPUT_CLUSTERS: [Ota.cluster_id], | ||
| }, | ||
| }, | ||
| } | ||
|
|
||
| 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}, | ||
| } | ||
|
|
||
|
|
||
| class TuyaSmartRemote0041TOPlusA(CustomDevice): | ||
| """Tuya 1-button remote device with time on out cluster.""" | ||
|
|
||
|
|
||
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.
Nit, optional: the sibling
TuyaSmartRemote0041TI/...TOrows each also carry a_some_random_manufcase, which is what this test is actually named for — these signatures key onMODELalone, with no manufacturer. Adding one for the new class would assert that catch-all behaviour holds for it too. The real-manufacturer row you added is the more valuable of the two, so this is purely additive.