From 319df87862dd4ec8253d5db2e284772b8dacaa07 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Thu, 12 Jul 2018 17:57:10 +0200 Subject: [PATCH] Configure report fanmode. https://github.com/Koenkk/zigbee2mqtt/issues/115 --- devices.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/devices.js b/devices.js index 8fef1d87a1319..fd2d7566ae3e5 100644 --- a/devices.js +++ b/devices.js @@ -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);