zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Failed to sync time manuSpecificTuya.mcuSyncTime

Open u15jtau opened this issue 1 year ago • 40 comments

What happened?

I'm experiencing frequent time sync issues in Zigbee2MQTT when using the SLZB-MR4 (EFR32MG26) adapter with firmware version 20240602. These messages appear in the Zigbee2MQTT log continuously to the point I'm getting multiple per second.

Environment Zigbee2MQTT version: 2.6.1 Node.js version: 18.20.8 npm version: 10.8.2 OS: Ubuntu 24.04.3 LTS (noble) Running in: Proxmox VM (Ubuntu guest) MQTT broker: [insert broker name/version] Zigbee adapter: SLZB-MR4 Chipset: EFR32MG26 Adapter firmware: 20240602 Adapter type (Z2M config): ember

Coordinator Info Coordinator type: ember Firmware version: 20240602 Network state: Running Zigbee2MQTT DB: Clean/fresh install (no previous devices or database) Adapter connected via ethernet.

Zigbee Network Total devices: 59 Repeater devices: 50+ Signal strength (LQI): Most devices have LQI ≥ 120 Network health: Stable, no routing issues, no pairing loss Given the high repeater count and strong LQI across the network, this appears not to be caused by network instability or interference.

Problem Behavior Time sync errors appear in logs every few minutes No device dropouts or visible loss of communication No pairing loss Issue started immediately on clean install Survives reboots, adapter reconnects, and restarts

zhc:tuya: Failed to sync time with '0xa4c138ad92360951' (Error: ZCL command 0xa4c138ad92360951/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,75,178,196,48,76,63,100]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '36257'.))

What I’ve Tried Clean install of Ubuntu 24.04.3 LTS Clean install of Zigbee2MQTT 2.6.1 Flashed latest firmware (20240602) to SLZB-MR4 Downgraded Node.js from v22 to v18 LTS Reinstalled dependencies via npm ci Enabled debug logging Restarted Zigbee2MQTT and VM

Let me know what else you need and I'd be happy to provide the relevant information.

The main device I have is https://www.zigbee2mqtt.io/devices/ZMS-206US-4.html#zemismart-zms-206us-4

What did you expect to happen?

I expect that the message is not shown and the time is synced.

How to reproduce it (minimal and precise)

This started from the moment I added the first device.

Zigbee2MQTT version

2.6.1

Adapter firmware version

20240602

Adapter

SLZB-MR4

Setup

Intel NUC with proxmox on an unbuntu server.

Device database.db entry

{"id":16,"type":"Router","ieeeAddr":"0xa4c138e18df4b70e","nwkAddr":32042,"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":"~K0i~K0iK0iK0iK0i�K0i�K0i�K0i","65506":56,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE204_wwaeqnrf","powerSource":1,"zclVersion":3,"dateCode":"","appVersion":74}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1756951491547}

Debug log

No response

u15jtau avatar Sep 04 '25 02:09 u15jtau

Could you provide the debug log of this?

See this on how to enable debug logging.

Koenkk avatar Sep 04 '25 18:09 Koenkk

Same spam error in log - device Moes BHT-002

[2025-09-05 02:24:27] error: zhc:tuya: Failed to sync time with '0xb0c7defffec56b9f' (Error: ZCL command 0xb0c7defffec56b9f/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[104,186,31,54,104,186,73,102]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Timeout - 9736 - 1 - 11 - 61184 - 11 after 10000ms))

enigmaspb avatar Sep 04 '25 23:09 enigmaspb

Please provide the complete debug log (I need more than just the error)

See this on how to enable debug logging.

Koenkk avatar Sep 05 '25 18:09 Koenkk

Have the same error, consumed 35 gigs free space and that's how i notifed it :

[2025-09-05 22:36:57] debug: zh:ember: ~~~> [ZCL to=0xa4c1385a2f02a562:51430 apsFrame={"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":0} header={"frameControl":{"reservedBits":0,"frameType":1,"direction":0,"disableDefaultResponse":false,"manufacturerSpecific":false},"transactionSequenceNumber":240,"commandIdentifier":36}]

[2025-09-05 22:36:57] debug: zh:ember:ezsp: ===> [FRAME: ID=52:"SEND_UNICAST" Seq=179 Len=34]

[2025-09-05 22:36:57] debug: zh:ember:uart:ash: ---> FRAME type=DATA frmTx=3 frmRx=5

