Tuya Integration HA 2024.02 - QR-code

This solved it for me

I also had an expired QR code. I put in the code in bed before I realized I was going to need a second device to finish the process :smiley: The next day I got the expired message from the Tuya app. Rebooting HASS resolved it for me, I was back to entering the user code and then the QR code worked.

2 Likes

Hi, yes, just started working for me now! I think it got booted automatically last weekend so when I tried again today and it worked fine.

I guess that here is some state held when you enter the User Code and before you scan. And if you are not quick enough with the scan (which I wasn’t as I didn’t know how to do so so from the app) you continually get timeouts because it doesn’t ask for the User Code again until you reboot.

1 Like

This worked for me. Thank you.

Took the qr code from the network requests, put in other qr generator, it worked.

Error message after upgrade. After typing in the user code from the Smart Life app, I also got the white QR code picture. Here is how I fixed it in case this helps other people:

  1. Change your theme to “Home Assistant” in your bottom left corner under your account settings
  2. Restart Home Assistant (full restart)
  3. Shift + F5 on your home assistant browser page or clear you cache manually
  4. Write down your user code from your Smart Life or Tuya App under your account security settings
  5. click on the error message where you have to re-authenticate
  6. Type in your user code from your app above
  7. In your Smart Life or Tuya app click on the bar code scanner icon and scan the QR code (should show you now a proper QR code and not being white)
  8. You only have 180 seconds to authenticate yourself or the app will say QR code expired. If that happens, reboot your home assistant and re-enter your user code and it will generate a new QR code
  9. Enjoy!
1 Like

Theme revert is worked for me also!

Solution
Step1: Get the User Code by going to Smart Life app or Tuya app → setting → Account & Security → User Code (Close to the bottom).
Step2: Scan the QR code by Switch your theme to default by going to your profile ( your image at bottom left) to get it appears → search Theme → choose “Home Assistant” → go back and scan → submit.

On my side, it was my Adblocker preventing the QR code do appear.

I had a similar/same issue, “unknown error occurred” plus errors in the log on apigw.iotbing.com and no QR code appearing. Only working solution for me was to log out of the tuya app on my mobile, and log in fresh.

Thanks…opening the error in Firefox and scanning via the phone app did the trick. Bad news that Chrome can’t open the QR-Code! I hope this doesn’t catch too many people!

I have a slightly adjacent problem. I get the QR-code and process it. HA says that the process was successful, but the integration still fails to load.

I assume that it should be an immediate fix?

I’m very stuck at present as all of my Tuya devices are inacessible.

Does anyone know the fix for this?

1 Like

It’s now very odd in that it’s now working, but also still shows that it isn’t. I now have two “Hubs” each with the same name and one works normally and the other not. I’m loth to remove the non-working one in case it removes the devices shared by the working one.

Can anyone explain what I’m seeing and how best to deal with it?

Solved the same issue for me > Chrome Version 126.0.6478.127 (64-Bit)

I had the same issue, and changing the theme actually did solve the problem. Really weird.

I had this issue, if you log out of the app, then log back in, then generate the QR code it works.
I guess something got out of sync somewhere.

This is maddening. I’m using the Home Assistant app on my iPhone which for Tuya pops up a QR code to scan. I don’t have a Tablet or second phone. Taking a screenshot isn’t getting me anywhere. I can’t use the Tuya app to scan a QR code displayed on the same device. I don’t have a printer because who friggin prints anymore. I cannot figure a way to scan the image.

2 Likes

It is still giving a very odd error. I could scan the QR Code with the app, but then it said the QR Code expired. Closing the popup and reopening did no difference, but if you try to Submit the failed QR, it will state the QR expired and request you to reinstall. If you simply press Reconfigure to show the QR Code again, a new one will pop up and reading it with the app will work correctly.

Tuya being Tuya…

2 Likes

You could:

  • screenshot the QR code and send to any other friend, from which device’s you could read the QR
  • use some other app that can read the QR and tell you what’s written in it, and then use the Enter setup code option that shows at the bottom of the QR Code reading screen in the Tuya app

That said, it definitely should show the QR contents at the bottom for scenarios such as yours.

OMG. So ridiculous… Searched for 2 weeks for this solution! Worked for me, HA saying QR code expired. All previous solutions in this thread didn’t work, just this simple one.

Thank you!

Note: Open Tuya integration in Integrations tab, not through Repairs in Settings (there you don’t have the Reconfigure option).