-
Notifications
You must be signed in to change notification settings - Fork 569
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's go unavailable #726
Comments
HI have the same problem now also for a few days - but I only just noticed. Previously my Lenovo smart plugs that I run under LocalTuya were 100% solid. I have never had a single issue with them - they just worked and they were lightning fast! Unfortunately they now keep falling off HA going into an 'Unavailable' state before coming back online seconds of minutes later. The drop off pattern is (offline time, space between drops) is random, BUT, they are clustered - so it can be fine for hours (even 12 hours) then go haywire for a few hours, then back to normal....
Obviously while unavailable everything stops working...then it comes back (reported as 'Turned Off'). CP. |
I'm also experiencing this. I'm switching from tuya to localtuya due to their intermittent device state notification (lack of) rendering my devices state out of sync. However, it does not result in devices being unavailable. From the logs, after 2 days, I can see this. (4000 occurances 😅). Hope the log below helps. This error originated from a custom integration. Logger: custom_components.localtuya.common [706...3a1] Connect to 192.168.50.153 failed |
I've also got something similar going on with a bunch of smart sockets I also have a bunch of smart bulbs which still seem ok. This only just happened recently with an update via hacs Still running Home assistant 2021.12.10 at the moment |
My smart switches are all unavailable but it seems like localtuya has been dropped from core-2022.2. I deleted one switch to try and add it back but localtuya does not appear in the Integrations list. This core update has broken localtuya. |
I too have this problem with my devices. Light bulbs in my case. It also come in clusters where some devices gets unavailable over and over again and after a while some other devices become unavailable instead. My log gets overflown with errors and I can't reach the unavailable bulbs, drives me crazy. |
Updated: I've found the cause. So I manually set my router to static IP for each device and it seems working great now. |
Not in My case
This is not the cause in My case since they have not changed their IP, I can ser them in My routers Interface Still connected with the same IP. |
Mine have always been on static IPs so I know that's not my cause.... :-(
…On Tue, 8 Feb 2022 at 13:21, Saramidek ***@***.***> wrote:
Not in My case
Updated: I've found the cause. In my case, I use YAML config and when the
IP of the device changes, it stops working. Did a ping to confirm it is no
longer reachable.
So I manually set my router to static IP for each device and it seems
working great now.
This is not the cause in My case since they have not changed their IP, I
can ser them in My routers Interface Still connected with the same IP.
—
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUIP7ZQRZXEHFLP6RXAJLL3U2BOW3ANCNFSM5NHDPFDA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have similar issue once i updated to core 2022.2.3. hope this is addressed |
I had to download the repo again and do a HA re-start. Then the Integration was visible in the Add Integration wizard and I could add devices again. |
For some extra insight, I have both 3.1 and 3.3 protocol localtuya devices and this dropout behaviour only occurs on the 3.1 devices. |
Mine is all running 3.3 protocol and is experiencing the intermittent unavailability. So it should occurring regardless of which protocol we are using. Seems this issue has yet to be assigned to work on? |
Fair enough, logic would dictate it be model-bsaed then. |
Hi guys Try to disable SYN-flood protection on your router, or at least increase its number to higher (especially if you are using OpenWRT on your router because its number is way too low ). One possibility is that the router detects TCP SYN-flood from HA and make it unreachable to local devices (while these devices themself still work) So ping the devices from HA, and your PC, to make sure this is the case first. |
My DoS protection is set to off (to disable syn-flood protection) but the issue still persist. |
Hi, I am also having this issue. All using 3.3. Random which device goes offline. 2 different models. Static reservation in DHCP and I can still ping the devices. Happy to try anthing if someone wants to test something. Thanks |
Hi all, I too have been seeing the intermittent disconnects from HA. I have just under 30 devices configured with a YAML file. All are static IP's. I have setup up monitoring of all these devices using my monitoring instance (Zabbix) and notice that my LocalTuya devices are seeing rather high ping response times, which seems to correlate with the disconnects/unavailable from HA. Seeing pings in the range of 20 - 100 ms (which is high on my network for sure). I thought I would do some testing, so I completely disabled localtuya on HA to test. Low and behold, my response times all dropped to between 5-10 ms as soon as localtuya was disabled. I'm running a Unifi system at home here. Not sure why localtuya seems to be causing the extremely high latency when enabled. I have been battling this for quite some time. Also wanted to note that I'm not blocking any outgoing connectivity to Tuya services (firewall or DNS blocking) as I'm not overly concerned about the cloud component at this time. My initial reason for trying localtuya was just to improve response time. If anyone has any further thoughts, I would love to hear them. Willing to try a few things to see if we can figure out what is causing the network latency. Thanks! |
That's the same problem isn't it? #716 |
No, not the same for me. |
In my particular case the localtuya add-on is creating excessive network latency on my lan when it is configured, this in turn causes the devices to drop off (become unavailable) for a few seconds/minutes. Does not appear to be the same behaviour as #716 . The other issue appears to just be an API issue where the status does not update, but in my case it is actually something at the network layer that localtuya seems to introduce. |
I have this exact same thing happening. My logs show: Due to timeouts: This is the same as #753 |
I concur with fullhack2 here. I am watching my devices on the iot tuya site. Device shows offline in HA and in iot. As soon as I disable my localtuya device in HA, bam, the device shows online in iot. |
For me however, my devices are blocked from the router side. They cannot access the cloud at all, so I shouldn’t be having these problems. Literally they go offline I change the icon and it’s back. Very strange |
Hi guys. Give pr #491 a try as that fix has not been merged to master yet. |
The Zombie fix #491 seems to have fixed the issue with my devices dropping off and not coming back. Those devices would just ping and nothing else. |
How do I install fix 491? I'm running Localtuya installed via HACS. |
Fix is in this comment. |
Thanks for the link! Will this cause any conflicts within HACS, and will it be overwritten if localtuya updates via HACS? |
This does not conflict with HAVS. You are swapping over the localtuya files only. |
Hello all, I took a break with localtuya for a while because of the network latency issues introduced as soon as it was enabled. I was hoping that perhaps the issue may have been resolved by now, but I am still seeing the same extreme latency uptick (devices would sit at 3-5ms and then skyrocket to 50-60ms when localtuya is enabled). My devices drop to unavailable occasionally and sometimes my automations fail to execute properly as something like 1 bulb timesout when the automation runs. As soon as I disable localtuya, the latency to those devices drops back to the 3-5ms range. Just wondering if anyone has further insight or can assist me in finding the latency ghost to make localtuya a more reliable option for me. Thanks! |
Hi, I have this problem all the time from Localtuya. My devices continue to go unavailable and then once I change the icon for the entity, it comes back on for a little while. My devices are blocked from accessing internet via my router. Any ideas?
The text was updated successfully, but these errors were encountered: