UNPKG

zigbee-herdsman-converters

Version:

Collection of device converters to be used with zigbee-herdsman

19 lines (17 loc) 719 B
const reporting = require('../lib/reporting'); const extend = require('../lib/extend'); module.exports = [ { zigbeeModel: ['Lamp_01'], model: 'KS-SM001', vendor: 'Ksentry Electronics', description: '[Zigbee OnOff Controller](http://ksentry.manufacturer.globalsources.com/si/6008837134660'+ '/pdtl/ZigBee-module/1162731630/zigbee-on-off-controller-modules.htm)', extend: extend.switch(), configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(11); await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']); await reporting.onOff(endpoint); }, }, ];