Skip to content

Commit

Permalink
feat: Add tradfriButton cluster Koenkk/zigbee-herdsman-converters#6574
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Nov 30, 2023
1 parent 2cae114 commit 6e454d8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/controller/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ const CommandsLookup: {[s: string]: MessagePayloadType} = {

// Schneider
'schneiderWiserThermostatBoost':'commandSchneiderWiserThermostatBoost',

// Tradfri
'action1': 'commandAction1',
'action2': 'commandAction2',
'action3': 'commandAction3',
'action4': 'commandAction4',
};

type MessagePayloadType =
Expand All @@ -163,7 +169,7 @@ type MessagePayloadType =
'commandSiglisZigfredButtonEvent' | 'commandDanfossSetpointCommand' | 'commandZosungSendIRCode00' |
'commandZosungSendIRCode01' | 'commandZosungSendIRCode02'|'commandZosungSendIRCode04' | 'zosungSendIRCode03Resp' |
'zosungSendIRCode05Resp' | 'commandMcuGatewayConnectionStatus' | 'commandSchneiderWiserThermostatBoost' |
'transferDataResp';
'transferDataResp' | 'commandAction1' | 'commandAction2' | 'commandAction3' | 'commandAction4';

interface MessagePayload {
type: MessagePayloadType;
Expand Down
34 changes: 34 additions & 0 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4841,6 +4841,40 @@ const Cluster: {
commandsResponse: {
},
},
tradfriButton: {
ID: 0xfc80,
manufacturerCode: ManufacturerCode.IKEA_OF_SWEDEN,
attributes: {
},
commands: {
action1: {
ID: 1,
parameters: [
{name: 'data', type: DataType.uint8},
],
},
action2: {
ID: 2,
parameters: [
{name: 'data', type: DataType.uint8},
],
},
action3: {
ID: 3,
parameters: [
{name: 'data', type: DataType.uint8},
],
},
action4: {
ID: 4,
parameters: [
{name: 'data', type: DataType.uint8},
],
},
},
commandsResponse: {
},
},
heimanSpecificInfraRedRemote: {
// from HS2IRC-3.0海曼智能红外转发控制器API-V01文档
ID: 0xfc82,
Expand Down

0 comments on commit 6e454d8

Please sign in to comment.