You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered code problems in the process of adding, but after my reassembly, it ran successfully, but I don't know whether my assembly is correct, please check
1、The motor I bought from the same merchant has sent me two products, one can add (_TZE200_5zbp6j0u).
One cannot be added (_TZE200_feolm6rk)
【I took a piece of this code,】 exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), exposes.composite('options', 'options') .withFeature(exposes.numeric('motor_speed', ea.STATE_SET) .withValueMin(0) .withValueMax(255) .withDescription('Motor speed'))],
3、And then we run it again, run it successfully, identify the device successfully
【I did not know whether the code I changed was correct, nor did I know what the consequences would be if I changed the "exposes" code,
Big Brother, can you add my device, so I can delete my converter,
Here is my entire code,
Oh, and I changed the head of my quote, too.】
I encountered code problems in the process of adding, but after my reassembly, it ran successfully, but I don't know whether my assembly is correct, please check
1、The motor I bought from the same merchant has sent me two products, one can add (_TZE200_5zbp6j0u).
One cannot be added (_TZE200_feolm6rk)
2、I just found the link "https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/tuya.ts", the following code
{ zigbeeModel: [ 'owvfni3\u0000', 'owvfni3', 'u1rkty3', 'aabybja', // Curtain motors 'mcdj3aq', 'mcdj3aq\u0000', // Tubular motors ], fingerprint: [ // Curtain motors: {modelID: 'TS0601', manufacturerName: '_TZE200_5zbp6j0u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nkoabg8w'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xuzcvlku'}, {modelID: 'TS0601', manufacturerName: '_TZE200_4vobcgd3'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nogaemzt'}, {modelID: 'TS0601', manufacturerName: '_TZE200_r0jdjrvi'}, {modelID: 'TS0601', manufacturerName: '_TZE200_pk0sfzvr'}, {modelID: 'TS0601', manufacturerName: '_TZE200_fdtjuw7u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_zpzndjez'}, {modelID: 'TS0601', manufacturerName: '_TZE200_wmcdj3aq'}, {modelID: 'TS0601', manufacturerName: '_TZE200_cowvfni3'}, {modelID: 'TS0601', manufacturerName: '_TZE200_rddyvrci'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nueqqe6k'}, {modelID: 'TS0601', manufacturerName: '_TZE200_bqcqqjpb'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xaabybja'}, {modelID: 'TS0601', manufacturerName: '_TZE200_rmymn92d'}, {modelID: 'TS0601', manufacturerName: '_TZE200_3i3exuay'}, {modelID: 'TS0601', manufacturerName: '_TZE200_tvrvdj6o'}, {modelID: 'zo2pocs\u0000', manufacturerName: '_TYST11_fzo2pocs'}, {modelID: 'TS0601', manufacturerName: '_TZE200_cf1sl3tj'}, {modelID: 'TS0601', manufacturerName: '_TZE200_b2u1drdv'}, {modelID: 'TS0601', manufacturerName: '_TZE200_ol5jlkkr'}, {modelID: 'TS0601', manufacturerName: '_TZE204_guvc7pdy'}, // Roller blinds: {modelID: 'TS0601', manufacturerName: '_TZE200_fctwhugx'}, {modelID: 'TS0601', manufacturerName: '_TZE200_hsgrhjpf'}, {modelID: 'TS0601', manufacturerName: '_TZE200_pw7mji0l'}, // Window pushers: {modelID: 'TS0601', manufacturerName: '_TZE200_g5wdnuow'}, // Tubular motors: {modelID: 'TS0601', manufacturerName: '_TZE200_5sbebbzs'}, {modelID: 'TS0601', manufacturerName: '_TZE200_udank5zs'}, {modelID: 'TS0601', manufacturerName: '_TZE200_zuz7f94z'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nv6nxo0c'}, {modelID: 'TS0601', manufacturerName: '_TZE200_3ylew7b4'}, {modelID: 'TS0601', manufacturerName: '_TZE200_llm0epxg'}, {modelID: 'TS0601', manufacturerName: '_TZE200_n1aauwb4'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xu4a5rhj'}, {modelID: 'TS0601', manufacturerName: '_TZE204_r0jdjrvi'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nw1r9hp6'}, ], model: 'TS0601_cover_1', vendor: 'TuYa', description: 'Curtain motor/roller blind motor/window pusher/tubular motor', whiteLabel: [ {vendor: 'Yushun', model: 'YS-MT750'}, {vendor: 'Zemismart', model: 'ZM79E-DT'}, {vendor: 'Binthen', model: 'BCM100D'}, {vendor: 'Binthen', model: 'CV01A'}, {vendor: 'Zemismart', model: 'M515EGB'}, {vendor: 'OZ Smart Things', model: 'ZM85EL-1Z'}, {vendor: 'TuYa', model: 'M515EGZT'}, {vendor: 'TuYa', model: 'DT82LEMA-1.2N'}, {vendor: 'TuYa', model: 'ZD82TN', description: 'Curtain motor'}, {vendor: 'Larkkey', model: 'ZSTY-SM-1SRZG-EU'}, {vendor: 'Zemismart', model: 'AM43', description: 'Roller blind motor'}, {vendor: 'Zemismart', model: 'M2805EGBZTN', description: 'Tubular motor'}, {vendor: 'Zemismart', model: 'BCM500DS-TYZ', description: 'Curtain motor'}, {vendor: 'A-OK', model: 'AM25', description: 'Tubular motor'}, {vendor: 'Alutech', model: 'AM/R-Sm', description: 'Tubular motor'}, tuya.whitelabel('Shenzhen Golden Security Technology', 'GM46', 'Curtain motor', ['_TZE204_guvc7pdy']), tuya.whitelabel('Zemismart', 'ZM85EL-2Z', 'Roman Rod I type U curtains track', ['_TZE200_cf1sl3tj', '_TZE200_nw1r9hp6']), ], fromZigbee: [legacy.fromZigbee.tuya_cover, fz.ignore_basic_report], toZigbee: [legacy.toZigbee.tuya_cover_control, legacy.toZigbee.tuya_cover_options], exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), e.composite('options', 'options', ea.STATE_SET) .withFeature(e.numeric('motor_speed', ea.STATE_SET) .withValueMin(0).withValueMax(255).withDescription('Motor speed')) .withFeature(e.binary('reverse_direction', ea.STATE_SET, true, false) .withDescription('Reverse the motor direction'))], },
And I changed it to the code that I think I can use, and I added my device, and here is the code that I changed
.................. fingerprint: [ // Curtain motors: !!!!!!!!I'm going to add my device here!!!!!!!!I {modelID: 'TS0601', manufacturerName: '_TZE200_feolm6rk'},//Add here {modelID: 'TS0601', manufacturerName: '_TZE200_5zbp6j0u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nkoabg8w'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xuzcvlku'}, ..................
Just when I thought it was done, it ended perfectly, I was rebooting, and there was a mistake!
2、And then I look for the wrong problem, fix it,
I found this link, “https://github.com/Koenkk/zigbee-herdsman-converters/blob/5c069a34beecc9250d642d02e84f2808af1b4fae/devices/tuya.js” The following code, I did not refer to this code directly, I think this code device is too little, not as much as the code device just
{ zigbeeModel: [ 'owvfni3\u0000', 'owvfni3', 'u1rkty3', 'aabybja', // Curtain motors 'mcdj3aq', 'mcdj3aq\u0000', // Tubular motors ], fingerprint: [ // Curtain motors: {modelID: 'TS0601', manufacturerName: '_TZE200_5zbp6j0u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nkoabg8w'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xuzcvlku'}, {modelID: 'TS0601', manufacturerName: '_TZE200_4vobcgd3'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nogaemzt'}, {modelID: 'TS0601', manufacturerName: '_TZE200_pk0sfzvr'}, {modelID: 'TS0601', manufacturerName: '_TZE200_fdtjuw7u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_zpzndjez'}, {modelID: 'TS0601', manufacturerName: '_TZE200_wmcdj3aq'}, {modelID: 'TS0601', manufacturerName: '_TZE200_cowvfni3'}, {modelID: 'TS0601', manufacturerName: '_TZE200_rddyvrci'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nueqqe6k'}, {modelID: 'zo2pocs\u0000', manufacturerName: '_TYST11_fzo2pocs'}, // Roller blinds: {modelID: 'TS0601', manufacturerName: '_TZE200_sbordckq'}, {modelID: 'TS0601', manufacturerName: '_TZE200_fctwhugx'}, {modelID: 'TS0601', manufacturerName: '_TZE200_zah67ekd'}, // Window pushers: {modelID: 'TS0601', manufacturerName: '_TZE200_g5wdnuow'}, // Tubular motors: {modelID: 'TS0601', manufacturerName: '_TZE200_fzo2pocs'}, ], model: 'TS0601_cover', vendor: 'TuYa', description: 'Curtain motor/roller blind motor/window pusher/tubular motor', whiteLabel: [ {vendor: 'Yushun', model: 'YS-MT750'}, {vendor: 'Zemismart', model: 'ZM79E-DT'}, {vendor: 'Binthen', model: 'BCM100D'}, {vendor: 'Binthen', model: 'CV01A'}, {vendor: 'Zemismart', model: 'M515EGB'}, {vendor: 'Tuya', model: 'M515EGZT'}, {vendor: 'TuYa', model: 'DT82LEMA-1.2N'}, {vendor: 'Moes', model: 'AM43-0.45/40-ES-EB'}, {vendor: 'Larkkey', model: 'ZSTY-SM-1SRZG-EU'}, {vendor: 'Zemismart', model: 'ZM25TQ', description: 'Tubular motor'}, {vendor: 'Zemismart', model: 'AM43', description: 'Roller blind motor'}, ], fromZigbee: [fz.tuya_cover, fz.ignore_basic_report], toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options], exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), exposes.composite('options', 'options') .withFeature(exposes.numeric('motor_speed', ea.STATE_SET) .withValueMin(0) .withValueMax(255) .withDescription('Motor speed'))], },
【I took a piece of this code,】
exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), exposes.composite('options', 'options') .withFeature(exposes.numeric('motor_speed', ea.STATE_SET) .withValueMin(0) .withValueMax(255) .withDescription('Motor speed'))],
【And replace it with the code that we just did】
{ zigbeeModel: [ 'owvfni3\u0000', 'owvfni3', 'u1rkty3', 'aabybja', // Curtain motors 'mcdj3aq', 'mcdj3aq\u0000', // Tubular motors ], fingerprint: [ // Curtain motors: {modelID: 'TS0601', manufacturerName: '_TZE200_feolm6rk'},//So here's the code that I added to my device that I modified {modelID: 'TS0601', manufacturerName: '_TZE200_5zbp6j0u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nkoabg8w'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xuzcvlku'}, {modelID: 'TS0601', manufacturerName: '_TZE200_4vobcgd3'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nogaemzt'}, {modelID: 'TS0601', manufacturerName: '_TZE200_r0jdjrvi'}, {modelID: 'TS0601', manufacturerName: '_TZE200_pk0sfzvr'}, {modelID: 'TS0601', manufacturerName: '_TZE200_fdtjuw7u'}, {modelID: 'TS0601', manufacturerName: '_TZE200_zpzndjez'}, {modelID: 'TS0601', manufacturerName: '_TZE200_wmcdj3aq'}, {modelID: 'TS0601', manufacturerName: '_TZE200_cowvfni3'}, {modelID: 'TS0601', manufacturerName: '_TZE200_rddyvrci'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nueqqe6k'}, {modelID: 'TS0601', manufacturerName: '_TZE200_bqcqqjpb'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xaabybja'}, {modelID: 'TS0601', manufacturerName: '_TZE200_rmymn92d'}, {modelID: 'TS0601', manufacturerName: '_TZE200_3i3exuay'}, {modelID: 'TS0601', manufacturerName: '_TZE200_tvrvdj6o'}, {modelID: 'zo2pocs\u0000', manufacturerName: '_TYST11_fzo2pocs'}, {modelID: 'TS0601', manufacturerName: '_TZE200_cf1sl3tj'}, {modelID: 'TS0601', manufacturerName: '_TZE200_b2u1drdv'}, {modelID: 'TS0601', manufacturerName: '_TZE200_ol5jlkkr'}, {modelID: 'TS0601', manufacturerName: '_TZE204_guvc7pdy'}, // Roller blinds: {modelID: 'TS0601', manufacturerName: '_TZE200_fctwhugx'}, {modelID: 'TS0601', manufacturerName: '_TZE200_hsgrhjpf'}, {modelID: 'TS0601', manufacturerName: '_TZE200_pw7mji0l'}, // Window pushers: {modelID: 'TS0601', manufacturerName: '_TZE200_g5wdnuow'}, // Tubular motors: {modelID: 'TS0601', manufacturerName: '_TZE200_5sbebbzs'}, {modelID: 'TS0601', manufacturerName: '_TZE200_udank5zs'}, {modelID: 'TS0601', manufacturerName: '_TZE200_zuz7f94z'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nv6nxo0c'}, {modelID: 'TS0601', manufacturerName: '_TZE200_3ylew7b4'}, {modelID: 'TS0601', manufacturerName: '_TZE200_llm0epxg'}, {modelID: 'TS0601', manufacturerName: '_TZE200_n1aauwb4'}, {modelID: 'TS0601', manufacturerName: '_TZE200_xu4a5rhj'}, {modelID: 'TS0601', manufacturerName: '_TZE204_r0jdjrvi'}, {modelID: 'TS0601', manufacturerName: '_TZE200_nw1r9hp6'}, ], model: 'TS0601_cover_1', vendor: 'TuYa', description: 'Curtain motor/roller blind motor/window pusher/tubular motor', whiteLabel: [ {vendor: 'Yushun', model: 'YS-MT750'}, {vendor: 'Zemismart', model: 'ZM79E-DT'}, {vendor: 'Binthen', model: 'BCM100D'}, {vendor: 'Binthen', model: 'CV01A'}, {vendor: 'Zemismart', model: 'M515EGB'}, {vendor: 'OZ Smart Things', model: 'ZM85EL-1Z'}, {vendor: 'TuYa', model: 'M515EGZT'}, {vendor: 'TuYa', model: 'DT82LEMA-1.2N'}, {vendor: 'TuYa', model: 'ZD82TN', description: 'Curtain motor'}, {vendor: 'Larkkey', model: 'ZSTY-SM-1SRZG-EU'}, {vendor: 'Zemismart', model: 'AM43', description: 'Roller blind motor'}, {vendor: 'Zemismart', model: 'M2805EGBZTN', description: 'Tubular motor'}, {vendor: 'Zemismart', model: 'BCM500DS-TYZ', description: 'Curtain motor'}, {vendor: 'A-OK', model: 'AM25', description: 'Tubular motor'}, {vendor: 'Alutech', model: 'AM/R-Sm', description: 'Tubular motor'}, tuya.whitelabel('Shenzhen Golden Security Technology', 'GM46', 'Curtain motor', ['_TZE204_guvc7pdy']), tuya.whitelabel('Zemismart', 'ZM85EL-2Z', 'Roman Rod I type U curtains track', ['_TZE200_cf1sl3tj', '_TZE200_nw1r9hp6']), ], fromZigbee: [legacy.fromZigbee.tuya_cover, fz.ignore_basic_report], toZigbee: [legacy.toZigbee.tuya_cover_control, legacy.toZigbee.tuya_cover_options], //Here is the code I replaced exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), exposes.composite('options', 'options') .withFeature(exposes.numeric('motor_speed', ea.STATE_SET) .withValueMin(0) .withValueMax(255) .withDescription('Motor speed'))], },
3、And then we run it again, run it successfully, identify the device successfully
【I did not know whether the code I changed was correct, nor did I know what the consequences would be if I changed the "exposes" code,
Big Brother, can you add my device, so I can delete my converter,
Here is my entire code,
Oh, and I changed the head of my quote, too.】
Here is my entire code
‘
//注释
/*
zigbee-herdsman-converters-15.13.0
文件是我在
https://github.com/Koenkk/zigbee-herdsman-converters
这里下载的
下载完成之后,
解压放到zigbee-herdsman-converters-15.13.0替换这个文件夹
在官方支持的列表内查询
https://www.zigbee2mqtt.io/supported-devices/#v=TuYa
这个支持的设备很多
https://github.com/Koenkk/zigbee-herdsman-converters/blob/5c069a34beecc9250d642d02e84f2808af1b4fae/devices/tuya.js
这个使用框架
https://github.com/Koenkk/zigbee-herdsman-converters
论坛教程
https://bbs.hassbian.com/thread-17618-1-1.html
https://bbs.hassbian.com/thread-13030-1-9.html
官方文档
https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#_3-adding-converter-s-for-your-device
*/
//注释
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const legacy = require('zigbee-herdsman-converters/lib/legacy');
const fz = {...require('zigbee-herdsman-converters/converters/fromZigbee'), legacy: legacy.fromZigbee};
const tz = {...require('zigbee-herdsman-converters/converters/toZigbee'), legacy: legacy.toZigbee};
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
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 libColor = require('zigbee-herdsman-converters/lib/color');
const utils = require('zigbee-herdsman-converters/lib/utils');
const zosung = require('zigbee-herdsman-converters/lib/zosung');
const fzZosung = zosung.fzZosung;
const tzZosung = zosung.tzZosung;
const ez = zosung.presetsZosung;
const globalStore = require('zigbee-herdsman-converters/lib/store');
const {ColorMode, colorModeLookup} = require('zigbee-herdsman-converters/lib/constants');
const definition = [
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_h2rctifa','_TZE200_2pzj2fcs']),
model: 'TS0601_switch_6_gang_设备型号不是这个型号',
vendor: 'TuYa_厂家品牌',
description: '6组开关_功能描述',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
exposes: [
tuya.exposes.switch().withEndpoint('l1'),
tuya.exposes.switch().withEndpoint('l2'),
tuya.exposes.switch().withEndpoint('l3'),
tuya.exposes.switch().withEndpoint('l4'),
tuya.exposes.switch().withEndpoint('l5'),
tuya.exposes.switch().withEndpoint('l6'),
tuya.exposes.backlightModeOffOn(),//背光但是无效的可以删除
],
endpoint: (device) => {
return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1, 'l5': 1, 'l6': 1};
},
meta: {
multiEndpoint: true,
tuyaDatapoints: [
[1, 'state_l1', tuya.valueConverter.onOff],
[2, 'state_l2', tuya.valueConverter.onOff],
[3, 'state_l3', tuya.valueConverter.onOff],
[4, 'state_l4', tuya.valueConverter.onOff],
[5, 'state_l5', tuya.valueConverter.onOff],
[6, 'state_l6', tuya.valueConverter.onOff],
[7, 'backlight_mode', tuya.valueConverter.onOff],//背光但是无效的可以删除
],
},
},
//下面是添加阳台纱帘
{
zigbeeModel: [
'owvfni3\u0000', 'owvfni3', 'u1rkty3', 'aabybja', // Curtain motors
'mcdj3aq', 'mcdj3aq\u0000', // Tubular motors
],
fingerprint: [
// Curtain motors:
{modelID: 'TS0601', manufacturerName: '_TZE200_feolm6rk'},
{modelID: 'TS0601', manufacturerName: '_TZE200_5zbp6j0u'},
{modelID: 'TS0601', manufacturerName: '_TZE200_nkoabg8w'},
{modelID: 'TS0601', manufacturerName: '_TZE200_xuzcvlku'},
{modelID: 'TS0601', manufacturerName: '_TZE200_4vobcgd3'},
{modelID: 'TS0601', manufacturerName: '_TZE200_nogaemzt'},
{modelID: 'TS0601', manufacturerName: '_TZE200_r0jdjrvi'},
{modelID: 'TS0601', manufacturerName: '_TZE200_pk0sfzvr'},
{modelID: 'TS0601', manufacturerName: '_TZE200_fdtjuw7u'},
{modelID: 'TS0601', manufacturerName: '_TZE200_zpzndjez'},
{modelID: 'TS0601', manufacturerName: '_TZE200_wmcdj3aq'},
{modelID: 'TS0601', manufacturerName: '_TZE200_cowvfni3'},
{modelID: 'TS0601', manufacturerName: '_TZE200_rddyvrci'},
{modelID: 'TS0601', manufacturerName: '_TZE200_nueqqe6k'},
{modelID: 'TS0601', manufacturerName: '_TZE200_bqcqqjpb'},
{modelID: 'TS0601', manufacturerName: '_TZE200_xaabybja'},
{modelID: 'TS0601', manufacturerName: '_TZE200_rmymn92d'},
{modelID: 'TS0601', manufacturerName: '_TZE200_3i3exuay'},
{modelID: 'TS0601', manufacturerName: '_TZE200_tvrvdj6o'},
{modelID: 'zo2pocs\u0000', manufacturerName: '_TYST11_fzo2pocs'},
{modelID: 'TS0601', manufacturerName: '_TZE200_cf1sl3tj'},
{modelID: 'TS0601', manufacturerName: '_TZE200_b2u1drdv'},
{modelID: 'TS0601', manufacturerName: '_TZE200_ol5jlkkr'},
{modelID: 'TS0601', manufacturerName: '_TZE204_guvc7pdy'},
// Roller blinds:
{modelID: 'TS0601', manufacturerName: '_TZE200_fctwhugx'},
{modelID: 'TS0601', manufacturerName: '_TZE200_hsgrhjpf'},
{modelID: 'TS0601', manufacturerName: '_TZE200_pw7mji0l'},
// Window pushers:
{modelID: 'TS0601', manufacturerName: '_TZE200_g5wdnuow'},
// Tubular motors:
{modelID: 'TS0601', manufacturerName: '_TZE200_5sbebbzs'},
{modelID: 'TS0601', manufacturerName: '_TZE200_udank5zs'},
{modelID: 'TS0601', manufacturerName: '_TZE200_zuz7f94z'},
{modelID: 'TS0601', manufacturerName: '_TZE200_nv6nxo0c'},
{modelID: 'TS0601', manufacturerName: '_TZE200_3ylew7b4'},
{modelID: 'TS0601', manufacturerName: '_TZE200_llm0epxg'},
{modelID: 'TS0601', manufacturerName: '_TZE200_n1aauwb4'},
{modelID: 'TS0601', manufacturerName: '_TZE200_xu4a5rhj'},
{modelID: 'TS0601', manufacturerName: '_TZE204_r0jdjrvi'},
{modelID: 'TS0601', manufacturerName: '_TZE200_nw1r9hp6'},
],
model: 'TS0601_cover_1',
vendor: 'TuYa',
description: 'Curtain motor/roller blind motor/window pusher/tubular motor',
whiteLabel: [
{vendor: 'Yushun', model: 'YS-MT750'},
{vendor: 'Zemismart', model: 'ZM79E-DT'},
{vendor: 'Binthen', model: 'BCM100D'},
{vendor: 'Binthen', model: 'CV01A'},
{vendor: 'Zemismart', model: 'M515EGB'},
{vendor: 'OZ Smart Things', model: 'ZM85EL-1Z'},
{vendor: 'TuYa', model: 'M515EGZT'},
{vendor: 'TuYa', model: 'DT82LEMA-1.2N'},
{vendor: 'TuYa', model: 'ZD82TN', description: 'Curtain motor'},
{vendor: 'Larkkey', model: 'ZSTY-SM-1SRZG-EU'},
{vendor: 'Zemismart', model: 'AM43', description: 'Roller blind motor'},
{vendor: 'Zemismart', model: 'M2805EGBZTN', description: 'Tubular motor'},
{vendor: 'Zemismart', model: 'BCM500DS-TYZ', description: 'Curtain motor'},
{vendor: 'A-OK', model: 'AM25', description: 'Tubular motor'},
{vendor: 'Alutech', model: 'AM/R-Sm', description: 'Tubular motor'},
tuya.whitelabel('Shenzhen Golden Security Technology', 'GM46', 'Curtain motor', ['_TZE204_guvc7pdy']),
tuya.whitelabel('Zemismart', 'ZM85EL-2Z', 'Roman Rod I type U curtains track', ['_TZE200_cf1sl3tj', '_TZE200_nw1r9hp6']),
],
fromZigbee: [legacy.fromZigbee.tuya_cover, fz.ignore_basic_report],
toZigbee: [legacy.toZigbee.tuya_cover_control, legacy.toZigbee.tuya_cover_options],
exposes: [
e.cover_position().setAccess('position', ea.STATE_SET),
exposes.composite('options', 'options')
.withFeature(exposes.numeric('motor_speed', ea.STATE_SET)
.withValueMin(0)
.withValueMax(255)
.withDescription('Motor speed'))],
},
]
module.exports = definition;
’
The text was updated successfully, but these errors were encountered: