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

Accessories no longer responding #629

Open
gavinhuet opened this issue Dec 16, 2024 · 12 comments
Open

Accessories no longer responding #629

gavinhuet opened this issue Dec 16, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@gavinhuet
Copy link

Unable to control any of accessory via Homebridge or HomeKit.
Confirmed that everything is still working via the Tuya Smart app on iOS.

If I uninstall the plugin and re-install it, no accessories are found.

Issue arose over the weekend of 14-15 Dec 2024.

{
"name": "TuyaWebPlatform",
"options": {
"username": "REDACTED",
"password": "REDACTED",
"countryCode": "64",
"platform": "tuya"
},
"defaults": [
{
"id": "eb74d290572afee1261ez0",
"device_type": "light",
"min_brightness": "0",
"max_brightness": "1100",
"light_characteristics": [
"Brightness"
]
}
],
"scenes": false,
"_bridge": {
"username": "0E:D4:55:BB:7C:7B",
"port": 55921
},
"platform": "TuyaWebPlatform"
}

@gavinhuet gavinhuet added the bug Something isn't working label Dec 16, 2024
@mbdmbd
Copy link

mbdmbd commented Dec 16, 2024

Also seeing this. Have done a number of attempts at reconfiguring, removing cached accessories, and no luck. If I had to guess, I'd suspect that Tuya might have changed something at their side?

Running in a Docker container - current homebridge/homebridge:ubuntu

TuyaWebPlatform v1.1.5
Node v22.12.0
HomeBridge v1.8.5
HomeBridge UI v4.65.1

$ docker logs homebridge | grep -i tuya
...
[12/16/2024, 7:53:09 PM] Loaded plugin: @milo526/[email protected]
[12/16/2024, 7:53:09 PM] Registering platform '@milo526/homebridge-tuya-web.TuyaWebPlatform'
[12/16/2024, 7:53:09 PM] [TuyaWebPlatform] Initializing TuyaWebPlatform platform...
[12/16/2024, 7:53:09 PM] [TuyaWebPlatform] Initializing child bridge 0E:31:XX:XX:XX:XX
[12/16/2024, 7:53:10 PM] [TuyaWebPlatform] Launched child bridge with PID 152
[12/16/2024, 7:53:10 PM] Registering platform '@milo526/homebridge-tuya-web.TuyaWebPlatform'
[12/16/2024, 7:53:10 PM] [TuyaWebPlatform] Loaded @milo526/homebridge-tuya-web v1.1.5 child bridge successfully
[12/16/2024, 7:53:10 PM] Homebridge v1.8.5 (HAP v0.12.3) (TuyaWebPlatform) is running on port 32969.
[12/16/2024, 7:53:10 PM] [TuyaWebPlatform]

@bmdzi1
Copy link

bmdzi1 commented Dec 16, 2024

Confirm same problem here. Also arose on the weekend of 14-15 December 2025. Have also tried deleting cached accessories.

Homebridge log shows the following:

16/12/2024, 22:48:09] [TuyaWebPlatform] Initializing TuyaWebPlatform platform...
[16/12/2024, 22:48:09] Loading 1 accessories...
[16/12/2024, 22:48:13] [TuyaWebPlatform]

The final entry above usually would state the login details and something like "successful connected" or similar.

@ckangnz
Copy link

ckangnz commented Dec 20, 2024

I'm having the same issue. It was working perfectly fine and all of a sudden it's not working from today. I've only made a change to 'show scene' and all of my devices aren't updating either on hoobs nor homekit. It works on the Smartlife App, as well as Tuya Developer API calls. Seems hoobs API call isn't triggering the API correctly? I can't seem to turn on the debugger mode on Hoobs unfortunately :(

@brian-su
Copy link

I've had the same issue. But pure dumb luck I accidentally re-installed the plugin and set it up as a child bridge. Then adding the bridge to HomeKit has miraculously fixed everything. But I have 0 idea how or why.

@mbdmbd
Copy link

mbdmbd commented Jan 1, 2025

Have tried removing the child bridge, uninstalling plugin, re-installing, and still seeing the same issue.

[1/1/2025, 4:36:26 PM] Registering platform '@milo526/homebridge-tuya-web.TuyaWebPlatform'
[1/1/2025, 4:36:26 PM] [TuyaWebPlatform] Loaded @milo526/homebridge-tuya-web v1.1.5 child bridge successfully
[1/1/2025, 4:36:26 PM] Loaded 0 cached accessories from cachedAccessories.xxxxxxxxxxxx.
[1/1/2025, 4:36:26 PM] Homebridge v1.8.5 (HAP v0.12.3) (TuyaWebPlatform) is running on port 35632.
[1/1/2025, 4:36:27 PM] [TuyaWebPlatform] 

@raccoon-mh
Copy link

raccoon-mh commented Jan 1, 2025

I'm having the same problem. The following methods didn't help.

  • I tried reinstalling the new home bridge.
  • I have reinstalled and updated this new plug-in.
  • I tried changing my tuya smart life account.
  • I tried to provide Virtual ID to connect directly.
    --
    I guess maybe the API etc on the tuya platform has changed... maybe..
    I am not sure because I did not print debugging logs.
    --
    I'm waiting for it to be resolved as soon as possible, and I'm willing to help you if you need help.

@Hellangel1987
Copy link

Same Issue Here -

[01/01/2025, 15:45:40] [TuyaWebPlatform] Launched child bridge with PID 4695
[01/01/2025, 15:45:40] [TuyaWebPlatform] Loaded @milo526/homebridge-tuya-web v1.1.5 child bridge successfully
[01/01/2025, 15:45:40] Loaded 0 cached accessories from cachedAccessories.xxxxxxxxxxxxxxx.
[01/01/2025, 15:45:40] Homebridge v1.8.5 (HAP v0.12.3) (TuyaWebPlatform) is running on port 55536.
[01/01/2025, 15:45:40]
[01/01/2025, 15:45:41] [TuyaWebPlatform] Missing required id property on device configuration, received:
{
"device_type": "form"
}
[01/01/2025, 15:45:41] [TuyaWebPlatform] Enable cloud polling with interval 1200s

I'm waiting for it to be resolved as soon as possible, and I'm willing to help you if you need help.

@ckangnz
Copy link

ckangnz commented Jan 5, 2025

I ended up moving away to tuya platform plugin..:( i liked this plugin more but it seems it's not maintained anymore..

@gavinhuet
Copy link
Author

Likewise, it was the opportunity for me to move away from homebridge and tuya.

@benreimers
Copy link

I'm having a similar problems with both this plugin and the Tuya platform plugin. There appear to be issues with a couple of the Tuya endpoints (Central Europe and Western America) that are rejecting ICMP connections.

When I try to ping openapi.tuyaeu.com and openapi.tuyaus.com I'm getting no response, but I am getting responses from all other endpoints. However, openssl is connecting to those two endponts and returning SSL certificates that are self-signed (the others are not self-signed).

@0chil
Copy link

0chil commented Jan 8, 2025

Finally got it working.
I got hint from what benreimers said and after some researching, I found this.
The discussion is from similar plugin - having same issues.
Somehow disabling IPv6 system-wide makes SSL problems gone - maybe it's an issue related to IPv6 with Tuya IoT servers in some regions.

you should try following commands:

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
sudo sysctl -p

@bmdzi1
Copy link

bmdzi1 commented Jan 10, 2025

Thank you so much Ochil!

I went into terminal on my home bridge, and copy pasted the commands above and all is now working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants