Skip to content
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

New Tuya integration doesn't provide QR code during setup. #110186

Closed
Ehill05 opened this issue Feb 10, 2024 · 27 comments
Closed

New Tuya integration doesn't provide QR code during setup. #110186

Ehill05 opened this issue Feb 10, 2024 · 27 comments

Comments

@Ehill05
Copy link

Ehill05 commented Feb 10, 2024

The problem

After providing the user code there is a window that asks you to scan a QR code with the Tuya app, but there is no QR code present.

What version of Home Assistant Core has the issue?

core-2024.2.1

What was the last working version of Home Assistant Core?

core-2024.1.6

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?

No response

Additional information

image
Login error (0): Login failed, please scan and try again!

@home-assistant
Copy link

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation
tuya source
(message by IssueLinks)

@MSirabella413
Copy link

I was running into the same issue using Google Chrome. I tried a different browser (Microsoft Edge) and a barcode did appear and I was able to successfully reauthenticate.

@Br00ster
Copy link

Br00ster commented Feb 10, 2024

I'm having the same issue with Microsoft Edge unfortunately

EDIT: It worked with an in-private session in Microsoft Edge

@MSirabella413
Copy link

I'm having the same issue with Microsoft Edge unfortunately

EDIT: It worked with an in-private session in Microsoft Edge

In that case, it was most likely a caching issue within the browser. Clearing the browsers cache likely would have fixed the problem.

@Ehill05
Copy link
Author

Ehill05 commented Feb 10, 2024

I was finally able to get it to work in Chrome, but it also wouldn't work in the Home Assistant android app.

@Martin-Dolan
Copy link

Martin-Dolan commented Feb 10, 2024

I got the qr code but it says it has expired when I scan it. How do I get it to regenerate a new one?

UPDATE: Restarting home assistant let's you regenerate a new code, and that works

@Daytona3522
Copy link

Daytona3522 commented Feb 11, 2024

I had the same issue Yesterday but now after entering the code I get a blank QR screen.
It's very hard to scan ;-)
I tried different browsers with the same result.

2024-02-11_03-22-33

@diahellfire
Copy link

+1

I had the same issue Yesterday but now after entering the code I get a blank QR screen. It's very hard to scan ;-) I tried different browsers with the same result.

2024-02-11_03-22-33

+1

@kbrelins
Copy link

kbrelins commented Feb 11, 2024

+1

I had the same issue Yesterday but now after entering the code I get a blank QR screen. It's very hard to scan ;-) I tried different browsers with the same result.
2024-02-11_03-22-33

+1

Same issue in Safari 16.6 (18615.3.12.11.2), but i succesfull scan QR Code from Chrome 121.0.6167.160.

@xelabug
Copy link

xelabug commented Feb 11, 2024

I solved it like this:
Browsing through this extension, i already had this installed, i often use it to access the GUI's devices such as the Shelly when I am away from home.
https://github.com/mincka/ha-addons/tree/main/firefox

@diahellfire
Copy link

