question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tuya Tubular Roller Blind motor

See original GitHub issue

Is your feature request related to a problem? Please describe.

Request and placehoder for information about the Tuya Tubular Roller Blind motor > specfically:

https://www.ajaxonline.co.uk/product/zignito-zigbee-roller-blind-motor/

Describe the solution you’d like

ZHA support 😃

  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_uzinxci0",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
javicallecommented, Apr 26, 2022

Need adding the key map in tuya INIT (in the HA docker container) for the device or you is getting errors then loading the quirk or using it.

Ouuch! Yes, that’s true.

You can try to copy the tuya.__init__.py file in your custom_zha_quirks folder:

Add your manufacturer to the array (in the __init__.py file):

# For most tuya devices 0 = Up/Open, 1 = Stop, 2 = Down/Close
TUYA_COVER_COMMAND = {
    "_TZE200_zah67ekd": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_fzo2pocs": {0x0000: 0x0002, 0x0001: 0x0000, 0x0002: 0x0001},
    "_TZE200_xuzcvlku": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_rddyvrci": {0x0000: 0x0002, 0x0001: 0x0001, 0x0002: 0x0000},
    "_TZE200_3i3exuay": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_nueqqe6k": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_gubdgai2": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_zpzndjez": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_cowvfni3": {0x0000: 0x0002, 0x0001: 0x0000, 0x0002: 0x0001},
    "_TYST11_wmcdj3aq": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_yenbr4om": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_5sbebbzs": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_xaabybja": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_hsgrhjpf": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_iossyxra": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_68nvbio9": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_zuz7f94z": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_ergbiejo": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_nhyj64w2": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
    "_TZE200_uzinxci0": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
}

In your ts0601_cover.py file, replace all the zhaquirks.tuya imports (at the beginning of file) with:

# from zhaquirks.tuya import (
from . import (
    TuyaManufacturerWindowCover,
    TuyaManufCluster,
    TuyaWindowCover,
    TuyaWindowCoverControl,
)

I believe that this would be enought.

And before restart, delete any __pycache__ subfolder in your custom_zha_quirks.

1reaction
MattWestbcommented, Apr 26, 2022

Install SSH access add-on for getting CLI to the HA container if you is running OS and if running not blocked supervisor install portainer and you can open CLI to the HA container.

One option is patching the quirk for reading the INIT from the custom quirk folder but i dont knowing how to doing it but im sure @javicalle can helping patching that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Smart Tubular Motor Curtain | Home Motor | Expo powered
Discover a wide range of smart tubular motor curtains or shutter motors at Tuya Expo. One-stop platform for smart tubular motor curtain or...
Read more >
Blindsmart Rechargeable Tuya Zigbee Roller Blinds Motor for ...
Blindsmart Rechargeable Tuya Zigbee Roller Blinds Motor for 38mm Tube, Motorized Window Shades Automatic Blinds Curtain Opener APP Control, Zigbee Hub Required( ...
Read more >
25mm Tuya Wifi Rf Smart Tubular Motor Ac Roller Blind ...
25mm Tuya WiFi RF Smart Tubular Motor AC Roller Blind Shutter Automatic Curtain Motor for 38mm Tube no Hub Needed Alexa Google. 10...
Read more >
BEST Smart Blind Motor NO WIRES COMPLETELY HIDDEN ...
... Tuya Zigbee Rechargable Blind Motor, Roller Shade Engine,Smart Tubular motor,Alexa Google Home Voice Control,Hub Required (25mm, Motor +R1) ...
Read more >
45mm Tuya WiFi Smart AC Tubular Motor for ... - Zebrago
45mm Tuya WiFi Smart AC Tubular Motor for Motorized Roller Blinds / Roller Shutter / Awning / Ceiling Curtain etc. Suitable for 50mm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found