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
876 stars 206 forks source link

Invalid Authentication #136

Open ameran opened 3 years ago

ameran commented 3 years ago

Can't setup integration/add account.

I've entered all the details correctly, tried & checked several times. Checked the SmartLife app, signed out and signed back in with the same username and password (tried several times) I've also tried the following country codes - +27, 27, ZA. All give the same error code. From South Africa, closest Management site is Europe. On the IOT site, I've tried with only Europe, and also with all the other management regions selected.

On the developer site, I can can see the devices in the smart life app, I've unlinked and relinked a few times as well.

image

image

image

image

Home Assistant Version 2021.7.0

Tuya v2 Version 1.3.1

Logs don't show any errors related to Tuya, except this: 2021-07-11 19:35:48 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tuya_v2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

Any other ideas??!?!?

tsutsuku commented 3 years ago

@ameran Login error code?

ameran commented 3 years ago

Just tried again, got this:

2021-07-12 07:17:39 INFO (SyncWorker_4) [custom_components.tuya_v2.config_flow] TuyaConfigFlow._try_login finish, response:, {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1626067059535}

ameran commented 3 years ago

Just tried something this user tried: https://github.com/tuya/tuya-home-assistant/issues/90#issuecomment-874073232

Entered the gg- account name and it worked.

Also initially created my smart life account with a Google account.

SM-26 commented 3 years ago

I'm also getting the same problem, but my account isn't made by the google sso.

anything I could try to help me solve this as well?

tsutsuku commented 3 years ago

@SM-26 https://github.com/tuya/tuya-home-assistant/discussions/81

SM-26 commented 3 years ago

@SM-26 #81

OMG thank you, yes! I really missed that very last bit.

the username and password are the APP not the iot.tuya.com

Any idea why I don't see any devices? image image

tsutsuku commented 3 years ago

@SM-26 We write more wiki, some new ones can read them.

SM-26 commented 3 years ago

Yep, after re-reading the wiki, and updating to 1.4 , everything works like a charm. Huge thanks.