Skip to content
Draft
Changes from all 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
22 changes: 17 additions & 5 deletions zhaquirks/develco/open_close.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,28 @@ class DevelcoPowerConfiguration(PowerConfigurationCluster):
MAX_VOLTS = 3.0


base_quirk = (
QuirkBuilder()
.replaces(DevelcoIasZone, endpoint_id=35)
.replaces(DevelcoPowerConfiguration, endpoint_id=35)
# The binary input cluster is a duplicate
.prevent_default_entity_creation(endpoint_id=35, cluster_id=BinaryInput.cluster_id)
)

# Entry Sensor 2 Pro, no tamper
(
QuirkBuilder("frient A/S", "WISZB-131")
base_quirk.clone()
.applies_to("frient A/S", "WISZB-131")
.add_to_registry()
) # fmt: skip

# Entry Sensor Pro + Entry Sensor (basic), with tamper
(
base_quirk.clone()
.applies_to("Develco Products A/S", "WISZB-120")
.applies_to("frient A/S", "WISZB-120")
.applies_to("Develco Products A/S", "WISZB-121")
.applies_to("frient A/S", "WISZB-121")
.replaces(DevelcoIasZone, endpoint_id=35)
.replaces(DevelcoPowerConfiguration, endpoint_id=35)
# The binary input cluster is a duplicate
.prevent_default_entity_creation(endpoint_id=35, cluster_id=BinaryInput.cluster_id)
.binary_sensor(
endpoint_id=35,
cluster_id=IasZone.cluster_id,
Expand Down
Loading