Skip to content

Commit

Permalink
Update for Tuya TS130F_TZ3000_qqdbccb3
Browse files Browse the repository at this point in the history
This PR includes a new signature for the Zemismart curtain switch with
reference WN2-EC1E because the current one doesn't work for this device.

Signed-off-by: Mario de Frutos Dieguez <[email protected]>
  • Loading branch information
ethervoid committed Sep 22, 2024
1 parent d9c9df9 commit 10fdb36
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions zhaquirks/tuya/ts130f.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,52 @@ class TuyaZemismartTS130F(CustomDevice):
}


class TuyaZemismartWNEC1ETS130F(CustomDevice):
"""Tuya ZemiSmart smart curtain roller shutter. WN-EC1E version"""

signature = {
# SizePrefixedSimpleDescriptor(endpoint=1, profile=104, device_type=0x0202, device_version=1, input_clusters=[0x0000, 0x0003, 0x0004, 0x0005, 0x0102], output_clusters=[0x0019]))
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,
Ota.cluster_id,
],
},
},
}
replacement = {
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
INPUT_CLUSTERS: [
Basic.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
TuyaWithBacklightOnOffCluster,
TuyaCoveringCluster,
],
OUTPUT_CLUSTERS: [
Time.cluster_id,
Ota.cluster_id,
],
},
},
}


class TuyaTS130FTOGP(CustomDevice):
"""Tuya Oxt smart curtain roller shutter."""

Expand Down

0 comments on commit 10fdb36

Please sign in to comment.