Skip to content

Commit

Permalink
Add missing bind and message. Koenkk/zigbee2mqtt#962
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed May 14, 2019
1 parent 10afd10 commit ad2d5aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions converters/fromZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,13 @@ const converters = {
return {action: 'circle_hold'};
},
},
AC0251100NJ_cmdMoveToLevelWithOnOff: {
cid: 'genLevelCtrl',
type: 'cmdMoveToLevelWithOnOff',
convert: (model, msg, publish, options) => {
return {action: 'circle_click'};
},
},
AC0251100NJ_cmdMoveToColorTemp: {
cid: 'lightingColorCtrl',
type: 'cmdMoveToColorTemp',
Expand Down
2 changes: 2 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,7 @@ const devices = [
fz.AC0251100NJ_cmdOn, fz.AC0251100NJ_cmdMoveWithOnOff, fz.AC0251100NJ_cmdStop,
fz.AC0251100NJ_cmdMoveToColorTemp, fz.AC0251100NJ_cmdMoveHue, fz.AC0251100NJ_cmdMoveToSaturation,
fz.AC0251100NJ_cmdOff, fz.AC0251100NJ_cmdMove, fz.generic_batteryvoltage_3000_2500,
fz.AC0251100NJ_cmdMoveToLevelWithOnOff,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
Expand All @@ -1347,6 +1348,7 @@ const devices = [
(cb) => ep1.bind('genLevelCtrl', coordinator, cb),
(cb) => ep2.bind('genOnOff', coordinator, cb),
(cb) => ep2.bind('genLevelCtrl', coordinator, cb),
(cb) => ep3.bind('genLevelCtrl', coordinator, cb),
(cb) => ep3.bind('lightingColorCtrl', coordinator, cb),
(cb) => ep1.bind('genPowerCfg', coordinator, cb),
(cb) => ep1.report('genPowerCfg', 'batteryVoltage', 900, 3600, 0, cb),
Expand Down

0 comments on commit ad2d5aa

Please sign in to comment.