tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
880 stars 207 forks source link

Invalid authentication - Tested on multiple accounts #457

Open ghost opened 3 years ago

ghost commented 3 years ago

I enter Access ID, Access Secret Mobile App and have tried Country Code both with the + and without.

Account and Password are correct, I even changed password and am able to log into the Tuya app without any issues.

I setup a new account and add that to my Home. That too gave me invalid authentication

error

voed commented 3 years ago

Same problem.

czmatt commented 3 years ago

check you country setting in https://iot.tuya.com/user/account/info

realjax commented 3 years ago

Yep, same for me. Can't login anymore. Had it working for a while but no it says 'Authentication deny' and I can no longer get it to work.

FranMaverix commented 3 years ago

Same here. I have double-checked my credenteials and are all ok. I have tried too my country (Spain) code with 'es' and '34'

Note: I have Local Tuya working in my Home Asistant.

EDIT: I have seen at documentation that can be my skill, created at 2021 May. and it is now deprecated. It is necesary to create a new skill.

patrickdundas commented 3 years ago

Also having this issue. Tried changing password, using new account, etc. I can log into the Tuya app and website but not through home assistant. This seems to be fully breaking functionality for new users of this integration

umcusumc commented 3 years ago

In my case I already use Tuya IoT Platform some time ago and it was problem with outdated trial. Go to https://iot.tuya.com/cloud/ and next to "My Cloud Projects" you can point to "Trial edition". Actual date should be between "From" and "Expiration Time". If it's not, than you should choose "Update" button and extend trial edition for free. After this probably you should also create new cloud project according to the instalation manual.

pluskal commented 3 years ago

My account shows a valid trial edition subscription, but authentication issues affect me as well.

TRIAL EDITION
From : 2021-02-25 20:38
Expiration Time : 2022-02-26 17:59
Nozza-VS commented 3 years ago

Finally decided to set up this integration today but am also encountering authentication errors (with a valid subscription). Only this integration is affected, all other Tuya logins (Phone app/IoT Platform/LocalTuya home assistant addon/custom tuya api app) are working as expected

marine1988 commented 3 years ago

Yes I tried everything canΒ΄t login either !

VNRARA commented 3 years ago

Same...

Gessink commented 3 years ago

same problem here. smart life app is linked, trial is valid, everything, but still authitencation error

Aldaran commented 3 years ago

Same... Smart Life App...

fubar2 commented 3 years ago

Good to discover it's not just me. This is annoying. Retrying with lots of fields is really annoying. I have a bunch of tp-link switches and they are trivial with HA - this one tuya based product has been a complete time waster so far as I can't control the thing. I won't be buying any more of them.

VNRARA commented 3 years ago

Go to Mark Watt Techs Facebook page for the solution with the beta update.

fubar2 commented 3 years ago

Go to Mark Watt Techs Facebook page for the solution with the beta update.

Adding a plus in front of my country code didn't help me if that's what you meant?

VNRARA commented 3 years ago

This comment: https://www.facebook.com/groups/markwatttech/posts/3098414410390941/?comment_id=3100223783543337&reply_comment_id=3100297030202679&__cft__[0]=AZXygc6uM5yD204XzdCvhuTWWz6RNnwsjK7P7N8w535B7HYPnaEjfz0xOZd1YnKsLdbXXC61xNPTnELy0eQLmGlrzEWc_PUM7KksYf13EwyrUwtQ-nARj9f6kBMtT1IH9NU&__tn__=R]-R

I got it working 😁😁😁😁

  • Update to Beta core-2021.10.0b7 (or wait for the push to main).
  • Reboot the core at least twice and make sure you're fully updated if doing the beta thing. There's multiple modules that update when going beta).
  • Relink/re-assured all links or do this: https://youtu.be/vq2L9c5hDfQ?t=343
  • If using Google SSO (sign in via Google instead of email): find your gg code inside the IOT platform (https://iot.tuya.com/cloud0) --> open the project and go to devices. Find the gg-*** code there.
  • Use that code AND your normal password (the one used to login to Tuya app) + the IOT access ID and Secret to login. Ofc set the correct country. Login..
  • Enjoy Tuya V2"
fubar2 commented 3 years ago

@VNRARA: Many thanks for this additional hint - I'll give it a try - details much appreciated.

pluskal commented 3 years ago

This issue was resolved, for me, by the switch to the official Tuya integration released in 2021.10.0.

Aldaran commented 3 years ago

This issue was resolved, for me, by the switch to the official Tuya integration released in 2021.10.0.

Same way. The issue was resolved by moving to the official Tuya integration released in 2021.10.0.

fubar2 commented 3 years ago

PSA: Country had to be the full name - for me Australia instead of the country code 61 worked with the very latest github code..