Skip to content

Commit

Permalink
Updated devices.js with support for ELKO Dimmer 316 GLED RF. (#283)
Browse files Browse the repository at this point in the history
* Updated devices.js with support for ELKO Dimmer 316 GLED RF.

* Update devices.js

* Update devices.js

* Update devices.js
  • Loading branch information
fredrikgk authored and Koenkk committed Feb 17, 2019
1 parent b4ac883 commit 0ed0876
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -2562,6 +2562,27 @@ const devices = [
execute(device, actions, callback);
},
},

// ELKO
{
zigbeeModel: ['ElkoDimmerZHA'],
model: '316GLEDRF',
vendor: 'ELKO',
description: 'ZigBee in-wall smart dimmer',
supports: 'on/off, brightness',
fromZigbee: [fz.brightness, fz.ignore_onoff_change, fz.state],
toZigbee: [tz.on_off, tz.light_brightness, tz.ignore_transition],
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.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];

execute(device, actions, callback);
},
},
];

module.exports = devices.map((device) =>
Expand Down

0 comments on commit 0ed0876

Please sign in to comment.