Skip to content

Commit

Permalink
Add UseeLink/Tuya cover support _TZ3000_ltiqubue (#3186)
Browse files Browse the repository at this point in the history
Co-authored-by: TheJulianJES <[email protected]>
  • Loading branch information
Maddimax and TheJulianJES authored Jun 26, 2024
1 parent c20e40a commit 8317dc6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions zhaquirks/tuya/ts130f.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Basic,
GreenPowerProxy,
Groups,
Identify,
OnOff,
Ota,
Scenes,
Expand Down Expand Up @@ -268,6 +269,45 @@ class TuyaTS130FTI2(CustomDevice):
},
}

class TuyaTS130FUL(CustomDevice):
"""Tuya Cover variant from UseeLink."""

signature = {
# This signature was copied from TuyaTS130FTO and changed to fit the UseeLink device.
MODEL: "TS130F",
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
INPUT_CLUSTERS: [
Basic.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
OnOff.cluster_id,
WindowCovering.cluster_id,
],
OUTPUT_CLUSTERS: [Time.cluster_id],
},
},
}
replacement = {
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
INPUT_CLUSTERS: [
Basic.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
TuyaWithBacklightOnOffCluster,
TuyaCoveringCluster,
],
OUTPUT_CLUSTERS: [Time.cluster_id],
},
},
}

class TuyaTS130FTO(CustomDevice):
"""Tuya smart curtain roller shutter Time Out."""
Expand Down

0 comments on commit 8317dc6

Please sign in to comment.