UNPKG

zigbee-herdsman-converters

Version:

Collection of device converters to be used with zigbee-herdsman

27 lines (25 loc) 915 B
const exposes = require('../lib/exposes'); const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee}; const tz = require('../converters/toZigbee'); const e = exposes.presets; const ea = exposes.access; module.exports = [ { zigbeeModel: ['Rollershade QdR'], model: 'QZR-ZIG2400', vendor: 'Qmotion', description: '5 channel remote', fromZigbee: [fz.identify, fz.cover_position_tilt], exposes: [e.action(['identify']), exposes.numeric('position', ea.STATE)], toZigbee: [], }, { zigbeeModel: ['Honeycomb Internal Battery', 'Rollershade Internal Battery'], model: 'HDM40PV620', vendor: 'Qmotion', description: 'Motorized roller blind', fromZigbee: [fz.identify], toZigbee: [tz.cover_state, tz.cover_position_tilt], exposes: [e.cover_position()], }, ];