Skip to content

Commit 8317dc6

Browse files
Add UseeLink/Tuya cover support _TZ3000_ltiqubue (#3186)
Co-authored-by: TheJulianJES <[email protected]>
1 parent c20e40a commit 8317dc6

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

zhaquirks/tuya/ts130f.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Basic,
99
GreenPowerProxy,
1010
Groups,
11+
Identify,
1112
OnOff,
1213
Ota,
1314
Scenes,
@@ -268,6 +269,45 @@ class TuyaTS130FTI2(CustomDevice):
268269
},
269270
}
270271

272+
class TuyaTS130FUL(CustomDevice):
273+
"""Tuya Cover variant from UseeLink."""
274+
275+
signature = {
276+
# This signature was copied from TuyaTS130FTO and changed to fit the UseeLink device.
277+
MODEL: "TS130F",
278+
ENDPOINTS: {
279+
1: {
280+
PROFILE_ID: zha.PROFILE_ID,
281+
DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
282+
INPUT_CLUSTERS: [
283+
Basic.cluster_id,
284+
Identify.cluster_id,
285+
Groups.cluster_id,
286+
Scenes.cluster_id,
287+
OnOff.cluster_id,
288+
WindowCovering.cluster_id,
289+
],
290+
OUTPUT_CLUSTERS: [Time.cluster_id],
291+
},
292+
},
293+
}
294+
replacement = {
295+
ENDPOINTS: {
296+
1: {
297+
PROFILE_ID: zha.PROFILE_ID,
298+
DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
299+
INPUT_CLUSTERS: [
300+
Basic.cluster_id,
301+
Identify.cluster_id,
302+
Groups.cluster_id,
303+
Scenes.cluster_id,
304+
TuyaWithBacklightOnOffCluster,
305+
TuyaCoveringCluster,
306+
],
307+
OUTPUT_CLUSTERS: [Time.cluster_id],
308+
},
309+
},
310+
}
271311

272312
class TuyaTS130FTO(CustomDevice):
273313
"""Tuya smart curtain roller shutter Time Out."""

0 commit comments

Comments
 (0)