Closed motogon closed 5 hours ago
@motogon
SOLUTION!!! I was migrate to HA v. 2024.1.0 (where no QR code authentication) and everything work correct more than 12 hours
Problem in HA core for Tuya, not with Tuya ioT API
It doesn't work either. After a reboot or after an indefinite period of time, it requires authorization!!!
It is sad that HA developers are silent on this problem I checked integration of Tuya in homebridge - everything works fine there. Apparently the problem is in the HA integration
Apparently the problem is in the HA integration
I think it must be the HA Tuya developer account, Tuya must have revoked the auth tokens
Same issue here ("Authentication expired for . . .") but the devices are still reporting fine. Confused...
Hello, I have the same problem - after every reboot, re-authorization is required
Same problem here.
Same problem!
UPDATE: It's working again here. i've tried a few time to reauthenticate this morning and got the "QR expired". I've rebooted HA and it worked. Doesn't make sense to me, but its what happened.
ОБНОВЛЕНИЕ: Здесь все снова работает. Я несколько раз пытался повторно пройти аутентификацию сегодня утром и получил сообщение «QR истек». Я перезагрузил HA, и все заработало. Мне это не понятно, но вот что произошло.
Hello! Try rebooting HA and it will require authorization again
Same here,
deleting, reinstalling, rebooting, reauthenticating, downgrading, nothing works stable.
One time, most of my over 100 devices worked again for half an hour, and then ... suddendeath!
Same issue here. Hope this gets resolved soon.
I have the same problem, i hope you solve the problem soon, please
Same here just a few minutes ago. Any info so far about root cause and when can this be solved? Thanks for all your support.
@tuya @zlinoliver @frenck what are your thoughts about this?
I also want to know what the developers think about this problem. thank you
One more with a ... "Failed to set up: Authentication failed. Please re-authenticate" and scanning QR in app gives "The QR code has expired. Refresh and scan it again." Nothing works from suggestions above.
Nothing else to add as to the source of this issue, but might help to say that I use the new Tuya integration and Local Tuya. Currently Local Tuya working, it is only the cloud integration is not. Ironically, Local Tuya is the one that has been giving problems last few weeks, with devices going unavailable and only a full HA restart resolving. Now the cloud version?! Really makes the whole Tuya integration a non-runner as there is simply no stability to the availability of devices with either integration. Nice to learn this after recently setting up about two dozen devices.
2024.1.0
![]()
I restarted my Home Assistant box and it worked properly.
Tried and it worked for a minute then complained again
This worked for me, i disconnected power on the box, and then reauthenticated. so far it is working
worked for a few hours then stopped again.
same here. after every desinstall/install, works for few minutes, then down. Now here a new message : :
I having the same problem, after reauthentication.
Ja hier auch der selbe mist... seit ca. 2Tagen geht nichts mehr.... Tuya ade... wenn das jetzt nicht bald in den nächsten 2 Tagen behoben wird werde ich alle tuya Geräte entfernen oder kennt jemand eine möglichkeit die dinger zu flashen ? :-)
bei mir auch seit heute Nacht :-(
2024.1.0
![]()
Disable this tuya integration and add as a new one. Because HA 2024.1.0 have old authentication method.
Same here. Found in logs: API call prompt { "code": 1004, "msg": "sign invalid"}
I tried almost everything, please assist. Thank you.
Reloading integrations works for most devices, although the one I added today loads, but switches to unsupported after a few mins....but appears to be read-only while working reads battery state, but will not activate the device 'switch' (water timer).
Same here...
Same here. Reinstalling fixes it, but then it repeats. You can wipe the integration and reload it/ Then get the security code from your account settings. Then, you get the new QR code, which you can scan from smart life or tuya app and confirm login. This seems to work, but within anything from 30 seconds to 10 minutes, it gives the same error. Then of course If you go to the QR code, it says it's old since you used it to set up. So you can keep doing that and restarting, etc., many times. Always the same.
I am curious, why @tuya @zlinoliver and @frenck go silent? I believe this is by far the most important issue that they are facing as the integration is not working anymore...
Same here
Same here. Re-authed like 4 or 5 times. Have given up now on tuya iot cloud. Thankfully my local tuya working well. I don't like my home coming to a halt when theres problems outside my home! Life should not be that complicated to rely on a distant datacentre to turn on your lights haha.
same problem here :(
Disable this tuya integration and add as a new one. Because HA 2024.1.0 have old authentication method.
Thank you.
Disable this tuya integration and add as a new one. Because HA 2024.1.0 have old authentication method.
Thank you.
Does it work for you?
Does it work for you?
Yeah, it's working. How long it will work - I'll tell you :)
ps even statuses are now updated without forced cron updates.
Disable this tuya integration and add as a new one. Because HA 2024.1.0 have old authentication method.
Thank you.
Does it work for you?
I tried and unfortunately it didn't work
I tried and unfortunately it didn't work
you added a new hub with new authorization ?
I tried and unfortunately it didn't work
you added a new hub with new authorization ?
I tried and unfortunately it didn't work
used authorization data from platform.tuya.com. ++ your login password in tuya application ?
I tried and unfortunately it didn't work
used authorization data from platform.tuya.com. ++ your login password in tuya application ?
In fact, I use the login data through the app because it is not possible to use the old method of logging in
I tried and unfortunately it didn't work
used authorization data from platform.tuya.com. ++ your login password in tuya application ?
Yeah. This is old skool. Assuming you are using an older version of HA where it uses the older tuya integration?
Same issue Restored a full backup to a new USB SSD, everything working fine except Tuya (and the 75 devices under that integration)
I tried and unfortunately it didn't work
Yeah. This is old skool. Assuming you are using an older version of HA where it uses the older tuya integration?
I had to go back to the version HA 2024.1.0 to get tuye working again.
Same issue Restored a full backup to a new USB SSD, everything working fine except Tuya (and the 75 devices under that integration)
Same issue Restored a full backup to a new USB SSD, everything working fine except Tuya (and the 75 devices under that integration)
problem with the latest tuya integration
same here, multiple reconfiguration attempts, problem is always back after integration reload, restart of HA didn't help, maybe issue or some changes on tuya side?
so today it stopped working again, and reconfiguration not working at all, :( guess it really time to say bye bye to tuya, this is the most unreliable integration in HA environment,
I think we can confirm that there is an issue, maybe stop responding untill a dev can tell us more?
Does it work for you?
Yeah, it's working. How long it will work - I'll tell you :)
ps even statuses are now updated without forced cron updates.
My tuya working around 35 hours 272 devices )
Does it work for you?
Yeah, it's working. How long it will work - I'll tell you :) ps even statuses are now updated without forced cron updates.
My tuya working around 35 hours 272 devices )
Same here. Working for 18hours now. However, I kept re-authenticating and reloading the integration like a mad man until it got to a loaded or working state. Rebooting my ha in between where the QR code expires.
It’s been working since yesterday and I dare not attempt to reboot or reload my ha. I’m sure it will stop working if I do and I gotta brute force authenticate/reload for a good few mins to get a working connection again.
I still suspect an api retry error from ha to tuya. We just aren’t seeing the metrics for it. :(
Does it work for you?
Yeah, it's working. How long it will work - I'll tell you :) ps even statuses are now updated without forced cron updates.
My tuya working around 35 hours 272 devices )
Same here. Working for 18hours now. However, I kept re-authenticating and reloading the integration like a mad man until it got to a loaded or working state. Rebooting my ha in between where the QR code expires.
It’s been working since yesterday and I dare not attempt to reboot or reload my ha. I’m sure it will stop working if I do and I gotta brute force authenticate/reload for a good few mins to get a working connection again.
I still suspect an api retry error from ha to tuya. We just aren’t seeing the metrics for it. :(
Same for me . Yesterday morning after several attempts it kept working and this morning - the same as yesterday - integration not working. Authenticated several times, restarted when the code expired and finally i gave up. After another restart since now (6 hours its working) but I am sure tomorrow morning its the same problem..
Not sure if this is just co-incidence, but I had the same problem, and intended to go onto the tuya iot site to extend my access. When I got to the site, I was presented with new T&C's, privacy statement etc. to accept, which I did. I then rebooted my HA and the re-authenticate QR code was accepted and I was able to log back in. I only have one use for the core Tuya integration (a scene for IR blaster) with everything else on Tuya Local, but it's nice that it's working again (for now at least).
Not sure if this is just co-incidence, but I had the same problem, and intended to go onto the tuya iot site to extend my access. When I got to the site, I was presented with new T&C's, privacy statement etc. to accept, which I did. I then rebooted my HA and the re-authenticate QR code was accepted and I was able to log back in. I only have one use for the core Tuya integration (a scene for IR blaster) with everything else on Tuya Local, but it's nice that it's working again (for now at least).
With the extension it appears to have a limitation on the number of controllable and readable devices.
a lot of users have more than 10 devices I guess
The problem
Tuya app gives an error QR expired. Refresh it and scan again.
I have reloaded the integration but QR code is not updated
What version of Home Assistant Core has the issue?
core-2024.6.4
What was the last working version of Home Assistant Core?
--
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
home-assistant_tuya_2024-06-27T07-41-03.302Z.log.zip
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response