Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.77k stars 1.64k forks source link

[New device support]: UNSH Tuya ZigBee Smart Socket Switch #23630

Open brvhprince opened 1 month ago

brvhprince commented 1 month ago

Link

https://www.aliexpress.com/item/1005006991694847.html

Database entry

{"id":5,"type":"Router","ieeeAddr":"0xa4c1384f8cefa442","nwkAddr":37762,"manufId":4417,"manufName":"_TZE204_mvtclclq","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":"!\u0007\u0000\u0000e\"\u0007\u0000\u0000\u0012�\u0007\u0000\u0000e�\u0007\u0000\u0000\u0012�\u0002\u0000\u0000\u0012�\u0003\u0000\u0000e�\u0003\u0000\u0000\u0012I\u0004\u0000\u0000e","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","appVersion":74,"manufacturerName":"_TZE204_mvtclclq","zclVersion":3,"modelId":"TS0601","powerSource":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1723754422454}

Comments

I followed the support here then here then I got stuck at finding the data points and their meaning (I have no tuya gateway).

Data from logs that maybe useful

[2024-08-15 20:37:19] debug:    z2m: Received Zigbee message from 'Wall Socket', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,49],"type":"Buffer"},"datatype":2,"dp":21}],"seq":47616}' from endpoint 1 with groupID 0
[2024-08-15 20:37:19] debug:    zhc:tuya: Datapoint 21 not defined for '_TZE204_mvtclclq' with value 49

[2024-08-15 20:37:19] debug:    z2m: Received Zigbee message from 'Wall Socket', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,9,78],"type":"Buffer"},"datatype":2,"dp":23}],"seq":47872}' from endpoint 1 with groupID 0
[2024-08-15 20:37:19] debug:    zhc:tuya: Datapoint 23 not defined for '_TZE204_mvtclclq' with value 2382

[2024-08-15 20:37:19] debug:    z2m: Received Zigbee message from 'Wall Socket', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,64],"type":"Buffer"},"datatype":2,"dp":22}],"seq":48128}' from endpoint 1 with groupID 0
[2024-08-15 20:37:19] debug:    zhc:tuya: Datapoint 22 not defined for '_TZE204_mvtclclq' with value 64

External definition

const definition = {
    zigbeeModel: ['TS0601'],
    model: 'TS0601',
    vendor: '_TZE204_mvtclclq',
    description: 'Automatically generated definition',
    extend: [],
    meta: {},
};

module.exports = definition;
Battosuka commented 1 week ago

up, I couldn't either