Skip to content

Commit

Permalink
Support manuSpecificSmartThingsArrivalSensor cluster. Koenkk/zigbee2m…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Aug 25, 2020
1 parent 98de522 commit 202f855
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const CommandsLookup: {[s: string]: MessagePayloadType} = {
'alertsNotification': 'commandAlertsNotification',
'programmingEventNotification': 'commandProgrammingEventNotification',
'getPinCodeRsp': 'commandGetPinCodeRsp',
'arrivalSensorNotify': 'commandArrivalSensorNotify',
};

type MessagePayloadType =
Expand All @@ -84,7 +85,8 @@ type MessagePayloadType =
'commandOperationEventNotification' | 'commandStatusChangeNotification' | 'commandEnhancedMoveToHueAndSaturation' |
'commandUpOpen' | 'commandDownClose' | 'commandMoveToLevel' | 'commandMoveColorTemp' | 'commandGetData' |
'commandSetDataResponse' | 'commandGetWeeklyScheduleRsp' | 'commandQueryNextImageRequest' | 'commandNotification' |
'commandAlertsNotification' | 'commandProgrammingEventNotification' | "commandGetPinCodeRsp";
'commandAlertsNotification' | 'commandProgrammingEventNotification' | "commandGetPinCodeRsp" |
"commandArrivalSensorNotify";

interface MessagePayload {
type: MessagePayloadType;
Expand Down
12 changes: 12 additions & 0 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3799,6 +3799,18 @@ const Cluster: {
commands: {},
commandsResponse: {},
},
manuSpecificSmartThingsArrivalSensor: {
ID: 0xFC01,
manufacturerCode: ManufacturerCode.SmartThings,
attributes: {},
commands: {},
commandsResponse: {
arrivalSensorNotify: {
ID: 1,
parameters: [],
},
},
},
manuSpecificSamsungAccelerometer: {
ID: 0xFC02,
manufacturerCode: ManufacturerCode.SmartThings,
Expand Down

0 comments on commit 202f855

Please sign in to comment.