[2025-09-05 22:36:57] debug: zh:controller:endpoint: Error: ZCL command 0xa4c1385a2f02a562/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,78,6,92,48,78,34,124]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":51430,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":185},"zclSequence":239,"commandIdentifier":11} timed out after 10000ms)

at Object.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/oneWaitress.ts:196:23)

at EmberOneWaitress.startWaitingFor (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/oneWaitress.ts:220:50)

at /app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2035:55

at processTicksAndRejections (node:internal/process/task_queues:105:5)

at runNextTicks (node:internal/process/task_queues:69:3)

at processImmediate (node:internal/timers:453:9)

at Queue.execute (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20)

at EmberAdapter.sendZclFrameToEndpoint (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1971:16)

at Request.send (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:86:25)

at Endpoint.sendRequest (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:358:20)

[2025-09-05 22:36:57] error: zhc:tuya: Failed to sync time with '0xa4c1385a2f02a562' (Error: ZCL command 0xa4c1385a2f02a562/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,78,6,92,48,78,34,124]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":51430,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":185},"zclSequence":239,"commandIdentifier":11} timed out after 10000ms))

elalitarek avatar Sep 05 '25 20:09 elalitarek

Hi Log file attached.

log.log

u15jtau avatar Sep 05 '25 22:09 u15jtau

Fixed it!

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

Koenkk avatar Sep 06 '25 18:09 Koenkk

Hi, Still getting mcuSyncTime errors this morning with the latest dev release for these devices :

[2025-09-07 10:08:42] error: zhc:tuya: Failed to sync time with '0xa4c1382913b655dd' (Error: ZCL command 0xa4c1382913b655dd/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[104,189,61,129,104,189,89,161]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":54031,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":104},"zclSequence":150,"commandIdentifier":11} timed out after 10000ms)) [2025-09-07 10:08:55] error: zhc:tuya: Failed to sync time with '0xa4c138b442aa4702' (Error: ZCL command 0xa4c138b442aa4702/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[104,189,61,141,104,189,89,173]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":33556,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":143},"zclSequence":155,"commandIdentifier":11} timed out after 10000ms)) [2025-09-07 10:08:57] error: zhc:tuya: Failed to sync time with '0xa4c138b7789bcd97' (Error: ZCL command 0xa4c138b7789bcd97/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[104,189,61,143,104,189,89,175]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":9956,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":162},"zclSequence":157,"commandIdentifier":11} timed out after 10000ms))

Perhaps they were not targeted by the fix ? Have a nice day !

JNow01 avatar Sep 07 '25 08:09 JNow01

@JNow01

  • could you provide the debug log of this?
  • I'm afraid I cannot disable the time sync of this device, otherwise the device wouldn't have the time which is required for the schedule.

Koenkk avatar Sep 07 '25 19:09 Koenkk

Hello, I still have the problem, with the latest dev branch version.

Have a nice day

teslut avatar Sep 09 '25 12:09 teslut

The same problem here, continuous error messages from Tuya devices in Zigb2mqtt. So much that my entire ZigBee network is disrupted.

peletonduwer avatar Sep 15 '25 06:09 peletonduwer

With what device?

Koenkk avatar Sep 16 '25 19:09 Koenkk

With what device?

Hi,

It's the Tuya PJ-1203A (zigbee smart energy meter). I have 2 of these devices and both have the same problem. The 0xa4c.....f42c and 0xa4c....f959 (both PJ-1203A devices)

[2025-09-16 23:32:00] error: zhc:tuya: Failed to sync time with '0xa4c138c35092f42c' (Error: ZCL command 0xa4c138c35092f42c/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,92,147,189,48,92,175,221]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '7997'.)) [2025-09-16 23:32:04] error: zhc:tuya: Failed to sync time with '0xa4c138c35092f42c' (Error: ZCL command 0xa4c138c35092f42c/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,92,147,189,48,92,175,221]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '7997'.)) [2025-09-16 23:32:06] error: zhc:tuya: Failed respond to version response '0xa4c1385bd8d4f959' (Error: ZCL command 0xa4c1385bd8d4f959/1 manuSpecificTuya.mcuVersionRequest({"seq":2}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":25050,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":132},"zclSequence":79,"commandIdentifier":11} t

peletonduwer avatar Sep 16 '25 21:09 peletonduwer

