Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New device support]: Tuya curtain motor LS82 (TZE200_xu4a5rhj) #17506

Closed
dpbarinov opened this issue Apr 30, 2023 · 2 comments
Closed

[New device support]: Tuya curtain motor LS82 (TZE200_xu4a5rhj) #17506

dpbarinov opened this issue Apr 30, 2023 · 2 comments
Labels
new device support New device support request

Comments

@dpbarinov
Copy link

dpbarinov commented Apr 30, 2023

Link

https://sl.aliexpress.ru/p?key=bhP0wmZ

Database entry

{"id":33,"type":"Router","ieeeAddr":"0xa4c138a3c4925789","nwkAddr":32667,"manufId":4417,"manufName":"_TZE200_xu4a5rhj","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"!\u0000\u0000\u0000e"\u0000\u0000\u0000\u0012�Av+\u0013/-\u0000\u0000e0-\u0000\u0000\u0012","65506":54,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE200_xu4a5rhj","powerSource":1,"zclVersion":3,"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-708457359},"lastSeen":1682855921034,"defaultSendRequestWhen":"immediate"}

Comments

Device pairing but not supported

External converter

No response

Supported color modes

No response

Color temperature range

No response

@dpbarinov dpbarinov added the new device support New device support request label Apr 30, 2023
@dpbarinov
Copy link
Author

Works good with following converter

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');

const definition = {
// Since a lot of TuYa devices use the same modelID, but use different datapoints
// it's necessary to provide a fingerprint instead of a zigbeeModel
fingerprint: [
{
// The model ID from: Device with modelID 'TS0601' is not supported
// You may need to add \u0000 at the end of the name in some cases
modelID: 'TS0601',
// The manufacturer name from: Device with modelID 'TS0601' is not supported.
manufacturerName: '_TZE200_xu4a5rhj',
},
],
model: 'TS0601_LS82',
vendor: 'TuYa',
description: 'Tuya curtain motor',
fromZigbee: [fz.tuya_cover, fz.ignore_basic_report],
toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options],
onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
configure: tuya.configureMagicPacket,
exposes: [
e.cover_position().setAccess('position', ea.STATE_SET),
exposes.composite('options', 'options', ea.STATE_SET)
.withFeature(exposes.numeric('motor_speed', ea.STATE_SET)
.withValueMin(0).withValueMax(255).withDescription('Motor speed'))
.withFeature(exposes.binary('reverse_direction', ea.STATE_SET, true, false)
.withDescription('Reverse the motor direction'))],
meta: {
// All datapoints go in here
tuyaDatapoints: [
],
},
};

module.exports = definition;

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Apr 30, 2023
@Koenkk
Copy link
Owner

Koenkk commented Apr 30, 2023

Added, thanks!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

2 participants