Skip to content
Open
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
59 changes: 55 additions & 4 deletions zhaquirks/xiaomi/aqara/switch_h1_double.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class AqaraH1DoubleRockerSwitchWithNeutral4(XiaomiOpple2ButtonSwitchBase):
}


class AqaraH1DoubleRockerSwitchNoNeutral(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (no neutral)."""
class AqaraH1DoubleRockerSwitchNoNeutral1(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (no neutral). Based on signature 1."""

signature = {
MODELS_INFO: [(LUMI, "lumi.switch.l2aeu1")],
Expand Down Expand Up @@ -139,8 +139,8 @@ class AqaraH1DoubleRockerSwitchNoNeutral(XiaomiOpple2ButtonSwitchBase):
}


class AqaraH1DoubleRockerSwitchNoNeutralAlt(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (no neutral) alternative signature."""
class AqaraH1DoubleRockerSwitchNoNeutral2(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (no neutral) Based on signature 2."""

signature = {
MODELS_INFO: [(LUMI, "lumi.switch.l2aeu1")],
Expand Down Expand Up @@ -186,3 +186,54 @@ class AqaraH1DoubleRockerSwitchNoNeutralAlt(XiaomiOpple2ButtonSwitchBase):
},
},
}


class AqaraH1DoubleRockerSwitchNoNeutral3(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (no neutral). Based on signature 3."""

signature = {
MODELS_INFO: [(LUMI, "lumi.switch.l2aeu1")],
ENDPOINTS: {
# input_clusters=[0, 2, 3, 4, 5, 6, 9], output_clusters=[10, 25]
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
INPUT_CLUSTERS: [
Basic.cluster_id,
DeviceTemperature.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
OnOff.cluster_id,
Alarms.cluster_id,
],
OUTPUT_CLUSTERS: [
Time.cluster_id,
Ota.cluster_id,
],
},
# input_clusters=[0, 3, 4, 5, 6, 18, 64704], output_clusters=[]
2: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
INPUT_CLUSTERS: [
Basic.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
OnOff.cluster_id,
MultistateInput.cluster_id,
OppleSwitchCluster.cluster_id,
],
OUTPUT_CLUSTERS: [],
},
242: {
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id,
],
},
},
}
Loading