I have this same error with this device: https://www.zigbee2mqtt.io/devices/PJ-1203A.html#tuya-pj-1203a

HAOS 16.2 running on RPi 4. Zigbee2MQTT 2.6.1-1 Sonoff Zigbee dongle - E with Ember 7.4.5.0

zhc:tuya: Failed respond to version response '0xa4c1384e31082f59' (Error: ZCL command 0xa4c1384e31082f59/1 manuSpecificTuya.mcuVersionRequest({"seq":2}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":29572,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":179},"zclSequence":133,"commandIdentifier":11} timed out after 10000ms))

ansantos avatar Sep 17 '25 13:09 ansantos

My environment:

Zigbee2MQTT version 2.6.1 (dockerized)
Coordinator type ZStack3x0
Coordinator revision  20250321
Total devices: 61

I have three of these energy monitors.

Zigbee Model TS0601
Zigbee Manufacturer _TZE204_81yrt3lo
Manufacturer Tuya
Model PJ-1203A

All throwing that error:

error: zhc:tuya: Failed to sync time with '0xa4c138077008e020' (Error: ZCL
command 0xa4c138077008e020/1
manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,93,179,137,48,93,109,57]},
{"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false})
failed (Timeout - 9362 - 1 - 180 - 61184 - 11 after 10000ms))
error: zhc:tuya: Failed to sync time with '0xa4c138e25103c300' (Error: ZCL
command 0xa4c138e25103c300/1
manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,93,150,35,48,93,79,211]},
{"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false})
failed (Timeout - 6457 - 1 - 155 - 61184 - 11 after 10000ms))
error: zhc:tuya: Failed to sync time with '0xa4c138c66988ddf0' (Error: ZCL
command 0xa4c138c66988ddf0/1
manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,93,146,205,48,93,76,125]},
{"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false})
failed (Timeout - 8570 - 1 - 105 - 61184 - 11 after 10000ms))

reflectivecode avatar Sep 17 '25 18:09 reflectivecode

For PJ-1203A it's fixed on the dev branch.

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

Koenkk avatar Sep 17 '25 20:09 Koenkk

Hello, Same thing here with _TZE204_ltwbm23f @Koenkk Do you know how to enable time Sync in external converter ? Since 2.6.1 andreypuhovsky_sstefanowski_mod--TZE204_ltwbm23f-beta6.js converter is invalid caused by onEvent: tuya.onEvent is not a function which seems related to device network Sync !

bedouinvert avatar Sep 29 '25 16:09 bedouinvert

Time sync is enabled out of the box, no external converter needed.

Koenkk avatar Oct 04 '25 12:10 Koenkk

Time sync is enabled out of the box, no external converter needed.

So, if i disable tuya.onEvent line in the external extendeur, time Sync will work for my TRV ?

bedouinvert avatar Oct 04 '25 15:10 bedouinvert

For _TZE204_ltwbm23f you can remove the external converter since it's supported out of the box in z2m 2.6.2 (including time sync)

Koenkk avatar Oct 05 '25 12:10 Koenkk

Hello, i have the same problem with Moes SFL02-Z-1 - (_TZE200_stvgmdjz), SFL02-Z-2 - (_TZE200_uenof8jd), SFL02-Z-3 - (_TZE200_zo0cfekv), and I think SFL02-Z-4, too but I don't have device, and I don't know its fingerprint. I have about 40 devices 1, 2, 3- gang, and its spamming a lot of errors every one minute

[15.10.2025, 22:40:21] zhc:tuya: Failed to sync time with '0xa4c13828242e9986' (Error: ZCL command 0xa4c13828242e9986/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,130,195,43,48,130,223,75]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":335,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":113},"zclSequence":222,"commandIdentifier":11} timed out after 10000ms)) [15.10.2025, 22:40:27] zhc:tuya: Failed to sync time with '0xa4c138a3c862a7a4' (Error: ZCL command 0xa4c138a3c862a7a4/1 manuSpecificTuya.mcuSyncTime({"payloadSize":8,"payload":[48,130,195,49,48,130,223,81]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed ({"target":33099,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":121},"zclSequence":224,"commandIdentifier":11} timed out after 10000ms))

@Koenkk Can You help with this, please ? Because of this errors traffic my MQTT web is lagging as much as I can't use it. Thanks for Your reply :)

mdpatryk avatar Oct 15 '25 20:10 mdpatryk