-
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] TS0601 by _TZE204_rhblgy0z DIN Power #2553
Comments
it seems the same device (same signature but different manufacturer) of issue #2549) |
@Srjosep |
I have no idea... searching for the same. I found some code for z2m, and the manufacturer data to make it work. But not sure where to start learning to create the quirk. Koenkk/zigbee2mqtt#18419 (comment) |
Hi, """Tuya Din Power Meter.""" from zhaquirks import Bus, LocalDataCluster TUYA_TOTAL_ENERGY_ATTR = 0x0211 SWITCH_EVENT = "switch_event" """Hiking Power Meter Attributes""" class TuyaPowerMeasurement(LocalDataCluster, ElectricalMeasurement):
class TuyaElectricalMeasurement(LocalDataCluster, Metering):
class HikingManufClusterDinPower(TuyaManufClusterAttributes):
class HikingPowerMeter(TuyaSwitch):
|
In the link I posted, they wrote a converter for z2m , and they posted the Dpid data, etc. I am still searching for any manual or tutorial to understand how quirks must be created,named and used... there is not much info out there....meanwhile I think I will change to z2m to test if the device works locally or not. I can send it back to the seller yet , so I must be sure it does before the return period ends.... |
It seems compatible with z2m : https://zigbee.blakadder.com/DAC2161C.html (the picture is the same) The Tuya reference is XOCA-DAC2161C BI (device name on IoT Tuya project) |
Yes sorry... I mean Tuya TS0601 TZE204_81yrt3lo, my device. It seems finally they are different. You can try asking the manufacturer...Did you find any manual or tutorial about quirk creation? |
I find this issue, I will try this quirk : #1768 |
It works with this quirk |
Sill not working for me... no sensors and quirk isn't applied... I am missing something about how to add quirks |
Hello @Srjosep |
That's what I did... |
Could you post your device signature ? |
Sure, this is what I get on log: "manufacturer": "_TZE204_81yrt3lo", |
And the endpoint ? |
This... "endpoints": { |
OK |
Is ts0601_din_power.py ? Mine looks like: MODELS_INFO: [ Maybe I've got the wrong file |
this file is used by ZHA so you cannot used it into the custom quirk
and
replace the first 5 lines by from zigpy.profiles import zha, zgp |
Working now, but only summation delivered. This is the quirk that is loaded fine from zhaquirks import Bus, LocalDataCluster import logging TUYA_TOTAL_ENERGY_ATTR = 0x0201 #total energy /100 0x0211 class TuyaManufClusterDinPower(TuyaManufClusterAttributes):
class TuyaPowerMeasurement(LocalDataCluster, ElectricalMeasurement):
class TuyaElectricalMeasurement(LocalDataCluster, Metering):
class TuyaPowerMeter(TuyaSwitch):
class TuyaPowerMeter_GPP(TuyaSwitch):
|
Don't use my quirk file because it isn't for your device. Copy the code below into your file (replace the code) """Tuya Din Power Meter.""" from zhaquirks import Bus, LocalDataCluster TUYA_TOTAL_ENERGY_ATTR = 0x0211 SWITCH_EVENT = "switch_event" """Hiking Power Meter Attributes""" class TuyaManufClusterDinPower(TuyaManufClusterAttributes):
class TuyaPowerMeasurement(LocalDataCluster, ElectricalMeasurement):
class TuyaElectricalMeasurement(LocalDataCluster, Metering):
class HikingManufClusterDinPower(TuyaManufClusterAttributes):
class TuyaPowerMeter(TuyaSwitch):
class HikingPowerMeter(TuyaSwitch):
|
Is this solved now? We should ideally keep issues open until the issue is fixed in zha-quirks/HA (without using custom quirks). |
No it isn't solve : I reopen this issue. |
Hi, I also acquired this device. Tried all above suggestions to modify existing TS0601 quirks but cannot get it to work. "manufacturer": "_TZE204_rhblgy0z", So, I did setup Rpi with ZIgbee2MQTT and voila, it works there. Not the ideal long term solution. This is the Zigbee2MQTT page https://www.zigbee2mqtt.io/devices/TS0601_din_3.html that works with the device. Will try to debug a little bit more. I found a lot of errors when no Quirk is applied [0x130A:1:0xef00] Unknown cluster command 2 b'\x00\x08\x04\x00\x00\x08\x01\x05\x01\x05\x00\x00\x00\x00' |
I found a partial solution, I have now implemeted the version #2553 (comment) with modification in class TuyaPowerMeter_GPP(TuyaSwitch): However, although this seems to fix the errors, it show the returned total energy in stead off the consumed energy. TUYA_TOTAL_ENERGY_ATTR = 0x0201 is pointing to returned energy. I have tried all kind of values, but can't find the missing Energy Consumed or Energy Total. |
Does anyone have a working quirk file for 'TS0601 _TZE204_81yrt3lo' (for ZHA)? |
See beelow, I put a working quirk file for 'TS0601 _TZE204_81yrt3lo' (for ZHA). When you add your device, sometimes it isn't working for the first time. I hope that's help you |
|
I don't want to complain but things were easier if people formatted their postings a bit better; this is python and damaging the indentation is making it quite useless. |
Problem description
Is it possible to add this tuya device to ZHA devices : https://www.amazon.fr/dp/B0C7C71DRS?psc=1&ref=ppx_yo2ov_dt_b_product_details
It is a DIN power.
It seems similar to the tuya din_power quirk
Solution description
I would love if someone could add this device to the official quirk
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Custom quirk
Custom quirk
The text was updated successfully, but these errors were encountered: