-
Notifications
You must be signed in to change notification settings - Fork 679
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
[Device Support Request] _TZE204_81yrt3lo TS0601 Zigbee power meter with clamp #2549
Comments
I saw there is quirk data for z2m, so I created a /config/zha_quirks/ folder, create the file Tuya_TZE204_81yrt3lo.js with this data, and added custom_quirks_path: /config/zha_quirks/ to configuration.yaml. But after reboot and repair, still no sensors. Must I delete pycache?Have no idea how to do it... const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const valueConverter = { const definition = { meta: { module.exports = definition; |
I think the quirk it's not applied, but I can't figure why... I followed all the steps... this is the log: "manufacturer": "_TZE204_81yrt3lo", |
In the opening post you have signature and diagnostic from the coordinator and not the device you have described. |
Sorry, wrong device..... Fixed now. ( I Hope) :-) |
Tried to add custom quirk to ZHA following https://github.com/home-assistant/home-assistant.io/pull/23884/files/e03462d75c7ad37c611ab3cf4d47210f7114bc94#diff-f6bd4d42fd2565238968333a466474a25384fb4eecddc0235902e5ff5e798c8d but still no sensors. I am sure I followed all steps, creating the quirks folder and adding to yaml... |
|
I created a file called TS0601_Router.py inside "customs_zha_quirks" folder. And This is wrong? I have some devices apart of this one I'd like to fix to contribute. I'm on the learning process :-) |
You have posting Z2M code in the ZHA quirk and its not working. |
I think one good start i using this quirk and caning it so its working for your device if that is using the same DPs (tuya MCU commands). |
I bought the same device and had the same problem. I found this information : Koenkk/zigbee2mqtt#18419 (comment) Hope it can help to fix the problem. |
Quirk applied finally, and getting some data. Only Total power delivered and Power factor. Log: |
This sentences make the difference. With this, quirk isn't applied, and device have no sensor. Doesn't matter if the signature is right, quirk isn't applied. I have no idea what means the numbers or where find how it work,,,not much info about quirks development out there, anyway, I'll keep trying.... |
Hello, I've just read your post, even following your parameters I don't get the power entities. Can you post your file ts0601_din_power.py for _TZE204_81yrt3lo please? Do you confirm that once the file is placed in the custom_zha_quirks folder, I have to clear the ts0601_din_power.cpython-311.pyc cache and reboot HA? and rebuild or do I have to delete the device and reinstall it? |
Do you think you could send me the whole file at once? I've gone step by step, but it doesn't work. Are file indentations mandatory (as in YAML)? After trying several times, still nothing. Once the file has been created according to your model, I don't get the "Power Factor" entity on the first startup, and nothing either on the second startup. |
The folder must be pointed in configuration.raml, something like zha: Pointing to your quirks folder. |
Yes !! for your information, the second "Summation delivered" sensor appeared with the clamp closed (currently at 0.0kWh), my blank assembly. I'm going back to my temporary set-up to measure a significant current. But I'm going to ask you again, and maybe you won't be able to answer me, the model I have has 2 sensors, and I can only see one :-( Do you have any idea how to activate the second sensor to help me in my search? I didn't go through TUYA, I don't have an independent gateway, and I didn't manage to associate it in Zigbee on the application. thanks again, I'm desperate after 150 restarts. |
Mine have two sensors plug too, for use with solar or wind generators. I use only one because I have no generators i+right now. This device have much more sensors, like voltage, actual consumption, etc... I am trying to get all working, but there is info (or I can't find it) about quirks creation, so I am blindfolding, just trying things....you can see all the sensors available and the entrypoints here Koenkk/zigbee2mqtt#18419 (comment) but I don't know how translate from z2mqtt to ZHA. Any progress I will post here, if any... any suggestion, progress, you make, please let me know... |
OK I'm looking |
ts0601_din_power_MatSee.zip |
👍 Great |
Great , |
Concerning the two sensors, I noticed with the latest version of @maccmaic that both sensors are present (in Manage Zigbee device) and the values updated, but I don't understand how to make them appear as entities. In fact, I'm trying to understand the structure of the file, but the display part escapes me ;-(. |
from what I saw in the code only the attributes energy_deliver_reported and energy_deliver_reported |
in my searches on Github, I don't see any TS601 displaying 2 sensors .... what's surprising is that the data from the 2 sensors do indeed show up in ZHA, you can see them vary in the "manage Zigbee device" menu, then "MatSeeManufClusterDinPower" and current & currentB with the values 0x000 and 0X001, and this is also true for power and current. I can't figure out how to define the transition to entities. |
Aims to address device support requests: 2 bidirectional clamps: zigpy#2549 (_TZE204_81yrt3lo) zigpy#2650 (_TZE200_rks0sgb7) 1 bidirectional clamp: zigpy#2420 (_TZE204_ac0fhfiq) 1 clamp: zigpy#1973 (_TZE204_cjbofhxw) @jmuf I've just spotted that in parallel you've also been working on zigpy#2870 for _TZE200_rks0sgb7, shall we pool ideas?
Hi @TheJulianJES here's my current draft PR #2961, it aims to add functionality for the different Tuya clamp Energy Meter devices I've tracked down. We could potentially include a quirk_id in there, but it also includes the full list of device fingerprints that I'm mapping the value for. |
Thank you all for the work, I've just integrated this Power Meter with 2 clamps through the custom quirk. Best regards, Marco |
I did a HA restart after the installation, but In my case, all Readings appeared suddenly after 5 days. I don't know why, but it's working like a charm now. |
Dear Marco |
Hello Eyalsac, I downloaded the ts0601_energy_meter.py file from the repository reported in the previous posts. |
Thank you very much. |
Hello |
Hi @atspro , are you using the version below? The version posted by @eyalsac is on an old branch, using the above I have the correct decimal places on my end (it's also the version I'm working actively on to support multiple devices). |
Good work, many thanks for the new code. Now I have all the fields with correct data. |
Hi @jeverley , |
Hi all, I've added this quirk, but I don't have any values. The only ones that keep changing are the Ac Frequency and the Voltage as you can see in image. |
Hi @tikes , did any start populating following a second reload of the ZHA integration? |
Hi @jeverley, no, already restart home assistant several times. Reload Zha. Delete and add again the device. Already follow this steps #2961 (comment). I'm running Core version: 2024.4.4 Thanks |
Hi @jeverley , thanks so much for this quirk. This was the last device I needed to get working so now my home is complete. I have some questions for you if you have time:
Sorry if I've missed any of these in the comments above. Many thanks for your work on this. |
i mis the type TZE204_81yrt3lo in https://github.com/jeverley/zha-device-handlers/blob/ts0601_energy_meter_devices/zhaquirks/tuya/ts0601_din_power.py |
Hi, the file is not availible anymore? |
The link works for me. |
Same question here |
This helped me understand it |
I also confirm this one works for me (HAOS Home Assistant OS 13.1 - HA core-2024.9.0). How can we vote somewhere to push this quirk to standard? |
I can finally confirm that this thing works for 2 clamp power meter _TZE204_81yrt3lo. A bit of testing is ahead to see if measurements are fine. |
Problem description
The device is discovered, but with no sensors. I have all connected fine, I can see total and instantaneous power in Tuya app. Where to start?
Solution description
Any
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Diagnostic information
Diagnostic information
Logs
Logs
Custom quirk
Custom quirk
Additional information
No response
The text was updated successfully, but these errors were encountered: