Skip to content
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

[BUG] Tuya TS130F Curtain (Roller Shutter) - not setting current_position_lift_percentage #3600

Open
mkz212 opened this issue Dec 8, 2024 · 1 comment

Comments

@mkz212
Copy link

mkz212 commented Dec 8, 2024

Bug description

Tuya TS130F TZ3000_eg7awg6a (single Roller Shutter) (Quirk: zhaquirks.tuya.ts130f.TuyaTS130GP) not saving current_position_lift_percentage.

Exactly same device, but Double Roller Shutter, Tuya TS130F _TZ3000_j1xl73iw (Quirk: zhaquirks.tuya.ts130f.TuyaTS130Double_GP_ESTC) works ok.

Steps to reproduce

When I set position e.g. to 52% target lift position is 52 and curtain is moving to this position, but current_position_lift_percentage is 100. So after a while it shows wrong position in HA, even though the roller blind is in the correct position.

Expected behavior

Fix position

Screenshots/Video

Screenshots/Video

In fact, this blind is closed. But as you can see, the target lift position is ok but current_position_lift_percentage is wrong and so status in HA is wrong - it shows closed blind as open.

IMG_7868
IMG_7869

And this is how it looks for working device (TS130F _TZ3000_j1xl73iw):

IMG_7870
IMG_7871

Device signature

Device signature
{
  "node_descriptor": {
    "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": "0x0104",
      "device_type": "0x0202",
      "input_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0102"
      ],
      "output_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": "0xa1e0",
      "device_type": "0x0061",
      "input_clusters": [],
      "output_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZ3000_eg7awg6a",
  "model": "TS130F",
  "class": "zhaquirks.tuya.ts130f.TuyaTS130GP"
}

Diagnostic information

Diagnostic information
[Paste the diagnostic information here]

Logs

Logs
File "/usr/local/lib/python3.13/site-packages/zigpy/device.py", line 378, in request
    await send_request()
  File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 835, in request
    await self.send_packet(
    ...<14 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/bellows/zigbee/application.py", line 857, in send_packet
    raise zigpy.exceptions.DeliveryError(
        f"Failed to deliver message: {send_status!r}", send_status
    )
zigpy.exceptions.DeliveryError: Failed to deliver message: <sl_Status.ZIGBEE_DELIVERY_FAILED: 3074>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/general.py", line 633, in check_in_response
    await self.fast_poll_stop()
  File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/__init__.py", line 84, in wrapper
    with wrap_zigpy_exceptions():
         ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__
    self.gen.throw(value)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/__init__.py", line 76, in wrap_zigpy_exceptions
    raise ZHAException(message) from exc
zha.exceptions.ZHAException: Failed to send request: Failed to deliver message: <sl_Status.ZIGBEE_DELIVERY_FAILED: 3074>
2024-12-09 07:36:21.505 DEBUG (MainThread) [zigpy.zcl] [0x0D63:1:0x0102] Attribute report received: current_position_lift_percentage=54
2024-12-09 07:36:21.505 DEBUG (MainThread) [zha.zigbee.cluster_handlers] [0x0D63:1:0x0102]: cluster_handler[window_covering] attribute_updated - cluster[Window Covering] attr[current_position_lift_percentage] value[46]

Additional information

Home Assistant core-2024.12.1
No updates for system.
No firmware updates for devices.

@mkz212
Copy link
Author

mkz212 commented Dec 10, 2024

Using automation to set cluster works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant