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 106e312 commit b0b0353
Showing 1 changed file with 24 additions and 84 deletions.
108 changes: 24 additions & 84 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -7169,131 +7169,71 @@ const devices = [
vendor: 'Sengled',
description: 'Element Classic (A19)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([fz.ignore_metering_change, fz.ignore_diagnostic_change]),
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
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: 65534, 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: ['E11-G23', 'E11-G33'],
model: 'E11-G23/E11-G33',
vendor: 'Sengled',
description: 'Element Classic (A60)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([fz.ignore_metering_change, fz.ignore_diagnostic_change]),
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
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: 65534, 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: ['Z01-CIA19NAE26'],
model: 'Z01-CIA19NAE26',
vendor: 'Sengled',
description: 'Element Touch (A19)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([fz.ignore_metering_change, fz.ignore_diagnostic_change]),
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
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: 65534, 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: ['Z01-A19NAE26'],
model: 'Z01-A19NAE26',
vendor: 'Sengled',
description: 'Element Plus (A19)',
supports: generic.light_onoff_brightness_colortemp.supports,
fromZigbee: generic.light_onoff_brightness_colortemp.fromZigbee.concat([fz.ignore_metering_change, fz.ignore_diagnostic_change]),
fromZigbee: generic.light_onoff_brightness_colortemp.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness_colortemp.toZigbee,
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: 65534, 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: ['E11-N1EA'],
model: 'E11-N1EA',
vendor: 'Sengled',
description: 'Element Plus Color (A19)',
supports: generic.light_onoff_brightness_colortemp_colorxy.supports,
fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee.concat([fz.ignore_metering_change, fz.ignore_diagnostic_change]),
fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness_colortemp_colorxy.toZigbee,
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: 65534, 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: ['E12-N14'],
model: 'E12-N14',
vendor: 'Sengled',
description: 'Element Classic (BR30)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([fz.ignore_metering_change, fz.ignore_diagnostic_change]),
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
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: 65534, 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: ['E1A-AC2'],
Expand Down

0 comments on commit b0b0353

Please sign in to comment.