-
Notifications
You must be signed in to change notification settings - Fork 60
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
Device becomes unconnectable until it is rebooted #299
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I have the same issue with two Feit dimmer switches. Logger: custom_components.localtuya.coordinator
|
They were working fine with the original loca tuya. |
If reinstallation of LocalTuya I did was correct (as I mentioned above), then the issues continues. This issue occurs with dimmers, IR transmitters, and some smart plugs. |
HACS has a bug sometimes that If you select master it's actually reject and revert to old version, either way I'll push new update soon if the bug remains keep in mind that with new changes the devices needs to reboot "from the power" then it should at least be stabilized and reconnect better. |
Just confirming I'm also having the same issue with 3 if 9 of my tuya devices. All available in the app, but 3 not available in the integration. Integration doesn't see any new devices to add, also rebooting the dimmer switch doesn't help me |
Some more strange data points to this issue. I found that the two mentioned devices intermittently reconnect and drop out again. And while they work flawlessly in the Tuya Smart app, they are the only two devices that produce a "Network Error" when I perform a "Check Device Network" in the Tuya app (click on the device, then the "edit" button in the top right corner, then "Check Device Network". |
Does the losing connection behavior still occurs in 2024.7.0 update? I'm kinda sure this isn't and not sure if it fixable since it more like network issue then integration issue |
Yes, no change. I agree that it is a strange issue but, again, it was working flawlessly for months in the original Local Tuya integration. |
Same issue remains in 2024.7.0. The devices disconnect and reconnect from time to time. |
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
The issue is still present. |
The problem persists. Is @xZetsubou trying any solution for this? |
same here |
Yeah super odd behavior. It's the same switches too, only 2 of my I don't work, but it's always the same 2. All 8 work fine in the tuya app though. I've power cycled the switches, nothing helps. |
Can you give more scenarios how is the issues starts to show up if there is something triggering it, Also enable the debug for both integration and devices that disconnect, then post FULL logs it may give us an insight of what causing this issue! |
So I deleted the device from local tuya and tuya app. Readded to tuya app, killed app and blocked tuya via DNS. Trying to add it again with localtuya gives "Connection to device succeeded but no datapoints could be found. Please try set-up again. If problem persists, create a new issue (including debug logs)." |
It's been many cases where people said that blocking devices DNS will make the devices goes into zombie state. Upstream quote:
More:
|
Unblocking DNS didn't help either |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
To be honest, I have no idea what's causing this issue or if it has anything to do with LocalTuya. Currently, when this problem occurs, the device won’t connect until it is unplugged and then re-plugged. It no longer accepts any local connections—not just from LocalTuya, but from other local tools as well. While it remains connected to the internet and can be controlled through the cloud, it refuses to connect locally. Restarting the Home Assistant instance doesn’t help. Unfortunately, this issue hasn’t happened to me, possibly because I don’t have many devices, and the logs aren’t reporting anything unusual. |
My device, after being unavailable for several hours, comes back online by itself. It's a cyclical behavior! |
Enable the debug for both device and integration then wait for it's dc'd and come-back post the logs here it may be a lot of lines so you can put into txt file. |
Just an update from my end. The two Feit dimmer switches (mentioned above) are working fine again after several HA updates. Not sure which one did the trick. Not losing and sleep over it. Just reverted back to the official tuya integration for that device and will check periodically whether I can reconnect through local tuya. |
home-assistant.log.1.txt |
After an internet outage the next LED driver died with "unavailable". I deleted the device and tried to resurrect via "configure". But again "connection succeeded but no data points found" |
I have the same problem... But it is very strange... But, if you ping the device, all good, the device have network connection... Edit1: If I restart the wifi router, it has nothing to do with, it will not solve anything, only the device restart will do it... |
This sounds very similar to a problem I had with the original localTuya when trying to use any Tuya device that did not go through the Tuya hub and only connected to the network to update data. This was predominately battery powered devices. |
Does this issue occurs randomly even if the device hasn't been connect to localtuya from the start? If yes, the master version has changed the may or may not affect this not sure however if you can install it and check keep in mind that the device may needs to reboot in-order to LT to connect into it hoping that it won't goes into that dead mode anymore. |
I have similar behaviour on wall switches (i used for shutter control), sometimes one of them can come totally off (according to the integration/ha), the only relevant message is: [bf2...wzp - local_curtain_bathroom] Connection failed: [Errno 113] Host is unreachable ('192.168.1.62', '6668') and even if it could be true that the physical object could loose wifi for a few seconds, it is functional, and tuya app can control it. |
+1 Installed: 2024.12.1 |
LocalTuya Version
2024.6.0
Home Assistant Version
2024.7.1
Environment
What happened?
I'm starting to use Local Tuya integration and I've already identified at least 2 devices that disconnect for no apparent reason (1 dimmer switch and 1 IR remote control). Even disconnected from Local Tuya, they work normally in the Tuya Cloud integration. To get the devices working again (at least for a while) I need to unplug them and plug them to the power.
Steps to reproduce.
the problem occurs randomly
Relevant log output
No response
Diagnostics information.
localtuya-c66281edf107979133eaa22f6a3217d8-IR escri-173b10c3457ca32d08831de53cd0f4f7.json
localtuya-c66281edf107979133eaa22f6a3217d8-D2moes-92d372c4595d286a2010608913313466.json
The text was updated successfully, but these errors were encountered: