-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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]: Tuya TS0601 TZE204_81yrt3lo #18419
Comments
@dams74 Today I receive Energy Meter with the same manufacturer name "_TZE204_81yrt3lo" |
it's this one https://www.aliexpress.com/item/1005005782430275.html |
I get this information from manufacturer:
|
Hi guys and Sophie Zhang :-), I don't know how to config report/setting pids in external converter. I got only one bad info in zigbee2mqtt log: "No converter available for 'PJ-1203A' with cluster 'manuSpecificTuya' and type 'commandMcuSyncTime' and data '{"payloadSize":XXX}'" but it's known subject by koenkk. const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const definition = {
}; module.exports = definition; |
Hey @samartandek. I am new to Zigbee2MQTT and I would like to know, where I have to enter the code you send above. I have the same device and switched from ZHA to Zigbee2MQTT because of it. |
Found it! But there is a error message... :-( Have no idea what's wrong.
|
Copy and past all code which i post to new file called
Tuya_TZE204_81yrt3lo.js
After that add 2 lines like that below to configuration.yaml where you has
zigbe2mqtt installation directory.
external_converters:
- Tuya_TZE204_81yrt3lo.js
You have error in line 55 because you ate one sign i
must be divide not dvide
best regards
smartandek
śr., 2 sie 2023, 18:55 użytkownik FlowFrank ***@***.***>
napisał:
… Hey @samartandek <https://github.com/samartandek>. I am new to
Zigbee2MQTT and I would like to know, where I have to enter the code you
send above. I have the same device and switched from ZHA to Zigbee2MQTT
because of it.
Found it!
But there is a error message... :-( Have no idea what's wrong.
can not read a block mapping entry; a multiline key may not be an implicit key (55:14)
52 | const ea = exposes.access;
53 | const {Buffer} = require('buffer');
54 | const valueConverter = {
55 | dvideBy10: tuya.valueConverterBasic.divi ...
-------------------^
56 | divideBy100: tuya.valueConverterBasic.di ...
—
Reply to this email directly, view it on GitHub
<#18419 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A45GFRYGGPI25BMA4S7ICRLXTKA6TANCNFSM6AAAAAA2V4HFN4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have successfully implemented this as you... but I'm always getting 0 values and total powers... did you get real values? |
It's working for me too. However, the measured values cannot be correct. |
I checked returned values with different zigbee energy meter socket with
25w bulb. Different clamp dirrection on the same power line can return you
Total power 0.
Check values with only one clamp Connected to single power L wire.
czw., 3 sie 2023, 12:57 użytkownik FlowFrank ***@***.***>
napisał:
… It's working for me too. However, the measured values cannot be correct.
—
Reply to this email directly, view it on GitHub
<#18419 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A45GFR42RDCGKDCKB7AU54DXTN73JANCNFSM6AAAAAA2V4HFN4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I Just find out the problem! I was using a 4w led lamp and that was too low to measure. Just tried it with a 40w and everything works as expected. |
@SoulOnFire @FlowFrank @samartandek Hello
Is it correct? Dams74 |
Hi In my case i had to change "[113, 'current_A', tuya.valueConverter.divideBy1000]" because current_A was displayed wrong |
This was the status before divide by 1000 |
Dear @samartandek , |
Works like a charm on my device thank you !! |
Hi, |
Hi everyone, i have one of this units, z2m is seeing it but i can't get any reading other than the voltage. I have the feeling i'm missing something stupid but still i can't pin point it. I have both clamps on a water boiler and i can't get any reading at all. I tried reversing the wires and still no luck |
Some messages i see in the logs 2023-08-10 08:21:45Received Zigbee message from '0xa4c138720ce406ab', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":113}],"seq":64000}' from endpoint 1 with groupID 0 |
Clamp must be connected only to fireware L without others (no N, no ground).
Check with device which take more than 5W.
czw., 10 sie 2023, 09:23 użytkownik jmpaiva ***@***.***>
napisał:
… Some messages i see in the logs
2023-08-10 08:21:45Received Zigbee message from '0xa4c138720ce406ab', type
'commandDataReport', cluster 'manuSpecificTuya', data
'{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":113}],"seq":64000}'
from endpoint 1 with groupID 0
2023-08-10 08:21:45Received Zigbee message from '0xa4c138720ce406ab', type
'commandDataReport', cluster 'manuSpecificTuya', data
'{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":101}],"seq":64256}'
from endpoint 1 with groupID 0
2023-08-10 08:21:45Received Zigbee message from '0xa4c138720ce406ab', type
'commandDataReport', cluster 'manuSpecificTuya', data
'{"dpValues":[{"data":{"data":[0,0,0,100],"type":"Buffer"},"datatype":2,"dp":110}],"seq":64512}'
from endpoint 1 with groupID 0
2023-08-10 08:21:45Received Zigbee message from '0xa4c138720ce406ab', type
'commandDataReport', cluster 'manuSpecificTuya', data
'{"dpValues":[{"data":{"data":[0,0,19,35],"type":"Buffer"},"datatype":2,"dp":111}],"seq":64768}'
from endpoint 1 with groupID 0
2023-08-10 08:21:45
—
Reply to this email directly, view it on GitHub
<#18419 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A45GFR5IAW7LH3BPMTLYQ6DXUSD55ANCNFSM6AAAAAA2V4HFN4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Silly me, on the rush to test it, the clanp was embracing the whole cable and not just the L wire. It's working fine now. I even tested the device in comparisson to another power meter and it reads very similar values. Good little device |
@samartandek would you mind creating a pull request to get the device into the official version? |
@samartandek i can try to do to create a pull request if you don't can do it |
Hi dams74, |
where I can find some examples of how to add change to the external converter for changing update_frequency? |
Good job :-) but now pull status is "All checks have failed" because: Check failure on line 5950 in src/devices/tuya.ts GitHub and you don't use my update external coverter but it's not big deal you must |
hi, put that code exactly as is to tuya.ts and should pass pull verification:
|
* Update tuya.ts Update with new device Koenkk/zigbee2mqtt#18419 * Update tuya.ts * Update tuya.ts sorry an other update * Update tuya.ts other update * Update tuya.ts update * Update tuya.ts update * Update tuya.ts update * Update tuya.ts update * Update tuya.ts * Update tuya.ts * Update tuya.ts * Update tuya.ts * Update tuya.ts * Update tuya.ts * Update tuya.ts --------- Co-authored-by: Koen Kanters <[email protected]>
Device is supported now, thanks all! Assuming this can be closed 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) |
Hello, thanks for this job.
and
|
this is what I already wrote a few posts above |
In vendor file it's ok? |
@dams74 perfect it's ok ! |
// tuya.exposes.energyFlowWithPhase('b'), This 4 doesn't work yet because is currently in It's extend tuyaExposes for energy flow and produce with phase |
Device is officially supported now https://www.zigbee2mqtt.io/devices/PJ-1203A.html |
Great job. Thank you all |
Regarding to many messages issue it is my fault, I activated the debounce option with 1 second and now I have 1 message every 10 seconds. |
@smartandek Hi!
but it is not like that! On the device Power b + Energy B the power data is the data equal to power a. |
This is my converter. It can configure the update rate and energy calibration. The rest can be added at will - I didn’t need it.
|
Would it be possible for them to make an official update? What is needed for this to happen? |
I have this device but I noticed something odd or, should I say, annoying. Each flow direction (i.e. dp 102 or 104) is reported before the other values for that channel but the direction is 'late' by one update. For example, let's imagine that I am currently producing 100W on channel A:
and that I turn on a device that consumes 1000W. The next state will contain
which is of course impossible since I only have one 400W solar panel. After 10s the flow is updated and the state becomes
So it seems that This is quite annoying because that means that all automations have to memorize the state and delay the action until the next update. Does anyone else see that? |
@schauveau Yes, same observation with my solar panels. I think there is a time lag. I use this information to route electricity and it's a problem. |
It should be possible to fix either in z2m using an external converter. I will have a look. An alternative could be to write a small MQTT client to read the data and re-emit it properly after the lag. |
I noticed the device is sending One message for every parameter that change, every message is then transferred in a mqtt, this was locking domoticz because of too many messages and some error. I solved by adding 1 second denounce delay to collect all the message in a single mqtt message, give a try and check if improves your situation. |
@diegoflyer I am already using This is not obvious at first but as mentioned by pyzimmer, this is problematic when trying to route electricity from solar panels. I also noticed that the direction datapoints (102 and 104) are missing when there is no current . This is annoying but fortunately it is detectable because I already have a modified version of KonsGit converter (see comment above) that solves these issue by delaying |
My own converter is in https://github.com/schauveau/z2m_PJ-1203A I started a discussion in #21956 |
@smartandek @dronisuav You both wrote that you obtained information from the manufacturer. Do you have any link? I cannot even figure who is the manufacturer. Tuya? |
If you are wondering why you cannot use the statistic graphs on That can be solved by adding a
references: |
Link
https://www.aliexpress.com/item/1005005782430275.html
Database entry
{ "ieee": "a4:c1:38:b5:cd:41:32:70", "nwk": 7491, "status": 2, "lqi": "255", "rssi": "-55", "last_seen": "1690192304.159175", "node_descriptor": "01:40:8e:41:11:42:42:00:00:2a:42:00:00", "endpoints": [ { "id": 1, "status": 1, "device_type": 81, "profile_id": 260, "manufacturer": "_TZE204_81yrt3lo", "model": "TS0601", "output_clusters": [ { "id": 25, "name": "Ota", "attributes": [] }, { "id": 10, "name": "Time", "attributes": [] } ], "input_clusters": [ { "id": 4, "name": "Groups", "attributes": [] }, { "id": 5, "name": "Scenes", "attributes": [] }, { "id": 61184, "name": "Cluster", "attributes": [] }, { "id": 0, "name": "Basic", "attributes": [ { "id": 0, "name": "zcl_version", "value": 3 }, { "id": 1, "name": "app_version", "value": 74 }, { "id": 2, "name": "stack_version", "value": 0 }, { "id": 3, "name": "hw_version", "value": 1 }, { "id": 4, "name": "manufacturer", "value": "_TZE204_81yrt3lo" }, { "id": 5, "name": "model", "value": "TS0601" }, { "id": 6, "name": "date_code", "value": "" }, { "id": 7, "name": "power_source", "value": 1 } ] } ] }, { "id": 242, "status": 1, "device_type": 97, "profile_id": 41440, "manufacturer": null, "model": null, "output_clusters": [ { "id": 33, "name": "GreenPowerProxy", "attributes": [] } ], "input_clusters": [] } ], "signature": { "manufacturer": "_TZE204_81yrt3lo", "model": "TS0601", "node_desc": { "logical_type": 1, "complex_descriptor_available": 0, "user_descriptor_available": 0, "reserved": 0, "aps_flags": 0, "frequency_band": 8, "mac_capability_flags": 142, "manufacturer_code": 4417, "maximum_buffer_size": 66, "maximum_incoming_transfer_size": 66, "server_mask": 10752, "maximum_outgoing_transfer_size": 66, "descriptor_capability_field": 0 }, "endpoints": { "1": { "profile_id": 260, "device_type": 81, "input_clusters": [ 4, 5, 61184, 0 ], "output_clusters": [ 25, 10 ] }, "242": { "profile_id": 41440, "device_type": 97, "input_clusters": [], "output_clusters": [ 33 ] } } }, "class": "zigpy.device" }
Comments
Can you help to create a converter?
I do not have the product, it'f for an other user
Thanks
External converter
Thanks @samartandek and other for their contribution
Supported color modes
No response
Color temperature range
No response
The text was updated successfully, but these errors were encountered: