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

tuya integration could not authenticate #116299

Open
stamandr opened this issue Apr 27, 2024 · 11 comments
Open

tuya integration could not authenticate #116299

stamandr opened this issue Apr 27, 2024 · 11 comments
Assignees

Comments

@stamandr
Copy link

The problem

I keep getting " tuya integration could not authenticate: Authentication failed. Please re-authenticate". Once I re-authenticate it works for a day or two, then I get the message again. This has been going on for the last couple of months

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

tuya

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: config_entries.py:575
First occurred: April 26, 2024 at 10:00:06 PM (1 occurrences)
Last logged: April 26, 2024 at 10:00:06 PM

Config entry 'redacted@gmail.com' for tuya integration could not authenticate: Authentication failed. Please re-authenticate

Additional information

No response

@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)

@ObviousInvestor
Copy link

This just started happening to me too. Same issue.

@mrmiui
Copy link

mrmiui commented Apr 28, 2024

Issue with Tuya integration here too. Have had it installed and working for many months.
Integration error message is "Failed to set up"
image
When I try to reconfigure I get a Tuya QR code that is supposed to be scanned with Tuya Smart app. But Tuya Smart app will not approve QR code, error here is QR code too old.

Working now after finally figuring out how to reenable integration through Toya Smart app

@serot23
Copy link

serot23 commented Apr 28, 2024

Issue with Tuya integration here too. Have had it installed and working for many months. Integration error message is "Failed to set up" image When I try to reconfigure I get a Tuya QR code that is supposed to be scanned with Tuya Smart app. But Tuya Smart app will not approve QR code, error here is QR code too old.

You need to press submit in HA, and then it generates a new qr code, it will show a error in red above the qr, but just ignore, rescan and press submit, it will be working for a day

@stamandr
Copy link
Author

In my case the integrating works. I just keep getting this every couple of day or so, " tuya integration could not authenticate: Authentication failed. Please re-authenticate".

@RogerWise
Copy link

New user here.
I was having this issue since I got HA and then I tried disabling "automatically poll for updates" in Tuya integration settings. It seems to work so far, about a week.
If this is how it's going to be I might get rid of Tuya.

@serot23
Copy link

serot23 commented Apr 29, 2024

New user here. I was having this issue since I got HA and then I tried disabling "automatically poll for updates" in Tuya integration settings. It seems to work so far, about a week. If this is how it's going to be I might get rid of Tuya.

Thanks, will try this one. I have only 6 tuya wifi devices, so i don't want to hack everything into something else and local tuya and tuya local where both very slow for me. It took a minute sometimes to turn on a light, and with tuya or smartlife integration it is instant. I just wait to the devices die, so i can replace them for zigbee

@stamandr
Copy link
Author

stamandr commented May 3, 2024

New user here. I was having this issue since I got HA and then I tried disabling "automatically poll for updates" in Tuya integration settings. It seems to work so far, about a week. If this is how it's going to be I might get rid of Tuya.

Thanks, will try this one. I have only 6 tuya wifi devices, so i don't want to hack everything into something else and local tuya and tuya local where both very slow for me. It took a minute sometimes to turn on a light, and with tuya or smartlife integration it is instant. I just wait to the devices die, so i can replace them for zigbee

After seeing your post, I thought I would give it a try. Sorry it doesn't work for me...

@serot23
Copy link

serot23 commented May 3, 2024

New user here. I was having this issue since I got HA and then I tried disabling "automatically poll for updates" in Tuya integration settings. It seems to work so far, about a week. If this is how it's going to be I might get rid of Tuya.

Thanks, will try this one. I have only 6 tuya wifi devices, so i don't want to hack everything into something else and local tuya and tuya local where both very slow for me. It took a minute sometimes to turn on a light, and with tuya or smartlife integration it is instant. I just wait to the devices die, so i can replace them for zigbee

After seeing your post, I thought I would give it a try. Sorry it doesn't work for me...

It worked for me for couple days and than it asked for it again. But its better than before where i had to do it for 2 times a day. I have already replaced one device for zigbee so one more problem less for me. Try rebooting your system not only restarting HA

@stamandr
Copy link
Author

stamandr commented May 3, 2024

New user here. I was having this issue since I got HA and then I tried disabling "automatically poll for updates" in Tuya integration settings. It seems to work so far, about a week. If this is how it's going to be I might get rid of Tuya.

Thanks, will try this one. I have only 6 tuya wifi devices, so i don't want to hack everything into something else and local tuya and tuya local where both very slow for me. It took a minute sometimes to turn on a light, and with tuya or smartlife integration it is instant. I just wait to the devices die, so i can replace them for zigbee

After seeing your post, I thought I would give it a try. Sorry it doesn't work for me...

It worked for me for couple days and than it asked for it again. But its better than before where i had to do it for 2 times a day. I have already replaced one device for zigbee so one more problem less for me. Try rebooting your system not only restarting HA

A reboot is only temporary. Also, sometimes it works, but most of the time it doesn't. I already have dozens of Zigbee and Zwave devices. But, unfortunately many Tuya devices as well. Hopefully this will get fixed soon...

@jonwaland
Copy link

possibly related - #115344

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

8 participants