Skip to content

Commit

Permalink
Add another signature for Aqara H1 double switch lumi.switch.n2aeu1 (
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES authored Dec 27, 2023
1 parent b04b662 commit f2a1ce5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions zhaquirks/xiaomi/aqara/switch_h1_double.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,32 @@
from zhaquirks.xiaomi.aqara.opple_switch import (
OppleSwitchCluster,
XiaomiOpple2ButtonSwitch1,
XiaomiOpple2ButtonSwitch3,
XiaomiOpple2ButtonSwitch4,
XiaomiOpple2ButtonSwitchBase,
)


class AqaraH1DoubleRockerSwitchWithNeutral(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (with neutral)."""
class AqaraH1DoubleRockerSwitchWithNeutral1(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (with neutral). Based on signature 1."""

signature = {
MODELS_INFO: [(LUMI, "lumi.switch.n2aeu1")],
ENDPOINTS: XiaomiOpple2ButtonSwitch1.signature[ENDPOINTS],
}


class AqaraH1DoubleRockerSwitchWithNeutralAlt(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (with neutral) alternative signature."""
class AqaraH1DoubleRockerSwitchWithNeutral3(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (with neutral). Based on signature 3."""

signature = {
MODELS_INFO: [(LUMI, "lumi.switch.n2aeu1")],
ENDPOINTS: XiaomiOpple2ButtonSwitch3.signature[ENDPOINTS],
}


class AqaraH1DoubleRockerSwitchWithNeutral4(XiaomiOpple2ButtonSwitchBase):
"""Aqara H1 Double Rocker Switch (with neutral). Based on signature 4."""

signature = {
MODELS_INFO: [(LUMI, "lumi.switch.n2aeu1")],
Expand Down

0 comments on commit f2a1ce5

Please sign in to comment.