Skip to content

Commit

Permalink
fix: Add action6 to tradfriButton cluster Koenkk/zigbee2mqtt#20003
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 4, 2023
1 parent e451026 commit 54adbb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const CommandsLookup: {[s: string]: MessagePayloadType} = {
'action2': 'commandAction2',
'action3': 'commandAction3',
'action4': 'commandAction4',
'action6': 'commandAction6',
};

type MessagePayloadType =
Expand All @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4871,6 +4871,12 @@ const Cluster: {
{name: 'data', type: DataType.uint8},
],
},
action6: {
ID: 6,
parameters: [
{name: 'data', type: DataType.uint8},
],
},
},
commandsResponse: {
},
Expand Down

0 comments on commit 54adbb3

Please sign in to comment.