zigbee-herdsman-converters
Version:
Collection of device converters to be used with zigbee-herdsman
18 lines (16 loc) • 558 B
JavaScript
const reporting = require('../lib/reporting');
const extend = require('../lib/extend');
module.exports = [
{
zigbeeModel: ['Socket Switch'],
model: 'ZCC-3500',
vendor: 'KlikAanKlikUit',
description: 'Zigbee socket switch',
extend: extend.switch(),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
},
];