Skip to content

Commit

Permalink
added samsung smartthings plug (Koenkk#286)
Browse files Browse the repository at this point in the history
* added samsung smartthings plug

* Update fromZigbee.js

* Update devices.js

* Update toZigbee.js

* Update toZigbee.js

* didn't need custom toZigbee converter

* didn't need custom toZigbee converter
  • Loading branch information
marc-gist authored and qosmio committed Dec 25, 2019
1 parent 503b12f commit a9726c5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -7372,6 +7372,25 @@ const devices = [
execute(device, actions, callback);
},
},
{
zigbeeModel: ['outlet'],
model: 'IM6001-OTP05',
vendor: 'SmartThings',
description: 'Outlet',
supports: 'on/off',
fromZigbee: [fz.state, fz.ignore_onoff_report],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];

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

// Trust
{
Expand Down

0 comments on commit a9726c5

Please sign in to comment.