-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Link
Database entry
{"id":2,"type":"EndDevice","ieeeAddr":"0xa4c138efcba0f8a0","nwkAddr":64922,"manufId":4417,"manufName":"_TZE284_koxaopnk","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0,60672],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65487":14400,"65503":"d\u0000�/g�\n�/\u0011�\r�/\u0011�\u000f�/\u0011�\u0011�/\u0011�?�/\u0011�@�/\u0011�@�/\u0011�A�/\u0011\u0018L�/\u0011!Y�/\u0011","65506":56,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE284_koxaopnk","powerSource":3,"zclVersion":3,"appVersion":77,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":77,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":1946894323},"lastSeen":1749476818334}
Zigbee2MQTT version
2.4.0
Comments
The truth is, I'm new to all of this. This is my first device. After many attempts, I managed to get it to connect with the following code, and then I added the details.
External definition
import {access as ea, presets as e, options} from "zigbee-herdsman-converters/lib/exposes";
import * as tuya from "zigbee-herdsman-converters/lib/tuya";
export default {
fingerprint: tuya.fingerprint("TS0601", ["_TZE284_koxaopnk"]),
model: "ZC-LS02",
vendor: "Tuya",
description: "Moes Zigbee Roller Blind (ZC-LS02)",
onEvent: tuya.onEvent(),
configure: tuya.configureMagicPacket,
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
exposes: [
e.cover_position().setAccess("position", ea.STATE_SET),
e.battery(),
],
meta: {
tuyaDatapoints: [
[
1,
"state",
tuya.valueConverterBasic.lookup({
OPEN: tuya.enum(0),
STOP: tuya.enum(1),
CLOSE: tuya.enum(2),
}),
],
[2, "position", tuya.valueConverter.coverPosition],
[3, "position", tuya.valueConverter.raw],
[
5,
"motor_direction",
tuya.valueConverterBasic.lookup({
normal: tuya.enum(0),
reversed: tuya.enum(1),
}),
],
[101, "battery", tuya.valueConverter.raw],
],
},
};What does/doesn't work with the external definition?
The problem is that the button that appears in HomeAssistant (HA) works the other way around. When the blind is open, the HA home button marks it as closed and vice versa. The same goes for the up and down button. It also doesn't show the battery level. It only did this once. Could you help me find out what I'm doing wrong? I'm very new to all of this.