[APP] Tuya - Smart Life. Smart Living

Doesn’t this increase the load on the API? Extra API calls from Homey users every 30 minutes? :thinking:

My Tuya app also stopped working this morning, but after a restart it worked again (as reported here). I only have 4 Tuya devices, so I’ve set up my flows in a way that, if the Tuya node fails, the app restarts and tries again. With this method, I only get extra API calls when it is really necessary.

See the issue created by the Tuya crew on your GitHub repo. You need to implement exponential backoff with some jitter to not flood their server endpoint…

If you would have read the thread here or looked at the recent changes, you would have known that changes were already made last week…

Changes maybe, but not fixes. I observe the same issue happening still with v1.5.5, and the issue is still open/not linked to a PR. Ah no, just had a second look, the issue was deleted (?)

Well, the Github repo is only mirrored from our own internal Gitlab, so it makes sense that it is not linked to any PR on Github. If you look at the commit history you see that the fixes are there, as also posted here by us previously :slight_smile:

Also, to add a reply for some other questions: the limit is global, so also affecting Home Assistant users. As the app gives up refreshing the token when the limit is hit often enough, a restart works as at the time that you see that it has broken the limit is no longer active.

You are writing very demanding to the developer. I don’t know if this is intentional (let me give you the benefit of the doubt). But I believe the Tuya App is being developed for free on a best-effort basis, and that comes across as somewhat disrespectful. :wink:

If you think it is simple by reading through a GitHub issue, then fork the Tuya app and submit the fix in a PR to @drenso .

As far as I know Drenso is a software agency hired by Athom. They maintain multiple apps for Athom. Since it is a commercial organization I doubt that their maintenance and development activities are for free :wink:.

I’ll admit to some sympathy for Tuya . Its business model is based on providing the infrastructure for products produced by electronics manufacturers. The manufacturers focus on producing the hardware and Tuya takes care of the rest. I have quite a lot of Tuya lights and switches because they were low cost and, with very few issues, responsive and reliable when used with the Tuya/Smartlife app, and Alexa.

However, Tuya’s business model is being undermined by Matter. Tuya is seeing its business disappearing as people switch to Matter, because there’s no longer any need for the infrastructure. I’m sure I’m not alone in replacing failed Tuya devices with Matter ones. For now ‘works with Tuya/SmartLife’ still carries some weight, but I suspect not for long.

Given that situation, it might be becoming difficult for Tuya to justify maintaining/enhancing its servers because of high demand from existing users but reducing revenues from new ones. I’m sure it would love to charge HA/Homey users licence fees but (as I expect SmartThings is about to demonstrate) that would be cutting its own throat.

Just a thought but, if I’m right, it might be time to accelerate my Tuya replacement program.

Andy

I would never do that myself, I’m actually migrating towards the cloud, not away from it. Also I’m sure 99% of Tuya users don’t even know that they’re Tuya users, since there are many OEM apps which don’t have any Tuya branding.

When I buy new devices, I’m actually trying to find unsupported (non-Tuya) devices, because then I can reverse engineer the API myself

It’s correct I have some cecotec and Olimpia Splendid and Beghelli that use tuya system but have a personalized app without tuya logo or name, I discovered this just because try to connect to smart lige

I have to admit that I have migrated to Tuya Local.
Im already in week 8 of changing my lights from the mobile Tuya app to Homey and I couldn’t bring up more patience to wait for a fix (not blaming anyone, but myself), ik had so much problems to overcome, that it wasn’t fun to do anymore.

the initial intention for me using a homey, was to get everything offline, and i have to admit that the lag i had is totally gone.
i have a few devices that dont work locally, so those are still working with this app, but those are extra lights, that are not important if the doent work once in a while.

@drens Hoidtbdit also in that my flows don’t work?

I have a flow that my roller blind closes and opens at a certain time moms who don’t seem to do it anymore

Hi all

New to this app. I bought some energy sockets and connected them to homey via this app. I have the impression they are often not seen by homey and thus lacking energy readings. But I can’t seem to find an easy way to try the repair function on them. When you go to the device and press repair unconfirmed the code but then I have to scan the qr code with the Tuya app which is problematic as I’m doing this on the phone and can’t scan the qr code :face_with_peeking_eye: not sure if there is a better way to do this? Or am I missing something. I tried to do it via the webapp of homey but I don’t have the repair option on the device.

In the web app, right click a Tuya device tile and you’ll see a repair option.

Andy

It’s strange that you experience latency issues when using Tuya, especially since in my case the Tuya server is just as fast as directly connected devices. I run all devices via the cloud and I don’t notice any lag at all when controlling the devices. Maybe it’s some settings in your Wifi network that’s not set correctly? It’s at least not the latency to the server, that appears to be fine.Did you run the latency test on Wifi or Ethernet)?

Great thx going to try that

I ran the latency test over ethernet (the only right way to do that).

If it is a setting in my wifi network, I would expect that I would have the same problem with the local version, the wifi is the same

I have upgraded my wifi network, because i have a wall that refuses to cooperate and keeps the wifi from going to my other rooms.
so now I have a mesh network with 2 ethernet connected access points. the wifi is now great though my whole appartment.
But most of the times, when a device has to do something, it can take up to 2 seconds before the device actually does its job. (this was also the case with the old wifi).
now with the local version, same wifi, no lag at all.
so i guess it can be 2 things, my internet connection is rubbish or the cloud doesn’t respond fast enough.
I have a business internet connection from Ziggo (1200mbps and the latency checks out around 65)

I don’t know what the real problem is, but what I said, i did want to be able to control my devices locally in the first place

Ohh and I found out that my devices are cloud hosted in central europe

Vanavond ook weer tuya apparaten die pas weer werken na het herstarten van de app. Daarom heb ik ook een virtueel device toegevoegd en bovenstaande in mijn flow ingericht. Alleen heb ik niet de mogelijkheid op de tegel 'apps (herstart app Tuya) toe te voegen, want die zie ik niet mijn scherm.

Tonight, too, Tuya devices that only work again after restarting the app. That is why I added a virtual device and configured the above in my flow. However, I do not have the option to add the ‘apps (restart Tuya app)’ tile, because I do not see it on my screen.

In order to activate the App-section with flowcards, switch on the ‘Power User’-toggle, via the More (…) tab → Settings → Experiments.