UNPKG

zigbee-herdsman-converters

Version:

Collection of device converters to be used with zigbee-herdsman

48 lines (46 loc) 2.13 kB
const exposes = require('../lib/exposes'); const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee}; const reporting = require('../lib/reporting'); const extend = require('../lib/extend'); const e = exposes.presets; module.exports = [ { zigbeeModel: ['LXEK-5'], model: 'HR-C99C-Z-C045', vendor: 'ADEO', description: 'RGB CTT LEXMAN ENKI remote control', fromZigbee: [fz.battery, fz.command_on, fz.command_off, fz.command_step, fz.command_stop, fz.command_step_color_temperature, fz.command_step_hue, fz.command_step_saturation, fz.color_stop_raw, fz.scenes_recall_scene_65024, fz.ignore_genOta], toZigbee: [], exposes: [e.battery(), e.action(['on', 'off', 'scene_1', 'scene_2', 'scene_3', 'scene_4', 'color_saturation_step_up', 'color_saturation_step_down', 'color_stop', 'color_hue_step_up', 'color_hue_step_down', 'color_temperature_step_up', 'color_temperature_step_down', 'brightness_step_up', 'brightness_step_down', 'brightness_stop'])], configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(1); const binds = ['genBasic', 'genOnOff', 'genPowerCfg', 'lightingColorCtrl', 'genLevelCtrl']; await reporting.bind(endpoint, coordinatorEndpoint, binds); await reporting.batteryPercentageRemaining(endpoint); }, }, { zigbeeModel: ['LXEK-1'], model: '9CZA-A806ST-Q1A', vendor: 'ADEO', description: 'ENKI LEXMAN E27 LED RGBW', extend: extend.light_onoff_brightness_colortemp_color(), }, { zigbeeModel: ['LXEK-4'], model: '9CZA-M350ST-Q1A', vendor: 'ADEO', description: 'ENKI LEXMAN GU-10 LED RGBW', extend: extend.light_onoff_brightness_colortemp_color(), }, { zigbeeModel: ['LXEK-2'], model: '9CZA-G1521-Q1A', vendor: 'ADEO', description: 'ENKI Lexman E27 14W to 100W LED RGBW', extend: extend.light_onoff_brightness_colortemp_color(), }, ];