0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
206 stars 58 forks source link

Login Failing 1106 Country Code matches Data Center? #312

Open polycat33 opened 1 year ago

polycat33 commented 1 year ago

Prerequisite

Accounts

Country Code

1

Region Code

AZ (West US)

Logs

[5/23/2023, 9:38:06 PM] [Tuya] Login failed. code=1106, msg=permission deny
[5/23/2023, 9:38:06 PM] [Tuya] Please make sure your countryCode, username, password, appSchema is correct, and app account is linked with cloud project.

Other Infomations

My config looks like this:

    {
        "name": "Tuya",
        "options": {
            "projectType": "2",
            "endpoint": "https://openapi.tuyaus.com",
            "accessId": "xxxxxx",
            "accessKey": "xxxxxxxx",
            "countryCode": 1,
            "username": "polycat33@gmail.com",
            "password": "xxxxxx",
            "appSchema": "tuyaSmart"
        },
        "platform": "TuyaPlatform"
    }

I added the endpoint after not succeeding without it, but it didn't change my error message.

0x5e commented 1 year ago

the region code "AZ" can you confirm it's shown in the app network diagnosis result? also, can you post your user code from "app > setting > account and security"? only first character is enough, it represents the data center region too.

polycat33 commented 1 year ago

Here's the top part of my network diagnosis:

Start diagnosis... App name: Tuya Smart App version: 5.1.2 App build: 20230523133405 App bundle ID: com.tuya.smart App Key: xxxxxx Device type: iPhone 12 Pro System version: 16.1.2 User account: xxx Country code: 1 Region code: AZ Carrier name: Verizon VPN: off isoCountryCode: us mobileCountryCode: 311 mobileNetworkCode: 480

The first letter of my user code is "B"

Thanks for your help!!

0x5e commented 1 year ago

everything seems okay.. you can try reset password or create the ticket on tuya website.