-
-
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
New Tuya integration doesn't provide QR code during setup. #110186
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 |
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. |
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. |
I was finally able to get it to work in Chrome, but it also wouldn't work in the Home Assistant android app. |
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 |
I solved it like this: |
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) |
Set HA to the default THEME and try again, And after that you can set your own theme again. |
Yes! Well done! Thank you! |
THIS was the solution! Guess custom themes have to be updated to support this :) |
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 |
Have you tried to change back to the original theme already? |
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. |
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?) |
Yes, with only one phone it's a pain.. 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... 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... |
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. |
The private browser window did the trick for me. |
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. |
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. |
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. |
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. |
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
Login error (0): Login failed, please scan and try again!
The text was updated successfully, but these errors were encountered: