core icon indicating copy to clipboard operation
core copied to clipboard

TUYA integration not showing QR code on setup, just white patch

Open mitchoklemen opened this issue 1 year ago • 9 comments

The problem

After sign in code from Tuya app, setup dont show qr code, just white patch. Tried few restarts. Cant authenticate without QR code... so diagnostic writes error authentication.

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.2.1

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya

Link to integration documentation on our website

No response

Diagnostics information

2024-02-13 07:49:08.950 WARNING (MainThread) [homeassistant.config_entries] Config entry '####' for tuya integration could not authenticate: Authentication failed. Please re-authenticate.

Example YAML snippet

/

Anything in the logs that might be useful for us?

/

Additional information

/

mitchoklemen avatar Feb 14 '24 06:02 mitchoklemen

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)

home-assistant[bot] avatar Feb 14 '24 11:02 home-assistant[bot]

I found the QR code appears when you use the HomeAssistant IOS app but not on the browser. Not a fix but a workaround :)

ninoz avatar Feb 15 '24 10:02 ninoz

I dont get it even on iOS version. 🤷‍♂️

IMG_3098

mitchoklemen avatar Feb 15 '24 12:02 mitchoklemen

Having the same problem with both the browser and app.

fungijr avatar Feb 15 '24 15:02 fungijr

Having the same problem with both the browser and app. :(

stivenpl79 avatar Feb 15 '24 20:02 stivenpl79

Tried browser and app. Got white QR code on both. I uninstalled the integration and reinstalled it with no change.

enter360 avatar Feb 16 '24 03:02 enter360

I finally solved the issue by logging in on Chrome in incognito mode. It looks like some browser extension has caused the QR code to appear blank.

hmchan avatar Feb 16 '24 20:02 hmchan

I use Firefox. I cleared the cache, reloaded the browser, tried in regular and incognito mode, and the problem persists through all of it. I also tried Edge and had the same problem. Only started with recent Home Assistant update.

alienjon avatar Feb 17 '24 04:02 alienjon

I, too, am having the issue. Even the iOS workaround does not work,

lowclearance avatar Feb 17 '24 05:02 lowclearance

In other browser like Firefox, the QR code I generated OK. and it works great !

stivenpl79 avatar Feb 17 '24 13:02 stivenpl79

I tried in Firefox edge and iOS. Niether worked.

mitchoklemen avatar Feb 17 '24 14:02 mitchoklemen

There is an issue on the tuya repo that suggests it could be linked to have a custom theme set on your interface. Do you have a theme set?

ninoz avatar Feb 17 '24 14:02 ninoz

TRUE!!! I changed theme to default theme and qr apears!

thank you ninoz 💪👌

mitchoklemen avatar Feb 17 '24 19:02 mitchoklemen

Changing to the default theme fixed for me too BUT it had to be the light default theme. Mine was already on dark (i don't think that was something extra, but i may have forgotten downloading it). Changing to light allowed me to resetup the integration andbi re enabled dark after.

alienjon avatar Feb 17 '24 20:02 alienjon

Same here. With a dark theme, I had the problem. With a light theme, QR code displayed fine.

ischorr avatar Mar 02 '24 04:03 ischorr

There is an issue on the tuya repo that suggests it could be linked to have a custom theme set on your interface. Do you have a theme set?

Excellent find! Thank you. I switched to the Home Assistant theme and it immediately worked. Much Appreciated!

lowclearance avatar Mar 02 '24 13:03 lowclearance

Same issue here. Both in Edge as in the HA-iOS app. All in dark mode. However if you temporarily to light mode it works fine. Obviously a small flaw but there is a workaround.

Ih8rain2 avatar Mar 16 '24 00:03 Ih8rain2

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.