No QR code, only white box - Chrome 121.0.6167.161 \ Yandex 23.9.5.721 corp (64-bit) \ Firefox (i`m tryed this https://github.com/mincka/ha-addons/tree/main/firefox)
Maybe problem with my region... RU?

@Daytona3522
Copy link

No QR code, only white box - Chrome 121.0.6167.161 \ Yandex 23.9.5.721 corp (64-bit) \ Firefox (i`m tryed this https://github.com/mincka/ha-addons/tree/main/firefox) Maybe problem with my region... RU?

Set HA to the default THEME and try again, And after that you can set your own theme again.

@diahellfire
Copy link

No QR code, only white box - Chrome 121.0.6167.161 \ Yandex 23.9.5.721 corp (64-bit) \ Firefox (i`m tryed this https://github.com/mincka/ha-addons/tree/main/firefox) Maybe problem with my region... RU?

Set HA to the default THEME and try again, And after that you can set your own theme again.

Yes! Well done! Thank you!

@EpicLPer
Copy link

No QR code, only white box - Chrome 121.0.6167.161 \ Yandex 23.9.5.721 corp (64-bit) \ Firefox (i`m tryed this https://github.com/mincka/ha-addons/tree/main/firefox) Maybe problem with my region... RU?

Set HA to the default THEME and try again, And after that you can set your own theme again.

THIS was the solution! Guess custom themes have to be updated to support this :)

@upioneer
Copy link

same issue on edge. i was able to view the qr code in firefox, however the code expired. as someone else here mentioned, restart HA to generate a new code.

Edge 121.0.2277.106
Windows 11 10.0.22621.3085
Core 2024.2.1
Supervisor 2024.01.1
Operating System 11.5
Frontend 20240207.1

@EpicLPer
Copy link

same issue on edge. i was able to view the qr code in firefox, however the code expired. as someone else here mentioned, restart HA to generate a new code.

Edge 121.0.2277.106 Windows 11 10.0.22621.3085 Core 2024.2.1 Supervisor 2024.01.1 Operating System 11.5 Frontend 20240207.1

Have you tried to change back to the original theme already?

@PachangaDad
Copy link

I can confirm, I was using Edge and using a theme variation. returned to Home Assistant theme and tried again, Bar Code appeared clearly black on white. Using my camera was able to scan within SmartLife app and had to try a few times of scanning and resubmit and scan again and resubmit iterations, eventually it took and was able to complete reauthorization. Key here is the using variations of themes does not display black and white barcode correctly. My success came about with going back to default selection of Home Assistant Theme for user interface. In my case it worked using an Edge browser. Just sharing my findings hoping to help out where I can.

@odinho
Copy link

odinho commented Feb 13, 2024

Now that I have the QR code. How are we meant to actually scan it in the Smart Life app? It only opens the camera and I don't have two phones to do this with. Seems like a rather frustrating setup experience 😅

I guess I have to print the QR code to use the camera in Tuya app to see it. That's... Quite cumbersome. 😬

(it's the smart life app that needs to support reading screenshots, but possibly there is an on-device way Android intent to not need a QR code?)

@Martin-Dolan
Copy link

Yes, with only one phone it's a pain..
If you have a pc you can open it on there, and then use your camera, or invite a friend over for a coffee, sms them the code picture and then scan it on their screen.

One thing to keep in mind is it expires after a period of time (found that out the hard way haha). If you want it to regenerate a new QR code you need to restart home assistant or it will just keep giving you the old code.

I also tried looking at the text the QR code gives you, to enter manually, but it's totally different from the short number you can type in manually in the app so that doesn't work..

Another idea is to cast the QR code to your TV if you can, and scan it that way...
It is a bit of an issue with QR codes when there is no way to display it to scan it without two devices.

Perhaps there is a virtual camera app that can trick the scanning app into thinking it's looking through the camera, but actually looking at a gallery pic? Good idea for someone to write one if there isn't...

@Nezz
Copy link
Contributor

Nezz commented Feb 15, 2024

I had the issue too. First, the QR code did not appear at all, which I fixed by clearing the browser cache. Then it was just a white box which was fixed by changing the theme to the original Home Assistant one.

@martin3000
Copy link
Contributor

The private browser window did the trick for me.

@FJ-SA
Copy link

FJ-SA commented Mar 2, 2024

I removed my homekit integration and reinstalled it. Then it gave me all my QR codes. Only one problem persists out of 4 cameras. In HA and homekit it shows that the camera is not responding. But when i open it in tuya app it works perfectly. Anyone else experienced a similar issue?

@Daytona3522
Copy link

I removed my homekit integration and reinstalled it. Then it gave me all my QR codes. Only one problem persists out of 4 cameras. In HA and homekit it shows that the camera is not responding. But when i open it in tuya app it works perfectly. Anyone else experienced a similar issue?

No I set Home Assistant back to it's default theme and the problem was solved, And I could scan de QR code.

@FJ-SA
Copy link

FJ-SA commented Mar 3, 2024

Thank you for your reply. I don't think i have changed my theme but just to make sure, how do i change back to the default theme?

@Daytona3522
Copy link

Thank you for your reply. I don't think i have changed my theme but just to make sure, how do i change back to the default theme?

Just go to your profile (Below notification in the sidebar) and there you can change the theme, language and way more.

@FJ-SA
Copy link

FJ-SA commented Mar 3, 2024

Thanks but that is not my problem. It is still on default 🙈 its just very strange that all other cameras work perfectly thats also under Tuya. Its just the one.

@issue-triage-workflows
Copy link

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.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests