Curtain motor TS0601 _TZE200_clm4gdw4 #19635
Lechuuuuuu
started this conversation in
Devices
Replies: 1 comment 3 replies
-
For anyone stumbling into this, and ending here from google - this definition should do the trick: const {} = require('zigbee-herdsman-converters/lib/modernExtend');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const definition = {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE200_clm4gdw4',
},
],
model: 'Z100',
vendor: 'LV-Tron',
description: 'Smart Curtain Motor',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
configure: tuya.configureMagicPacket,
exposes: [
e.cover_position().setAccess('position', ea.STATE_SET),
e.enum('motor_direction', ea.STATE_SET, ['normal', 'reversed']).withDescription('Set the motor direction'),
],
meta: {
tuyaDatapoints: [
[1, 'state', tuya.valueConverterBasic.lookup({'OPEN': tuya.enum(2), 'STOP': tuya.enum(1), 'CLOSE': tuya.enum(0)})],
[2, 'position', tuya.valueConverter.coverPosition],
[3, 'position', tuya.valueConverter.raw],
[5, 'motor_direction', tuya.valueConverterBasic.lookup({'normal': false, 'reversed': true})],
],
},
};
module.exports = definition; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running Zigbee2MQTT on Home Assistant ( latest version ). it is possible to add this device ?
I suppose that is the same as other covers LINK it may work. Anybody has tried this model before?
Beta Was this translation helpful? Give feedback.
All reactions