-
Notifications
You must be signed in to change notification settings - Fork 626
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] For Tuya curtain motor #3081
Comments
According to Z2M it must be added to the
Are you able to check it? |
Even before I found that post, I tried to make a custom quirk, but there were some problems. He is right that the TuyaMoesCover0601 is the closest one to it, but my device has a secondary endpoint (242). Simply adding it to the TuyaMoesCover0601 the integration logs an error upon startup, that it is considering my custom version of the quirk, but there is a signature mismatch, as TuyaMoesCover0601 does not define endpoint 242. So after looking around in the repos, I tried to find the proper definition for 242. I ended up adding an extra import to the quirk: from zigpy.zcl.clusters.general import GreenPowerProxy and then I added this modified version: class TuyaHTCover0601(TuyaWindowCover):
"""Tuya blind controller device."""
signature = {
# "node_descriptor": "NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4098,
# maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264,
# maximum_outgoing_transfer_size=82, descriptor_capability_field=0)",
# "endpoints": {
# "1": { "profile_id": 260, "device_type": "0x0051", "in_clusters": [ "0x0000", "0x0004","0x0005","0xef00"], "out_clusters": ["0x000a","0x0019"] }
# },
# "manufacturer": "_TZE200_zah67ekd",
# "model": "TS0601",
# "class": "zigpy.device.Device"
# }
MODELS_INFO: [
("_TZE200_yia0p3tr", "TS0601"),
],
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
INPUT_CLUSTERS: [
Basic.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
TuyaManufCluster.cluster_id,
],
OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 97,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
}
}
replacement = {
ENDPOINTS: {
1: {
DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
INPUT_CLUSTERS: [
Basic.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
TuyaManufacturerWindowCover,
TuyaWindowCoverControl,
],
OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 97,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
}
} This way the device is identified, I got a new entity in HA, but unfortunately does not work, I got these errors:
So I probably messed up something along the way. |
@hami89 did you manage to get the _TZE200_yia0p3tr motor running on ZHA? |
Unfortunately no, it still does not work. |
One interesting addition is that while I cannot control the motor with my custom quirk, if I operate it with it's 433Mhz remote, it reports the position correctly through zigbee to HA. |
Problem description
My Tuya curtain motor is not recognized by HA.
"This device is currently sold as "Tuya curtain motor gen 3".
Support for the same device has already been added to zigbee2mqtt, maybe this provides some additional info about the device. Koenkk/zigbee2mqtt#20725
Solution description
Please add the device (manufacturer) to the supported list.
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Custom quirk
Custom quirk
Additional information
No response
The text was updated successfully, but these errors were encountered: