-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[New device support]: Unsupported Zigbee device model 'TS0601' and manufacturer name '_TZE200_rks0sgb7' #18734
Comments
Hi. |
This clam energy meter resembles _TZE204_81yrt3lo (TuYa PJ-1203A) implemented in Z2M. I have no confirmation whether data points for these two are the same at the moment but if anyone wants try this could be starting point. |
Thanks a lot!! Searching the web I found on a thread the config of the external converter of the Tuya PJ-1203A and I adapted it to my device as follows:
And Z2M integred it perfectly. Thanks again! |
@1vanj0 thanks, added! 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) |
Can you please confirm if this power monitor displays voltage and AC frequency? |
I have been trying to get this to work as well, both with the external converter as with the latest zigbee-herdsman-converters (> 15.77.0). It does report as being a known device in both situations, so that's not an issue, but the reported values are off. The only value with reasonable output is the power B value, but even that one is not correct.
In these screenshots you can see the difference in value. The 'Power Consumption' sensor is an Eastron SDM230-Mod meter, the 0xb43a31fffe66d1be is the _TZE204_81yrt3lo B value measuring on the same power line. |
I've been working on the external converter for a while now, and everything seems to be working except for the power direction and update frequency converter. Here is the code:
|
@alexsahka could you make a pull request to add it here? https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/tuya.ts |
|
Setting the voltage precision to 0 results in the voltage being displayed with no digit after the decimal point. Increasing the voltage precision to 1 or more only displays one digit after the decimal point. I understand now that the device only reports voltage precision to one digit after the decimal point by design. Thank you for explaining. |
I have noticed in the logs that datapoints 1, 2 and 9 are also being reported. I tried these values as raw, but they do not give any sensible result to update frequency of power direction (oftentimes values >1000). Other datapoints seem to return null, so I'm also not sure where to look for these values in the data supplied by the module. @alexsahka I never thanked you for the effort! |
@Koenkk Managed to get this one working and posted converter here zigpy/zha-device-handlers#2650 (comment) @alexsahka Do you really own https://es.aliexpress.com/item/1005005931365212.html 2 clamp version of the device? Because your posted converters were not working for this exact device. I don't have further experience in preparing PRs or anything like that so help would be appreciated. Thanks! |
@steennick, check zigpy/zha-device-handlers#2650 (comment) - all my findings and updated converter is posted there. DPs 1, 2 and 9 are for energy_forward_AB, energy_reverse_AB and total_power_AB respectively ;) |
@alexsahka Seems to be the same one (I just closed the mains box so no picture :D ) but you can see that I have completely different DPs to your above comment - (#18734 (comment)) And it matches what @steennick said about seeing some additional DPs (as in 1, 2 & 9) |
Here is a screenshot from Z2M, but I still can't figure out the power direction and update frequency. |
@alexsahka, it is because update frequency is not reported - it is simply ~once per second. And Power direction is not there also, because it has completely separate values for reverse energy and Power readings simply go negative. (You can test that by installing clamp backwards) Anyhow, test the converter I posted here. I think you will find it is working perfectly for you too ;)
|
Anyhow, @alexsahka you can test my converter - I have all values working and tested forward + reverse. Note: 105 is total current and not power ;) |
105 is The total power between Circuit 1 and Circuit 2. |
No it is not! :D Have you even done the math?! There is no such parameter as power difference on this device! Here are the stats with DPs used. Issue is that those SUM DPs are not being updated exactly at the same time always and they can have a slight delay. And moreover, screenshot you posted with your values does not support your above claim. |
Anyhow, I did the homework and posted a working and TESTED converter for EARU PC311-Z-TY. Hope it is used and I managed to help others. Bit of constructive challenge is OK but this is getting frustrating and introducing confusion. I will not be participating in this discussion anymore as anyone who would test the values and do the math would see that my proposed mapping is correct. Thanks and take care! :) |
Hi, thank you so much @KPfff for all this !! It is detected as Tuya PJ-1203A and I get unusable values from it. EDIT: Ok got it working following your instructions here, thank you !! However I still don't understand why it's needed if the proper model is detected. Is it because it is a different model but description/specification has been duplicated and needs to be updated ? Can we hope to get it integrated without the need of a converter in a future release ? Thank you again for you patience :) |
Hello to all, Thank you for this external converter. As I was saying, with this converter I can see Hz and Voltage. I have some other questions: Thank you!!! |
Hi @fmnamado, maybe my configuration differs from yours but I get power in Watts in Zigbee2MQTT (and home assistant), energy is in kWh. It seems to me that both channels are indeed independent, not sure about the combined reading, I will probably not use it... Also don't understand why it does not sum properly, maybe because sampling is not synchronous... Other than that I basically have same questions as yours :) |
I was using a converter posted in this thread that used kW. Right now I am using the converter from @KPfff, but as I wasn't getting an image, I changed it a bit. I don't know it this impact the measurment or not. I am still not sure it this is working: the Hz and Voltage are working, but I still don't have readings in Watts but I know my loiad is very small, so I am not sure if the problem is the load or the converter...
EDIT: BTW, I bought this one https://www.aliexpress.com/item/1005005931365212.html it seems exactly the same of @KPfff |
So just a quick update, I finally managed to get a load big enough to appear. I didn't pay attention to the orientation of the clamp, it was just for testing. To test the "accuracy", I used a zigbee plug, also connected to the same zigbee2mqtt coordinator/instance: So at least regarding to voltage, frequency, current and power, the above coordinator seems to be working, thank you everyone and specially @KPfff . The power factor also seems to be accurate. With time I will check the other values when I connect to other channel, other load. But it seems I can use the channels independently, I just ignore the values that are taken in account both channels (differences and sums...) Thank you!!! |
is there any way to reset consumtion data kWt/h of the clamp meter? |
Not tested but saw this method on the website: https://smarthomescene.com/reviews/tuya-zigbee-single-clamp-energy-meter-review/ You can send a reset payload through MQTT: |
If same as mine:
Must not wait more than 10 seconds between the two operations. |
Hi guys, However - I observe a strange effect here...
Everything was working correctly for the 1st clamp. Was not using my outdoor spa, so no consumption over there. Filled my spa over the weekend, and turned it on. I got readings on that clamp (~1kW - which matches with the specs), so was happy. But, for some reason, over the night, my 1st clamp - which measures as mentioned total consumption) was getting 2kWh readings in total per hour (noticed that this morning on the HA energy dashboard). I know my idle consumption during the night is in the 0.2-0.3kWh per hour (so 2-300W). So - it seems like the readings of the 2nd clamp (little less than 1kWh) are added to the actual consumption of the 1st clamp (1kWh of the spa + 0.2kWh idle consumption) , giving a total of 1kWh+1kWh+0.2kWh = 2.2kWh. Which is 1kWh too much. I see this both on the power readings as on the energy meters: currently, I'm consuming according to the 1st clamp 2kW, were the only powered on device is the spa (next to the idle consumption). I guess this is a issue on the firmware of the device, right? Only way to solve this is by changing things in the converter, or by having Home Assistant do the compensation, right? Anyone else that has observed similar behavior? Regards, |
Added in #20095 Changes will be available in the dev branch in a few hours from now. |
Hello It's possible to modify the "Update Frequency" ? Actually it's 30sec, i would like to update every 1sec :D Thx |
Hi, I've the same request ... is it possibile ? |
Link
https://es.aliexpress.com/item/1005005931365212.html
Database entry
{"id":11,"type":"Router","ieeeAddr":"0x385cfbfffe2c7df9","nwkAddr":31480,"manufId":4098,"manufName":"_TZE200_rks0sgb7","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184,65382],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_rks0sgb7","stackVersion":0,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1692977070510,"defaultSendRequestWhen":"immediate"}
Comments
I'm having issues with Z2M to recognise this device. I haven't found info about this manufacturer in Google. No info.
I try to add the external converters to the config file following the first comment of Koenkk of this thread:
#14571
But after that the addon of Z2M don't load.
Any help would be welcome. Thanks.
Regards,
External converter
No response
Supported color modes
No response
Color temperature range
No response
The text was updated successfully, but these errors were encountered: