-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Tuya needs reloading as they stop working #90661
Comments
Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) tuya documentation |
Hi all. I have the same problem. All devices in the Tuya application are working normally. But in HA power or current sensors of Wi-Fi outlet, for example, begin to show the same value. If I try to control the switch (turn it on or off), it responds as expected, but the state of the switch does not change. I have tuya temperature and humidity sensors and it seems that in HA they continue to work as usual at the same time. If I restart the tuya integration everything works immediately. If I don't restart the integration, the outlet sensors may start working after 2/3/4 hours. If I add the same sensors to the LocalTuya integration, they show true values even when the tuya integration sensors freeze. HA version is 2023.3.6 and I have this problem since 2023.3.5. |
Same here |
I’ve had the same problem for the last week or so. My tuya plugs are still working, and (usage) showing in the Smart Life app. In HA it visually freezes, so it shows a constant power usage even when not in use anymore. Reloading the app fixes it for a while, but it freezes again. |
I had the same problem for the last week or so too exactly as petragom stated! Thanks! |
This problem seems to be an old issue and all I found is a workaround and
no solution. I am afraid I would have to scrap the project without Tuya and
workaround to have it automically periodically reload is not neat either.
…On Sun, 02 Apr 2023, 18:35 aaklan, ***@***.***> wrote:
I had the same problem for the last week or so too exactly as petragom
stated! Thanks!
—
Reply to this email directly, view it on GitHub
<#90661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPVBL546YUOS32S6FHCGI3W7GTEVANCNFSM6AAAAAAWQEFVEI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello, I have the same problem too, except that this morning, restarting the extension and Home Assistant do nothing. I can't get the Tuya Cloud integration to work again. |
Definitely something up with Tuya at the moment. Lot's of reloading of the Tuya module and this morning required a full restart of HA to get power measurements and switch states to refresh in the UI. Hard to tell whether it's a recent HA update or something up with the Tuya back end. For what it's worth, the Smart Life App seems to have had no issues with reporting correct state, so leaning on the public API/cloud from Tuya or something in HA that's broken in last update. Running Home Assistant 2023.3.6 here. |
Same here: devices disconnecting all the time, especially late night - early morning CET. However, reloading integration does not solve it every time. Rebooting HA helps sometimes but for some hours only. PS: the Tuya Integration in Samsung SmartThings does not suffer any disconnections as far as I can see. |
I have the same problem, started about a week ago and it seems to be getting worse (first restart solved the problem for few days, now it seems to fail daily). This morning I had to reload tuya integration twice, first reload did get actual values but didn't update after that, second worked (at least for now). Also it seems that it usualy stops working when the sensor values don't change for a while, for example during the night. |
I have the same problem. Every now and then I loose the status of my tuya devices. Reloading the integration works but that is a workaround and not a solution. |
my devices do not show up at all since 12 hours ago. |
I am having the same issue, everything has stopped working. Devices show as offline but they still work via tuya app. |
It's not a good workaround. It's not even a poor workaround but my temperature sensors keep connected with this 'trick': Edit: running for 5 hours and zero interruptions of sensors and plugs. |
Same here. |
Same. Happening for a few days already. My energy meter gets stuck until integration is reloaded or HA restart and then lasts for few hours. |
restarting HA or reloading the integration doesn't help.
|
Same, I have two projects where I use contact sensors and both block after a while working properly. I need to recharge tuya entity to get it working again. Today both projects have stopped working at the same time, I will analyse if there is any pattern of time during which they work normally and the logs of the entity in case they give clues. Thank you |
im also experiancing same issue |
Today I am having several tuya stops every hour / 2 hours in two different projects (with different cloud accounts tuya) so the problem seems global. It's not normal, normally when I recharge the entity works well for a few days and then loses synchronisation again... |
Anyone else who tried this temporary 'workaround'? Edit: workaround is not stable anymore either: disconnecting but less frequently than before. |
Same here. |
Same problem for me. It started a couple of days ago. Started with two temperature sensor now all Tuya linked devices frozen in HA but still working normally in Smart Life App. I have tried to reload the Tuya Integration but makes no difference. |
This issue seems to be there for years but I did not find anyone who knows why this is happening. Any clues? |
Hi,
I tried this workaround for two days now, but no luck, the problem remained
(even worse today, I need to reload the whole Tuya integration in every 20
minutes)
VIMVa ***@***.***> ezt írta (időpont: 2023. ápr. 4., K,
13:42):
… It's not a good workaround. It's not even a poor workaround but my
temperature sensors keep connected with this 'trick': I have a spare plug
and made an automation that switches it off every minute. Not on and off,
just off. I also see that my other plugs do not disconnect any more
contrary to the few seconds that the integration reloaded every hour with
my earlier workaround. It's early hours that I'm running this poor
'workaround'... so there are no guarantees but might help for some,
awaiting a real solution.
Edit: running for 5 hours and zero interruptions of sensors and plugs.
Anyone else who tried this temporary 'workaround'?
I have not had any interruptions since I started to run that automation.
It's not a solution by any means but it may be useful for some who are
depending on a stable integration and it may point the developers to a
possible cause.
—
Reply to this email directly, view it on GitHub
<#90661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCDRZ6XTFUEZWHVMYTMAYLW7QCKTANCNFSM6AAAAAAWQEFVEI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have the same issue. So far, my 4 tries to reload the integration fixed it for a few hours. |
I know, sorry: I edited my last post: it worked for a while but I'm back to reloading too. We could but try... The automatic reload even interfered with my other Tuya automations. One must make sure that the other automations fire (at least seconds) outside the reload periods (or vice-versa). An automation for a plug that switches on and/or off on the hour or minute could fail because the integration is reloading at that very moment. Let's hope this gets solved very soon. |
Same issue here with a temperature/humidity sensor. I have to reload Tuya integration to values refreshed. |
tfhansen, this is probably a LocalTuya issue - as of version 2023.5 of Home Assistant they removed the async_get_registry method (it was priviously declared as deprecated), and custom integrations should use the async_get method instead but LocalTuya still uses the removed method. There is already a PR in the LocalTuya repository |
At this moment sometimes al my devices are gone, reload brings them back. Decided that Tuya had become to a "not to be trusted" system. So replaced all switches with Zigbee switches, now only remote temperature sensors, a smoke alarm and an infra red transmitter are left in my Tuya range. |
So we have to wait until someone (tuya developer?) fix this problem? |
I am not aware of any fix being issued by tuya, but my automated re-load of the integration (triggered by operating a plug and then checking its reported status) has not fired for 2-3 days now (possibly since I updated to 2023.5.3 but not sure), it seems to be working reliably again (I will probably regret saying that out loud)... What are other folks seeing? |
Yes, same here. Since 15th of May my reload has triggered only two times. And I do the check every 30 minutes. I have not upgraded, still on a very old version: 2023.1.7 |
@dpgh947 I have a super primitive automation, just reloading every 20 mins, but I disabled after I saw your comment - everything seems to be working for me so far without reloading so fingers crossed. |
Same here. I stopped reloading automation and so far so good... |
Just curious as to whether this is still not working for everybody - for me, I have ditched nearly all of my Tuya devices, left with just 2 brightness sensors. Things have certainly improved but sensors still gets stuck once in a while, but not nearly as frequent as they used to and localtuya works. Looking around to replace these sensors too and then i will be done :-) |
For me everything is as stable as it was. Maybe some 30 Tuya devices.
I started moving to Zigbee some months ago, but find that not so stable
also. Many sensors (Aqara temperature) loose contact every few weeks and
need a reset.
Jeroen
Op wo 14 jun. 2023 06:06 schreef tfhansen ***@***.***>:
… Just curious as to whether this is still not working for everybody - for
me, I have ditched nearly all of my Tuya devices, left with just 2
brightness sensors. Things have certainly improved but sensors still gets
stuck once in a while, but not nearly as frequent as they used to and
localtuya works. Looking around to replace these sensors too and then i
will be done :-)
—
Reply to this email directly, view it on GitHub
<#90661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A567YFGCI23LN6UPBX7K6SLXLE2ERANCNFSM6AAAAAAWQEFVEI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It did start working about a week ago, then stopped and started a few times. But when it stopped, it would be for 24hrs or more. I have an automation which checks every 30mins and reloads if Tuya has failed (and increments a counter). It’s triggered every 30mins for the last two days until 2hrs ago - when Tuya resumed working. Let’s see how long that lasts. Since it works for some and not others, I assume at least in part it is related to my setup but I can’t work out what. All the sensors used to work, there’s nothing in the logs etc. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Just to mention that this problem is still happening. |
I am also experiencing the problem again. In June it had disappeared. I am not sure what could be the cause. Latest Home Assistant version? A recurring TUYA problem? My TUYA trial-account is registered correctly and valid until April 2014. Switches don't show current state and automations don't turn lights on/off even though the automation was triggered correctly. |
I have also been getting occasional problems again for the past few days. Devices respond immediately to commands ok (they turn on or off) but the status update is sluggish, sometimes instant, sometimes takes several seconds, sometimes doesn't update at all. But I am seeing this not just on tuya devices, but also on Drayton Wiser smart plugs, which are nothing to do with tuya, so I am starting to wonder if this is something else entirely and not specific to tuya, maybe something in the recent HA updates. |
I thought I'd searched github well, but apparently not as I raised #102124 as a duplicate. This is really irritating and completely puts me off using Tuya for any more devices. |
Certainly the best thing to do. Never have cloud based Tuya devices. With localtuya is it more stable. |
This shouldn't be closed, Lots of people are still experiences issues. I have 30 Light switches, working on Tuya..... many automatons, Its been months for me. I just want a answer to know if i have to change out all of those stitches. Local tuya for me is really unstable as well. Im so frustrated with this issue, I wish i was smarter to fix this myself |
Localtuya works fine for wired (no battery) devices from what I can experience at my home. |
This issue is closed but this #91899 is open, are they similar? Last time a update from Tuya solved the issue, could be on their side again. But I have not experienced any problems lately. |
See my comment #91899 (comment) |
I think you are right. And it looks like problem on Tuya side currently. What I also notice that it is a problem for smart sockets for me, while temperature sensors are ok. |
The problem
Tuya integration needs reloading almost daily as devices become unresponsive on HA only.
What version of Home Assistant Core has the issue?
2023.3.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: