Skip to content

Commit

Permalink
Revert 'configure' options for reporting. Being worked on upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Qosmio authored and qosmio committed Dec 25, 2019
1 parent a395757 commit a4f03dd
Showing 1 changed file with 4 additions and 40 deletions.
44 changes: 4 additions & 40 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -6983,19 +6983,6 @@ const devices = [
fz.ignore_diagnostic_change,
fz.ignore_genscenes_change,
]),
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 3);
const cfgOnOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 3, maxRepIntval: 1000, repChange: 1};
const cfgLevel = {direction: 0, attrId: 0, dataType: 32, minRepIntval: 3, maxRepIntval: 1000, repChange: 1};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfgOnOff], foundationCfg, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.foundation('genLevelCtrl', 'configReport', [cfgLevel], foundationCfg, cb),
];

execute(device, actions, callback);
},
},
{
zigbeeModel: ['LIGHTIFY A19 RGBW'],
Expand All @@ -7008,19 +6995,6 @@ const devices = [
tz.osram_set_transition,
]),
fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee,
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 3);
const cfgOnOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 3, maxRepIntval: 1000, repChange: 1};
const cfgLevel = {direction: 0, attrId: 0, dataType: 32, minRepIntval: 3, maxRepIntval: 1000, repChange: 1};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfgOnOff], foundationCfg, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.foundation('genLevelCtrl', 'configReport', [cfgLevel], foundationCfg, cb),
];

execute(device, actions, callback);
},
},
{
zigbeeModel: ['LIGHTIFY A19 ON/OFF/DIM', 'LIGHTIFY A19 ON/OFF/DIM 10 Year'],
Expand All @@ -7035,25 +7009,15 @@ const devices = [
vendor: 'Sylvania',
description: 'LIGHTIFY LED soft white dimmable A19',
supports: generic.light_onoff_brightness.supports,
toZigbee: generic.light_onoff_brightness.toZigbee.concat([tz.osram_remember_state, tz.osram_set_transition]),
toZigbee: generic.light_onoff_brightness.toZigbee.concat([
tz.osram_remember_state,
tz.osram_set_transition,
]),
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_genIdentify_change,
fz.ignore_diagnostic_change,
fz.ignore_genscenes_change,
]),
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfgOnOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 3, maxRepIntval: 1000, repChange: 1};
const cfgLevel = {direction: 0, attrId: 0, dataType: 32, minRepIntval: 3, maxRepIntval: 1000, repChange: 1};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfgOnOff], foundationCfg, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.foundation('genLevelCtrl', 'configReport', [cfgLevel], foundationCfg, cb),
];

execute(device, actions, callback);
},
},
{
zigbeeModel: ['PLUG'],
Expand Down

0 comments on commit a4f03dd

Please sign in to comment.