homebridge-tuya-platform: [Tuya] [TuyaOpenAPI] Network error: . Retrying...

Prerequisite

  • Yes

Accounts

  • Yes

Country Code

1

Region Code

AZ (West US)

Logs

[18/11/2024, 2:00:40 am] [Tuya] Child bridge process ended
[18/11/2024, 2:00:40 am] [Tuya] Process Ended. Code: 1, Signal: null
[18/11/2024, 2:00:47 am] [Tuya] Restarting Process...
[18/11/2024, 2:00:48 am] [Tuya] Launched child bridge with PID 150945
[18/11/2024, 2:00:49 am] Registering platform '@0x5e/homebridge-tuya-platform.TuyaPlatform'
[18/11/2024, 2:00:49 am] [Tuya] Loaded @0x5e/homebridge-tuya-platform v1.7.0-beta.54 child bridge successfully
[18/11/2024, 2:00:49 am] Loaded 18 cached accessories from cachedAccessories.0E5E91BC96A1.
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: Zigbee无线网关
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 人体红外传感器
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 廳燈
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 四鍵無線情景開關(Zigbee)
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: WifiSmartLock
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 萬用IR遙控器 2
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: Zigbee中繼器
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 萬用IR遙控器
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 廚房燈
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 六键无线开关-Zigbee
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: SMARTLIGHT
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: Zigbee门磁
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 双键开关
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 暖爐
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: Powerful button
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: 風扇
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: Living Room Air Condition
[18/11/2024, 2:00:49 am] [Tuya] Loading accessory from cache: Second Air
[18/11/2024, 2:00:49 am] [Tuya] Log in to Tuya Cloud.
[18/11/2024, 2:00:49 am] [Tuya] [TuyaOpenAPI] Login to: https://openapi.tuyaus.com
[18/11/2024, 2:00:49 am] [Tuya] [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaus.com
path = /v1.0/iot-01/associated-users/actions/authorized-login
query = null
headers = {
  "t": "1731866449666",
  "client_id": "********************",
  "nonce": "cad744cb-5499-4955-b721-a4f74a7502b9",
  "Signature-Headers": "client_id",
  "sign": "F347E39686E3CA429AF4B691DCFEF4D1FFE9885D432D5A71AFE7EE26483FD0F1",
  "sign_method": "HMAC-SHA256",
  "access_token": "",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.54"
}
body = {
  "country_code": 1,
  "username": "********@****.com",
  "password": "****************************",
  "schema": "tuyaSmart"
}
[18/11/2024, 2:00:49 am] Homebridge v1.8.5 (HAP v0.12.3) (Tuya) is running on port 38948.
[18/11/2024, 2:00:49 am] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[18/11/2024, 2:00:50 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:00:51 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:00:52 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:00:53 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:00:55 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:00:58 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:01:02 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:01:09 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:01:23 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
[18/11/2024, 2:01:49 am] [Tuya] [TuyaOpenAPI] Network error: . Retrying...
AggregateError: 
    at internalConnectMultiple (node:net:1118:18)
    at internalConnectMultiple (node:net:1186:5)
    at Timeout.internalConnectMultipleTimeout (node:net:1712:5)
    at listOnTimeout (node:internal/timers:583:11)
    at processTimers (node:internal/timers:519:7)

Other Infomations

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 56

Most upvoted comments

It is quite bizarre. I was able to solve it by completely disabling IPv6 for the network interface in Synology’s Control Panel. A few days later, I updated the Homebridge container to the latest version. Like others have experienced, this again broke this plugin, and the solution this time was to reenable IPv6. I don’t understand why this works, but as long as it’s working, I’ll leave it alone.

Thanks @djb7, my config was missing the endpoint and I’ve never seen those instructions you linked to! 😃 My appschema is set to smartlife, not sure if that will affect things, but I’ll follow those instructions and fix up my config file and hope it works. Thanks for replying!

Confirming that disabling IPv6 and rebooting worked. Seems to be an issue for Australians connecting to the EU servers. I was also having issues with the homebridge-ring plugin and that issue was also resolved.

It was down for a few days, starting 22/12/2024 and given the Christmas period, I was just hoping it would resolved itself.

Exactly the same for me. Even thinking after Christmas it might sort itself!

I disabled ipv6 on my router in the ISP settings. It seemed to get it half working. I could turn things on and off using Homekit but I was still getting network errors in the Tuya plugin. After disabling IPv6 on my Ubuntu server, it appears to be fully resolved.

Confirming that disabling IPv6 and rebooting worked. Seems to be an issue for Australians connecting to the EU servers. I was also having issues with the homebridge-ring plugin and that issue was also resolved.

It was down for a few days, starting 22/12/2024 and given the Christmas period, I was just hoping it would resolved itself.

@mynameisbrendan Click on Cloud open your project, click Devices tab, Link App Account.

Mine stopped working for a couple of days, I tried all these things I have mentioned above … so difficult to tell which particular thing fixed it.

Working now though.

I read an earlier thread that said this happened to them (months ago) and it was a network issue with Tuya I believe… Unfortunately I think this might be one of those wait for it to sort itself out situations.

https://github.com/0x5e/homebridge-tuya-platform/issues/208