UNPKG

zigbee-herdsman-converters

Version:

Collection of device converters to be used with zigbee-herdsman

31 lines (29 loc) 1.2 kB
const reporting = require('../lib/reporting'); const extend = require('../lib/extend'); module.exports = [ { zigbeeModel: ['BoxDIM2 98425031', '98425031', 'BoxDIMZ 98425031'], model: '98425031', vendor: 'Nordtronic', description: 'Box Dimmer 2.0', extend: extend.light_onoff_brightness({noConfigure: true}), configure: async (device, coordinatorEndpoint, logger) => { await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger); const endpoint = device.getEndpoint(1); await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']); await reporting.onOff(endpoint); }, }, { zigbeeModel: ['BoxRelayZ 98423051'], model: '98423051', vendor: 'Nordtronic', description: 'Zigbee switch 400W', extend: extend.switch(), configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(1) || device.getEndpoint(3); await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']); await reporting.onOff(endpoint); }, }, ];