Skip to content
This repository has been archived by the owner on Jul 5, 2019. It is now read-only.

Commit

Permalink
Add Support SwannOne Key Fob SWO-KEF1PA (#17)
Browse files Browse the repository at this point in the history
Zcl 'panic' and 'armmode' are required so it registers properly in
zigbee2mqtt.
  • Loading branch information
qosmio authored and Koenkk committed Mar 15, 2019
1 parent 4618b86 commit 9d0aabb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/af.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,8 @@ function dispatchIncomingMsg(type, msg) {
const cmdIDs = ['on', 'offWithEffect', 'step', 'stop', 'hueNotification', //Philips-RWL020-RWL021
'off', 'stepColorTemp', 'moveWithOnOff', 'move', 'moveHue', 'moveToSaturation', //OSRAM-Switch 4x EU-LIGHTIFY
'stopWithOnOff', 'moveToLevelWithOnOff', 'toggle', 'tradfriArrowSingle', 'tradfriArrowHold', 'tradfriArrowRelease',
'stepWithOnOff', 'moveToColorTemp', 'moveToColor', 'onWithTimedOff', 'recall'];
'stepWithOnOff', 'moveToColorTemp', 'moveToColor', 'onWithTimedOff', 'recall', 'arm', 'panic' //SwannOne Key Fob SWO-KEF1PA
];

if (frameType === 1 && cmdIDs.includes(msg.zclMsg.cmdId) && msg.zclMsg.payload) {
af.controller._shepherd.emit('ind:cmd', targetEp, msg.clusterid, msg.zclMsg.payload, msg.zclMsg.cmdId, msg);
Expand Down

0 comments on commit 9d0aabb

Please sign in to comment.