Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions zhaquirks/sonoff/swv.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class AttributeDefs(BaseAttributeDefs):
type=ValveState,
)

auto_close_when_water_shortage = ZCLAttributeDef(
Comment thread
TheJulianJES marked this conversation as resolved.
Outdated
id=0x5011,
type=t.uint16_t,
is_manufacturer_specific=True,
)


(
QuirkBuilder("SONOFF", "SWV")
Expand All @@ -56,5 +62,13 @@ class AttributeDefs(BaseAttributeDefs):
translation_key="water_supply",
fallback_name="Water supply",
)
.switch(
CustomSonoffCluster.AttributeDefs.auto_close_when_water_shortage.name,
Comment thread
TheJulianJES marked this conversation as resolved.
Outdated
CustomSonoffCluster.cluster_id,
off_value=0,
on_value=30,
Comment thread
TheJulianJES marked this conversation as resolved.
translation_key="auto_close_when_water_shortage",
Comment thread
TheJulianJES marked this conversation as resolved.
Outdated
fallback_name="Water shortage auto-close",
)
.add_to_registry()
)
Loading