[New device support]: tuya/Matsee plus current clamp meter
Link
https://fr.aliexpress.com/item/1005004948381800.html?spm=a2g0o.productlist.0.0.31a631410zhHLp&algo_pvid=def1e34d-7ff1-4539-b467-eeeaa6c164ba&algo_exp_id=def1e34d-7ff1-4539-b467-eeeaa6c164ba-12&pdp_ext_f=%7B%22sku_id%22%3A%2212000031119654070%22%7D&pdp_npi=2%40dis%21EUR%2157.81%2127.17%21%21%21%21%21%402100bb4a16701892996707394e5162%2112000031119654070%21sea&curPageLogUid=kahBvYoaamVy
Database entry
{"id":27,"type":"Router","ieeeAddr":"0xe0798dfffede3b6d","nwkAddr":25319,"manufId":4098,"manufName":"_TZE204_cjbofhxw","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0000\u0000\u0000\u0000f\u0000\u0000\u0000\u0000\u0012\u0000\u0000\u0000\u0000\u0012","65506":31,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE204_cjbofhxw","powerSource":1,"zclVersion":3,"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[{"cluster":0,"type":"endpoint","deviceIeeeAddress":"0x00212effff07b952","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-708457359},"lastSeen":1670193766558,"defaultSendRequestWhen":"immediate"}
Comments
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_cjbofhxw']),
I have try to make an external converter but i have this error :
022-12-04T22:47:04.388Z zigbee-herdsman:deconz:driver query aps data indication
2022-12-04T22:47:04.389Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 88
2022-12-04T22:47:04.394Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 88 srcAddr: 0x62e7 destAddr: 0x0 profile id: 0x104 cluster id: 0xef00 lqi: 212
2022-12-04T22:47:04.394Z zigbee-herdsman:deconz:frameParser response payload: 9,106,37,65,0
2022-12-04T22:47:04.397Z zigbee-herdsman:deconz:adapter could not parse zclFrame: Error: Cluster 'manuSpecificTuya' has no command response '37'
2022-12-04T22:47:04.400Z zigbee-herdsman:controller:log Received 'raw' data '{"clusterID":61184,"data":{"type":"Buffer","data":[9,106,37,65,0]},"address":25319,"endpoint":1,"linkquality":212,"groupID":null,"wasBroadcast":false,"destinationEndpoint":1}'
Zigbee2MQTT:debug 2022-12-04 23:47:04: Received Zigbee message from 'energy plaque cuisson', type 'raw', cluster 'manuSpecificTuya', data '{"data":[9,106,37,65,0],"type":"Buffer"}' from endpoint 1 with groupID null
Zigbee2MQTT:debug 2022-12-04 23:47:04: No converter available for 'TS0601_1_phase_clamp_meter' with cluster 'manuSpecificTuya' and type 'raw' and data '{"data":[9,106,37,65,0],"type":"Buffer"}'
2022-12-04T22:47:04.411Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-12-04T22:47:04.583Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2022-12-04T22:47:04.583Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
External 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 ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const e = exposes.presets;
const ea = exposes.access;
const {Buffer} = require('buffer');
const definition = {
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_cjbofhxw']),
model: 'TS0601_1_phase_clamp_meter',
vendor: 'TuYa',
description: '1 phase clamp power meter',
fromZigbee: [tuya.fzDataPoints],
toZigbee: [tuya.tzDataPoints],
onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
configure: tuya.configureMagicPacket,
exposes: [],
meta: {
tuyaDatapoints: [
],
},
};
module.exports = definition;
Supported color modes
No response
Color temperature range
No response
Hi, I've just received the same device as yours and didn't manage to make it works by using an existing Tuya Meter device adapter.
If this can help :
[9,114,37,170,0] // data when clamp **not** connected on live wire
[9,58,37,56,0] // data when current running trough clamp:
https://github.com/Koenkk/zigbee2mqtt/issues/14790 It's still useful, it's from the same manufacturer
See also this issue from zigpy/zha for the same device.
I received the same today. But i have no tuya zigbee gateway to help with the endpoints… :(
Seller has provided those information:
//current(only report) //备注: #define DPID_CUR_CURRENT 18 //power(only report) //备注: #define DPID_CUR_POWER 19 //voltage(only report) //备注: #define DPID_CUR_VOLTAGE 20 // add electric (only report) //备注: #define DPID_ELECTRIC_ADD 101
And also a link to this blog post.
[9,114,37,170,0] // data when clamp not connected on live wire [9,58,37,56,0] // data when current running trough clamp:
I have same value in [9,xx,37, xx, 00] 9 and 37 are static and the xx change every time,... i thing this array have no the value.
Clem, after device apaired ? Is the red light stay on ? and in Zigbee2mqtt log could you find this error :
zigbee-herdsman:deconz:frameParser response payload: 9,32,37,44,0
2022-12-06T08:40:26.827Z zigbee-herdsman:deconz:adapter could not parse zclFrame: Error: Cluster 'manuSpecificTuya' has no command response '37'
Light is steady red after pairing, yes. I have the same log error.
What is weird is that there isn't any Datapoint reported in the log. Could it be due to a bad pairing of the device?
Sophie from Matsee plus say me that 'light stay on' mean that the device is disconnect,...
I could try many converter model like this one https://github.com/Koenkk/zigbee2mqtt/issues/14790 or this blog I have ever the same error and the same static value energy : 9 and power : 37
Voir aussi ce problème de zigpy/zha pour le même appareil. In this issue why have similar error :
Unknown cluster command 37
I'm a newbie and i don"t understand all detail but it seems to be a similar issue here : #14519
One question since you're talking to Sophie de Matsee, she can't provide us with the necessary information about you. I don't have a port compatible with tuya either.
Same device,same problem here. 'Zigbee2MQTT:debug 2022-12-06 14:18:14: Received Zigbee message from 'Medidor', type 'raw', cluster 'manuSpecificTuya', data '{"data":[9,83,37,211,0],"type":"Buffer"}' from endpoint 1 with groupID null Zigbee2MQTT:debug 2022-12-06 14:18:14: No converter available for '_TZE204_cjbofhxw' with cluster 'manuSpecificTuya' and type 'raw' and data '{"data":[9,83,37,211,0],"type":"Buffer"}'
Please check with https://gist.github.com/Koenkk/8fc146f998e2bd9986df783164f4f3df (requires z2m 1.28.4). Double check that the reported values are correct (e.g. could be possible that they have to be divided by 100)
current Instantaneous measured electrical current N/AA power Instantaneous measured power N/AW voltage Measured electrical potential value N/AV linkquality Link quality (signal strength) 255lqi
Zigbee2MQTT:debug 2022-12-06 18:54:37: Received Zigbee message from 'Medidor', type 'raw', cluster 'manuSpecificTuya', data '{"data":[9,100,37,251,0],"type":"Buffer"}' from endpoint 1 with groupID null Zigbee2MQTT:debug 2022-12-06 18:54:37: No converter available for 'TS0601_clamp_meter' with cluster 'manuSpecificTuya' and type 'raw' and data '{"data":[9,100,37,251,0],"type":"Buffer"}'
I have copied everything in "_TZE204_cjbofhxw.js" from the link.
Same Issue (z2m version: 1.28.4-1 )
Zigbee2MQTT:debug 2022-12-06 21:30:18: Received Zigbee message from 'Power Meter', type 'raw', cluster 'manuSpecificTuya', data '{"data":[9,109,37,172,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2022-12-06 21:30:18: No converter available for 'TS0601_clamp_meter' with cluster 'manuSpecificTuya' and type 'raw' and data '{"data":[9,109,37,172,0],"type":"Buffer"}'
Zigbee2MQTT:info 2022-12-06 21:30:18: MQTT publish: topic 'zigbee2mqtt/Power Meter', payload '{"current":null,"last_seen":"2022-12-06T18:30:18.453Z","linkquality":58,"power":null,"state":"ON","voltage":null}'
2022-12-06T18:30:18.462Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2022-12-06T18:30:18.648Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,25,68,129,0,0,0,239,201,180,1,1,0,58,0,82,164,117,0,0,5,9,109,37,172,0,201,180,29,127]
2022-12-06T18:30:18.648Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,25,68,129,0,0,0,239,201,180,1,1,0,58,0,82,164,117,0,0,5,9,109,37,172,0,201,180,29,127]
2022-12-06T18:30:18.649Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 25 - 2 - 4 - 129 - [0,0,0,239,201,180,1,1,0,58,0,82,164,117,0,0,5,9,109,37,172,0,201,180,29] - 127
It might be due to something going wrong during the pairing, like an operation missing in the configure attribute?
The red light after pairing isn’t right according to the seller and the only message sent by the device seems to be something like a clock or heartbeat.
Same here... Debug 2022-12-07 10:11:52Received Zigbee message from '0xe0798dfffede41bc', type 'raw', cluster 'manuSpecificTuya', data '{"data":[9,110,37,98,0],"type":"Buffer"}' from endpoint 1 with groupID 0 Debug 2022-12-07 10:11:52No converter available for 'TS0601_clamp_meter' with cluster 'manuSpecificTuya' and type 'raw' and data '{"data":[9,110,37,98,0],"type":"Buffer"}'
In the log it only shows endpoint 1. Light stays red... so i guess it's not completely paired...