From 54adbb3a7b89112b5ce22f2f6ac8fda04e728eec Mon Sep 17 00:00:00 2001 From: koenkk Date: Mon, 4 Dec 2023 20:09:48 +0100 Subject: [PATCH] fix: Add `action6` to `tradfriButton` cluster https://github.com/Koenkk/zigbee2mqtt/discussions/20003 --- src/controller/events.ts | 3 ++- src/zcl/definition/cluster.ts | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/controller/events.ts b/src/controller/events.ts index 76a184bb6a..2bdeb7640a 100644 --- a/src/controller/events.ts +++ b/src/controller/events.ts @@ -143,6 +143,7 @@ const CommandsLookup: {[s: string]: MessagePayloadType} = { 'action2': 'commandAction2', 'action3': 'commandAction3', 'action4': 'commandAction4', + 'action6': 'commandAction6', }; type MessagePayloadType = @@ -169,7 +170,7 @@ type MessagePayloadType = 'commandSiglisZigfredButtonEvent' | 'commandDanfossSetpointCommand' | 'commandZosungSendIRCode00' | 'commandZosungSendIRCode01' | 'commandZosungSendIRCode02'|'commandZosungSendIRCode04' | 'zosungSendIRCode03Resp' | 'zosungSendIRCode05Resp' | 'commandMcuGatewayConnectionStatus' | 'commandSchneiderWiserThermostatBoost' | - 'transferDataResp' | 'commandAction1' | 'commandAction2' | 'commandAction3' | 'commandAction4'; + 'transferDataResp' | 'commandAction1' | 'commandAction2' | 'commandAction3' | 'commandAction4' | 'commandAction6'; interface MessagePayload { type: MessagePayloadType; diff --git a/src/zcl/definition/cluster.ts b/src/zcl/definition/cluster.ts index b63962a57a..619c47ef6b 100644 --- a/src/zcl/definition/cluster.ts +++ b/src/zcl/definition/cluster.ts @@ -4871,6 +4871,12 @@ const Cluster: { {name: 'data', type: DataType.uint8}, ], }, + action6: { + ID: 6, + parameters: [ + {name: 'data', type: DataType.uint8}, + ], + }, }, commandsResponse: { },