Skip to content

Commit e61ecbb

Browse files
authored
Add additional Tuya TRVs variants (#3684)
1 parent bed768f commit e61ecbb

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

zhaquirks/tuya/ts0601_trv.py

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,19 @@ def __init__(self, *args, **kwargs):
17921792

17931793

17941794
(
1795-
TuyaQuirkBuilder("_TZE204_ogx8u5z6", "TS0601")
1795+
TuyaQuirkBuilder("_TZE200_bvu2wnxz", "TS0601")
1796+
.applies_to("_TZE200_6rdj8dzm", "TS0601")
1797+
.applies_to("_TZE200_9xfjixap", "TS0601")
1798+
.applies_to("_TZE200_p3dbf6qs", "TS0601")
1799+
.applies_to("_TZE200_rxntag7i", "TS0601")
1800+
.applies_to("_TZE200_yqgbrdyo", "TS0601")
1801+
.applies_to("_TZE284_p3dbf6qs", "TS0601")
1802+
.applies_to("_TZE200_rxq4iti9", "TS0601")
1803+
.applies_to("_TZE200_hvaxb2tc", "TS0601")
1804+
.applies_to("_TZE284_o3x45p96", "TS0601")
1805+
.applies_to("_TZE284_c6wv4xyo", "TS0601")
1806+
.applies_to("_TZE204_o3x45p96", "TS0601")
1807+
.applies_to("_TZE204_ogx8u5z6", "TS0601")
17961808
.tuya_dp(
17971809
dp_id=2,
17981810
ep_attribute=TuyaThermostatV2.ep_attribute,
@@ -1840,8 +1852,14 @@ def __init__(self, *args, **kwargs):
18401852
translation_key="child_lock",
18411853
fallback_name="Child lock",
18421854
)
1843-
.tuya_switch(
1855+
.tuya_binary_sensor(
18441856
dp_id=35,
1857+
attribute_name="error_or_battery_low",
1858+
translation_key="error_or_battery_low",
1859+
fallback_name="Error or battery low",
1860+
)
1861+
.tuya_switch(
1862+
dp_id=36,
18451863
attribute_name="frost_protection",
18461864
translation_key="frost_protection",
18471865
fallback_name="Frost protection",
@@ -1852,12 +1870,6 @@ def __init__(self, *args, **kwargs):
18521870
translation_key="scale_protection",
18531871
fallback_name="Scale protection",
18541872
)
1855-
.tuya_binary_sensor(
1856-
dp_id=35,
1857-
attribute_name="error_or_battery_low",
1858-
translation_key="error_or_battery_low",
1859-
fallback_name="Error or battery low",
1860-
)
18611873
.adds(TuyaThermostatV2)
18621874
.skip_configuration()
18631875
.add_to_registry()

0 commit comments

Comments
 (0)