homebridge-tuya-web: [TuyaWebPlatform] Authentication error: Get accesstoken failed. Username or password error!

Describe the bug I can log in to iot.tuya.com with my username and password and I’ve linked my tuya-iOs-app with the web-platform. The plugin still produces the error stated in the subject line. The email address does not contain any dots (sliveburna@gmail.com). I am a little desperate, since I don’t know what I’ve done wrong.

Steps To Reproduce I am sorry, I don’t know what to write here. I took the error from the log after restarting homebridge and making sure that everything is up and running without any further errors.

Plugin Version That is the exact problem. I don’t see my devices. The firmware of the plugin, however, is v0.4.8

Homebridge Config { “name”: “TuyaWebPlatform”, “options”: { “username”: “sliveburna@gmail.com”, “password”: “REDACTED”, “countryCode”: “49”, “platform”: “tuya”, “pollingInterval”: 10 }, “defaults”: [ { “device_type”: “form” } ], “scenes”: false, “platform”: “TuyaWebPlatform” }


Device Config Getting credentials Got credentials { ‘errorMsg’: ‘Get accesstoken failed. Username or password error!’, ‘responseStatus’: ‘error’} Traceback (most recent call last): File “/var/folders/p3/fmhqw3gd63s_9__hj7ts8prr0000gn/T/pythonInTerm.AMvGvklg”, line 35, in <module> payload = {“accessToken”: auth_response[“access_token”]} KeyError: ‘access_token’

Additional Context

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

I had a similar issue with an account that was created with a password but ALSO Google linked. I created a new account with another email alias and shared the home with that account and it worked fine

@SliVeBurnA, @thecodegoddess Had the same issue, also with German region, fixed by using phone number instead of email

I think we should have a note having an issue with account linked 3rd service (Google, Alexa,…) and can be resolved by create another account and invite it to home.

Can confirm. Creating a new account and adding it as Admin works. My older account was linked to Google which seems to be causing the issue.

Confirming that account shoud NOT be linked to any 3rd party auth service, even Apple, even if you have set up password later. Just create a new account with plain password, no links and it works.

Same issue. Are you using sign-in with Apple/Facebook/Google/Whatever? -no Did you set the correct country-code? -yes Did you set the correct platform? -yes Are there any dots in your email (you already said this is not the case). -no

EDIT: I looked again in the app, and there was a feature to “set password” which required email verification. I went through that, and restarted homebridge, and suddenly the authentication worked and all my accessories were found.