Skip to content

Commit

Permalink
Configure report fanmode. Koenkk/zigbee2mqtt#115
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 29, 2018
1 parent d83a3e9 commit 319df87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,15 +939,12 @@ const devices = [
fromZigbee: [fz.generic_state, fz.light_brightness],
toZigbee: [tz.onoff, tz.light_brightness, tz.HBUniversalCFRemote_fan_mode],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
// const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.bind('hvacFanCtrl', coordinator, cb),

// TODO: is this needed?
// (cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => device.report('hvacFanCtrl', 'fanMode', 0, 1000, 0, cb),
];

execute(device, actions, callback);
Expand Down

0 comments on commit 319df87

Please sign in to comment.