Skip to content

zhc:tuya: Failed respond to version response #28564

@u15jtau

Description

@u15jtau

What happened?

Tuya MCU version request fails with timeout errors, e.g.:

zhc:tuya: Failed respond to version response '0xa4c138018b819df8' (Error: ZCL command 0xa4c138018b819df8/1 manuSpecificTuya.mcuVersionRequest({"seq":2}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '30694'.))

When the full network (~70 devices, mostly Zemismart ZMS-206US-4 end devices) is powered on, the adapter runs out of buffers:

error 2025-09-10 17:12:19zh:ember:ezsp: The adapter has run out of buffers, causing general malfunction. Remediate network congestion, if present. Last Frame: [FRAME: ID=52:"SEND_UNICAST" Seq=103 Len=10]. - should I log another issue for this? I'm getting several of these after I power on approx 1/3rd of my devices (I turned the power off at the fuse box then powered on 1 at a time with a 3 minute gap). I disabled mqtt in home assistant, reinstalled the firmware, power cycled unbuntu server and adapter and still getting these messages. I think it started when home assistant sent 69 messages at once and it hasn't recovered.

The fix suggested in issue #23874 does not resolve the problem.

With the error "The adapter has run out of buffers," I filtered out the following on configuration.yaml thinking this might have been the cause
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost:1883
serial:
port: tcp://x.x.x.x:6638
adapter: ember
baudrate: 115200
rtscts: false
disable_led: false
advanced:
log_level: debug
log_output:
- console
- file
channel: 25
network_key:
- 152
- 113
- 193
- 1
- 102
- 180
- 91
- 170
- 211
- 108
- 10
- 24
- 131
- 201
- 186
- 41
pan_id: 21740
ext_pan_id:
- 72
- 193
- 107
- 141
- 206
- 8
- 1
- 37
queue_rate_limit: 5
cache_state: true
last_seen: ISO_8601
elapsed: true
transmit_power: 13
network_key_distribute: true
frontend:
enabled: true
port: 8080
homeassistant:
enabled: true
external_converters:

  • ext_converter.js
    device_options:
    debounce: 5
    throttle: 60
    filtered_attributes:
    • backlight_brightness
    • backlight_mode
    • child_lock
    • countdown_l1
    • countdown_l2
    • countdown_l3
    • countdown_l4
    • delay_off_schedule
    • indicator_status
    • last_seen
    • linkquality
    • voltage
    • name_l1
    • name_l2
    • name_l3
    • name_l4
    • relay_status_l1
    • relay_status_l2
    • relay_status_l3
    • relay_status_l4
    • state
    • state_l1
    • state_l2
    • state_l3
    • state_l4
    • switch_color_off
    • switch_color_on
    • linkquality
    • voltage
    • current
    • power
    • energy
    • illuminance
    • illuminance_average_20min
    • illuminance_maximum_today
    • elapsed
    • battery
    • battery_low
    • countdown
    • indicator_mode
    • power_outage_memory
    • update
    • detection_delay
    • fading_time
    • maximum_range
    • minimum_range
    • radar_sensitivity
    • target_distance
    • cleaning_reminder

What did you expect to happen?

The Tuya MCU version requests should succeed, and the EZSP adapter should handle the network without buffer exhaustion, even with all devices powered on.

How to reproduce it (minimal and precise)

Set up a Zigbee network with approximately 70 devices, about 60 of which are Zemismart ZMS-206US-4 end devices.

Use the SLZB-MR4 (EFR32MG26) coordinator with firmware 20240602 connected via Ethernet.

Power on all devices and observe logs.

Use zigbee2mqtt dev branch.

Zigbee2MQTT version

2.6.1-dev

Adapter firmware version

20240602

Adapter

SLZB-MR4 (EFR32MG26) connected via Ethernet.

Setup

Intel NUC with proxmox and unbuntu server running both zigbee2mqtt and mqtt broker

Device database.db entry

{"id":3,"type":"Router","ieeeAddr":"0xa4c138a59041fb58","nwkAddr":1506,"manufId":4417,"manufName":"_TZE204_wwaeqnrf","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0016\u0000\u0000\u0000i\u0016\u0000\u0000\u0000i\u0017\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u0010\u0000\u0000\u0000i\u0010\u0000\u0000\u0000i\u0011\u0000\u0000\u0000i\u0011\u0000\u0000\u0000i\u0011\u0000\u0000\u0000i\u0012\u0000\u0000\u0000i","65506":56,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE204_wwaeqnrf","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1757489653487}

Debug log

Example devices
0xa4c13864c184120c
database.db entry
{"id":112,"type":"Router","ieeeAddr":"0xa4c13864c184120c","nwkAddr":8152,"manufId":4417,"manufName":"_TZE204_wwaeqnrf","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0003\u0000\u0000\u0000i\u0004\u0000\u0000\u0000i\u0004\u0000\u0000\u0000i\u0004\u0000\u0000\u0000i\r\u0000\u0000\u0000i\r\u0000\u0000\u0000i\r\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u0010\u0000\u0000\u0000i\u0010\u0000\u0000\u0000i","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZE204_wwaeqnrf","zclVersion":3,"appVersion":74,"modelId":"TS0601","powerSource":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1757489653542}

0xa4c138a59041fb58
database.db entry
{"id":3,"type":"Router","ieeeAddr":"0xa4c138a59041fb58","nwkAddr":1506,"manufId":4417,"manufName":"_TZE204_wwaeqnrf","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0016\u0000\u0000\u0000i\u0016\u0000\u0000\u0000i\u0017\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u000f\u0000\u0000\u0000i\u0010\u0000\u0000\u0000i\u0010\u0000\u0000\u0000i\u0011\u0000\u0000\u0000i\u0011\u0000\u0000\u0000i\u0011\u0000\u0000\u0000i\u0012\u0000\u0000\u0000i","65506":56,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE204_wwaeqnrf","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1757489653487}

log.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions