From cd38b1ddfb3bf97663ff8e64c9e803525bf0a75a Mon Sep 17 00:00:00 2001 From: MattWestb <49618193+MattWestb@users.noreply.github.com> Date: Fri, 10 May 2024 06:37:08 +0200 Subject: [PATCH] IKEA STYRBAR V3 IKEA STYRBAR V3 for FW 2.4.11 firmware --- zhaquirks/ikea/fourbtnremote.py | 67 +++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/zhaquirks/ikea/fourbtnremote.py b/zhaquirks/ikea/fourbtnremote.py index ee37f4b9b9..255a5190db 100644 --- a/zhaquirks/ikea/fourbtnremote.py +++ b/zhaquirks/ikea/fourbtnremote.py @@ -1,8 +1,10 @@ """Device handler for IKEA of Sweden TRADFRI remote control.""" + from zigpy.profiles import zha from zigpy.quirks import CustomDevice from zigpy.zcl.clusters.general import ( Basic, + Groups, Identify, LevelControl, OnOff, @@ -234,3 +236,68 @@ class IkeaTradfriRemoteV2(CustomDevice): } device_automation_triggers = IkeaTradfriRemoteV1.device_automation_triggers.copy() + + +class IkeaTradfriRemoteV3(CustomDevice): + """Custom device representing IKEA of Sweden TRADFRI remote control Version 2.4.11.""" + + signature = { + # + MODELS_INFO: [(IKEA, "Remote Control N2")], + ENDPOINTS: { + 1: { + PROFILE_ID: zha.PROFILE_ID, + DEVICE_TYPE: zha.DeviceType.NON_COLOR_CONTROLLER, + INPUT_CLUSTERS: [ + Basic.cluster_id, + PowerConfiguration.cluster_id, + Identify.cluster_id, + Groups.cluster_id, + PollControl.cluster_id, + LightLink.cluster_id, + IKEA_CLUSTER_ID, + ], + OUTPUT_CLUSTERS: [ + Identify.cluster_id, + Groups.cluster_id, + ScenesCluster.cluster_id, + OnOff.cluster_id, + LevelControl.cluster_id, + Ota.cluster_id, + LightLink.cluster_id, + ], + } + }, + } + + replacement = { + ENDPOINTS: { + 1: { + PROFILE_ID: zha.PROFILE_ID, + DEVICE_TYPE: zha.DeviceType.NON_COLOR_CONTROLLER, + INPUT_CLUSTERS: [ + Basic.cluster_id, + PowerConfiguration.cluster_id, + Identify.cluster_id, + Groups.cluster_id, + PollControl.cluster_id, + LightLink.cluster_id, + IKEA_CLUSTER_ID, + ], + OUTPUT_CLUSTERS: [ + Identify.cluster_id, + Groups.cluster_id, + ScenesCluster, + OnOff.cluster_id, + LevelControl.cluster_id, + Ota.cluster_id, + LightLink.cluster_id, + ], + } + } + } + + device_automation_triggers = IkeaTradfriRemoteV1.device_automation_triggers.copy()