Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed May 24, 2023
1 parent fcb9c1e commit 16ba1db
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/devices/led_trading.js
Expand Up @@ -2,6 +2,8 @@ const reporting = require('../lib/reporting');
const extend = require('../lib/extend');
const exposes = require('../lib/exposes');
const utils = require('../lib/utils');
const fz = require('../converters/fromZigbee');
const tz = require('../converters/toZigbee');
const e = exposes.presets;

const fzLocal = {
Expand Down Expand Up @@ -66,4 +68,18 @@ module.exports = [
await reporting.bind(device.getEndpoint(5), coordinatorEndpoint, ['genOnOff']);
},
},
{
zigbeeModel: ['HK-ZCC-ZLL-A'],
model: '9135',
vendor: 'LED Trading',
description: 'Curtain motor controller',
fromZigbee: [fz.cover_position_tilt],
toZigbee: [tz.cover_state, tz.cover_position_tilt],
exposes: [e.cover_position()],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['closuresWindowCovering']);
await reporting.currentPositionLiftPercentage(endpoint);
},
},
];

0 comments on commit 16ba1db

Please sign in to comment.