Skip to content

Commit f11926e

Browse files
RT530TheJulianJES
andauthored
Add various Tuya device variants (#4286)
Adds support for these device variants: - dimmer `_TZE200_6fjev1mn` (#4238) - power meter `_TZE284_wbhaespm` (#4277) - switch `_TZE200_wvovwe9h`(#4077) Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
1 parent 28d09e1 commit f11926e

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

zhaquirks/tuya/ts0601_dimmer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class TuyaSingleSwitchDimmer(TuyaDimmerSwitch):
5151
("_TZE200_p0gzbqct", "TS0601"),
5252
("_TZE200_w4cryh2i", "TS0601"),
5353
("_TZE204_dcnsggvz", "TS0601"),
54+
("_TZE200_6fjev1mn", "TS0601"), # reported in #4238
5455
],
5556
ENDPOINTS: {
5657
# <SimpleDescriptor endpoint=1 profile=260 device_type=0x0051

zhaquirks/tuya/ts0601_power.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ class Tuya3PhaseElectricalMeasurement(ElectricalMeasurement, TuyaLocalCluster):
221221
TuyaQuirkBuilder("_TZE200_dikb3dp6", "TS0601")
222222
.applies_to("_TZE204_dikb3dp6", "TS0601")
223223
.applies_to("_TZE284_dikb3dp6", "TS0601")
224+
.applies_to("_TZE284_wbhaespm", "TS0601") # reported in #4277
224225
.tuya_sensor(
225226
dp_id=1,
226227
attribute_name="energy",

zhaquirks/tuya/ts0601_switch.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,52 @@ class TuyaDoubleSwitchGP(TuyaSwitch):
312312
}
313313

314314

315+
class TuyaDoubleSwitchNOC(TuyaSwitch):
316+
"""Tuya double channel switch with No Output Clusters."""
317+
318+
signature = {
319+
MODELS_INFO: [
320+
("_TZE200_wvovwe9h", "TS0601"), # reported in #4077
321+
],
322+
ENDPOINTS: {
323+
1: {
324+
PROFILE_ID: zha.PROFILE_ID,
325+
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
326+
INPUT_CLUSTERS: [
327+
Basic.cluster_id,
328+
Groups.cluster_id,
329+
Scenes.cluster_id,
330+
TuyaOnOffManufCluster.cluster_id,
331+
],
332+
OUTPUT_CLUSTERS: [],
333+
},
334+
},
335+
}
336+
337+
replacement = {
338+
ENDPOINTS: {
339+
1: {
340+
PROFILE_ID: zha.PROFILE_ID,
341+
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
342+
INPUT_CLUSTERS: [
343+
Basic.cluster_id,
344+
Groups.cluster_id,
345+
Scenes.cluster_id,
346+
MoesSwitchManufCluster,
347+
TuyaOnOff,
348+
],
349+
OUTPUT_CLUSTERS: [],
350+
},
351+
2: {
352+
PROFILE_ID: zha.PROFILE_ID,
353+
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
354+
INPUT_CLUSTERS: [TuyaOnOff],
355+
OUTPUT_CLUSTERS: [],
356+
},
357+
}
358+
}
359+
360+
315361
class TuyaTripleSwitchTO(TuyaSwitch):
316362
"""Tuya triple channel switch time on out cluster device."""
317363

0 commit comments

Comments
 (0)