New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MatSeePlus PC321-Z-TY 3-phase Clamp Power Meter #14790
Comments
In order to add support for this device we need to know all the datapoints. As of now there are no other TuYa TS0601 power meters which supports 3 phases supported. |
Hi @Koenkk Phase A
Phase B
Phase C
Temperature
Today
This Month
Power Factor A
Power Factor B
Power Factor C
Frequency
Total Current
Total Active Power
Device Status
Total Power
Three more indicators: |
Can you try and see if with the following external converter ac_frequency, energy, power and temperature works? https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d |
hi @Koenkk current ac_frequency power temperature linkquality
|
I guess either current or power is wrong, (probably has to be divided by 10 or 100), what are the expected values? |
current - divided by 10 |
Is the the current power or accumulated power? (energy). For all devices we output the current power in W. I updated https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d and also added all the other points (values are the raw ones they require conversion). Can you check in the z2m forntend -> device -> state and see what values the attributes get? |
Sorry, i was wrong. ac_frequency - multiply by 100
current power
|
Updated https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d , can you check the last part of #14790 (comment) ?
|
Yes, I have updated the file.
|
What shows up under the "State" tab? |
{ |
I'm wondering what the phase_a/b/c values could be, does the tuya app provide any description about it? |
I updated https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d more should be under "Exposes" now, please check if it is correct.
|
Current version: 1.28.2-1
"energy": 0.12 - wrong, should be 0,77+0,29 +0,17=1,23
correct
no others There are these datapoints:
|
Fixed
Added them to the exposes
Added these now, are the voltage/current/power for a/b/c in the state correct? (e.g. Updated: https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d |
Now displays the total consumption for all each phase Last time, the current consumption for each phase was displayed:
Nothing is showing
|
Only this data:
|
Can you make sure you copied the converter correctly? Anyway I updated https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d now, energy should be divided by 10 now. If it doesn't work change this line:
To one of
|
I reconnected the device
"energy": 6.7 - now it shows correctly
Here is the data from the converter:
Zigbee2MQTT:error 2022-11-18 20:49:30: Exception while calling fromZigbee converter: Buffer.from is not a function} |
Updated https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d to fix the buffer issue (and correct the energy divisor) |
correct
|
Great, so everything seems to work now right? If you confirm then I can add this converter for support out-of-the-box. |
Updated https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d |
|
Whoops, fixed! |
/app/dist/util/externally-loaded.js:27 |
https://gist.github.com/Koenkk/0046f4c0d453bcc1f8d25b0077694c1d should be good now. |
Great, I've added the device, will be supported in the next release. The icon will also be added with the next release, can you provide a product picture? Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) |
Hi. Thanks for the recent efforts in supporting this device. |
Hello, same problem here. Can you fix this? |
Hello, is there any news about the part? Will this part work in the future? |
It would be great to get this fixed, is there any thing we can help with? |
I'm currently integrating this device in the Zigbee for Domoticz plugin, and I found the same. I have added a mask on the Power to prevent taking all bits on the Total Power On the other side, I have some issue to get the line power and current, I don't see the P = U x I match as it has been reported here #14790 (comment) |
I've created a 'patched' sensor for phase B and Total power in Home Assistant: |
Hi, I am using the same device but then with Domoticz instead of Home Assistant. |
Link
https://www.aliexpress.com/item/1005002683417480.html?spm=a2g0o.store_pc_groupList.8148356.1.2a6e682eTFsesZ&pdp_npi=2%40dis%21USD%21US%20%2431.98%21US%20%2415.99%21%21%21%21%21%402100bdd716674884869692815e2f2b%2112000021722081118%21sh
Database entry
'{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":122}],"seq":44032}
Comments
Please add the Tuya Smart PC321-Z-TY 3-phase Clamp Power Meter
Description: Tuya Smart 3 Phase Single Phase ZigBee Energy Meter KWh Power Monitor 500A 300A 200A 120A 80A with Clamp Current Transformer
Model: PC321-Z-TY
Zigbee model 'TS0601'
Manufacturer name '_TZE200_nslr42tt'
Vendor: MatSeePlus
Exposes: Irms, Vrms, Active Power & Energy, Reactive Power & Energy
I have the latest version now 1.28.1-1
Here is my log:
Zigbee2MQTT:debug 2022-11-02 14:47:22: Received Zigbee message from 'Energy', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":122}],"seq":44032}' from endpoint 1 with groupID 0
Zigbee2MQTT:warn 2022-11-02 14:47:22: Received message from unsupported device with Zigbee model 'TS0601' and manufacturer name '_TZE200_nslr42tt'
Zigbee2MQTT:warn 2022-11-02 14:47:22: Please see: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html
I have added a file ( 321-z-ty.js ) into the config dir, with the content from issues 9525:
Thanks
External converter
No response
Supported color modes
No response
Color temperature range
No response
The text was updated successfully, but these errors were encountered: