From 36c2165856bbdd59d604069e9de758f3b4f4d419 Mon Sep 17 00:00:00 2001 From: "T. Franzel" Date: Wed, 11 Sep 2024 01:21:51 +0200 Subject: [PATCH] Add Aqara H1 Wireless Remote Double Rocker variant --- zhaquirks/xiaomi/aqara/remote_h1.py | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/zhaquirks/xiaomi/aqara/remote_h1.py b/zhaquirks/xiaomi/aqara/remote_h1.py index 5e5cf398cb..7948096916 100644 --- a/zhaquirks/xiaomi/aqara/remote_h1.py +++ b/zhaquirks/xiaomi/aqara/remote_h1.py @@ -393,3 +393,45 @@ class RemoteH1DoubleRocker4(RemoteH1DoubleRocker1): }, }, } + + +class RemoteH1DoubleRocker5(RemoteH1DoubleRocker1): + """Aqara H1 Wireless Remote Double Rocker Version WRS-R02, variant 5.""" + + signature = { + MODELS_INFO: [(LUMI, "lumi.remote.b28ac1")], + ENDPOINTS: { + 1: { + PROFILE_ID: zha.PROFILE_ID, + DEVICE_TYPE: zha.DeviceType.COLOR_DIMMER_SWITCH, + INPUT_CLUSTERS: [ + Basic.cluster_id, + Identify.cluster_id, + PowerConfiguration.cluster_id, + ], + OUTPUT_CLUSTERS: [ + Identify.cluster_id, + OnOff.cluster_id, + LevelControl.cluster_id, + Color.cluster_id, + ], + }, + 2: { + PROFILE_ID: zha.PROFILE_ID, + DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT_SWITCH, + INPUT_CLUSTERS: [ + Identify.cluster_id, + ], + OUTPUT_CLUSTERS: [ + Identify.cluster_id, + OnOff.cluster_id, + ], + }, + 3: { + PROFILE_ID: zha.PROFILE_ID, + DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT_SWITCH, + INPUT_CLUSTERS: [Identify.cluster_id], + OUTPUT_CLUSTERS: [OnOff.cluster_id], + }, + }, + }