From f2a1ce57b2877b388f3c1b97c73c2c7202daf181 Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Wed, 27 Dec 2023 16:52:52 +0100 Subject: [PATCH] Add another signature for Aqara H1 double switch `lumi.switch.n2aeu1` (#2863) --- zhaquirks/xiaomi/aqara/switch_h1_double.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/zhaquirks/xiaomi/aqara/switch_h1_double.py b/zhaquirks/xiaomi/aqara/switch_h1_double.py index d2f7a7269b..2c07fa7520 100644 --- a/zhaquirks/xiaomi/aqara/switch_h1_double.py +++ b/zhaquirks/xiaomi/aqara/switch_h1_double.py @@ -26,13 +26,14 @@ 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")], @@ -40,8 +41,17 @@ class AqaraH1DoubleRockerSwitchWithNeutral(XiaomiOpple2ButtonSwitchBase): } -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")],