Skip to content

Commit 7f5f7aa

Browse files
author
Daniel Potts
committed
Add quirk for TS011F _TZ3000_cehuw1lw single plug without GP
1 parent 8317dc6 commit 7f5f7aa

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

zhaquirks/tuya/ts011f_plug.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,63 @@ class Plug_v3(EnchantedDevice):
11701170
}
11711171

11721172

1173+
class Plug_v3_NoGP(EnchantedDevice):
1174+
"""Tuya TS011F plug without GP. One plug is _TZ3000_cehuw1lw."""
1175+
1176+
quirk_id = TUYA_PLUG_ONOFF
1177+
1178+
signature = {
1179+
MODEL: "TS011F",
1180+
ENDPOINTS: {
1181+
1: {
1182+
PROFILE_ID: zha.PROFILE_ID,
1183+
DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
1184+
INPUT_CLUSTERS: [
1185+
Basic.cluster_id,
1186+
Identify.cluster_id,
1187+
Groups.cluster_id,
1188+
Scenes.cluster_id,
1189+
OnOff.cluster_id,
1190+
Time.cluster_id,
1191+
Metering.cluster_id,
1192+
ElectricalMeasurement.cluster_id,
1193+
LightLink.cluster_id,
1194+
TuyaZB1888Cluster.cluster_id,
1195+
TuyaZBE000Cluster.cluster_id,
1196+
],
1197+
OUTPUT_CLUSTERS: [
1198+
Ota.cluster_id,
1199+
],
1200+
},
1201+
},
1202+
}
1203+
1204+
replacement = {
1205+
ENDPOINTS: {
1206+
1: {
1207+
PROFILE_ID: zha.PROFILE_ID,
1208+
DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
1209+
INPUT_CLUSTERS: [
1210+
Basic.cluster_id,
1211+
Identify.cluster_id,
1212+
Groups.cluster_id,
1213+
Scenes.cluster_id,
1214+
TuyaZBOnOffAttributeCluster,
1215+
Time.cluster_id,
1216+
TuyaZBMeteringClusterWithUnit,
1217+
TuyaZBElectricalMeasurement,
1218+
LightLink.cluster_id,
1219+
TuyaZB1888Cluster,
1220+
TuyaZBE000Cluster,
1221+
],
1222+
OUTPUT_CLUSTERS: [
1223+
Ota.cluster_id,
1224+
],
1225+
},
1226+
},
1227+
}
1228+
1229+
11731230
class Plug_2AC_var03(CustomDevice):
11741231
"""Tuya 2 socket wall outlet with child lock and power-restore state support."""
11751232

0 commit comments

Comments
 (0)