We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc5473 commit 81e543aCopy full SHA for 81e543a
zhaquirks/sonoff/swv.py
@@ -31,6 +31,12 @@ class AttributeDefs(BaseAttributeDefs):
31
type=ValveState,
32
)
33
34
+ auto_close_water_shortage = ZCLAttributeDef(
35
+ id=0x5011,
36
+ type=t.uint16_t,
37
+ is_manufacturer_specific=True,
38
+ )
39
+
40
41
(
42
QuirkBuilder("SONOFF", "SWV")
@@ -56,5 +62,13 @@ class AttributeDefs(BaseAttributeDefs):
56
62
translation_key="water_supply",
57
63
fallback_name="Water supply",
58
64
65
+ .switch(
66
+ CustomSonoffCluster.AttributeDefs.auto_close_water_shortage.name,
67
+ CustomSonoffCluster.cluster_id,
68
+ off_value=0,
69
+ on_value=30,
70
+ translation_key="water_shortage_auto_close",
71
+ fallback_name="Water shortage auto-close",
72
59
73
.add_to_registry()
60
74
0 commit comments