milo526 / homebridge-tuya-web

Hoobs and Homebridge plugin for Tuya devices using Home Assistant Tuya Web Api
MIT License
217 stars 93 forks source link

SmartLife don't work #608

Open DavidOsornio98 opened 1 week ago

DavidOsornio98 commented 1 week ago

Describe the bug

I'm trying to connect my account but this error appears in the terminal: "[TuyaWebPlatform] Authentication error: Get accesstoken failed. Username or password error!" My username and password are not bad because in the Smarlife app I can connect without problems.

Each time it restarts, this message appears:: "[TuyaWebPlatform] Cannot acquire token, waiting 185 seconds."

Steps To Reproduce

Plugin Version

1.1.5 Homebridge Config

  {
            "name": "TuyaWebPlatform",
            "options": {
                "username": "deividdg6273@gmail.com",
                "password": "",
                "countryCode": "52",
                "platform": "smart_life"
            },
            "defaults": [
                {
                    "device_type": "form"
                }
            ],
            "scenes": false,
            "platform": "TuyaWebPlatform"
        }

Device Config

Additional Context

I have HomeBridge version 1.8.3 installed. It's my first time installing this plugin

corvel commented 1 week ago

Are you sure you've created account using username and password, not with Apple or Google SSO? Account with linked Apple or Google does not work with this API.

milo526 commented 1 week ago

Please also check the wiki: https://github.com/milo526/homebridge-tuya-web/wiki/Authentication-Error that has some extra steps you can take to check your credentials.

DavidOsornio98 commented 3 days ago

It's true, third-party accounts are not supported, I've already created a new account but now I'm getting the following error: [TuyaWebPlatform] Missing required id property on device configuration, received: { "device_type": "form" } Any idea how I can solve it? :D

this is my json: { "name": "TuyaWebPlatform", "options": { "username": "divadaicrag98@live.com", "password": "", "countryCode": "52", "platform": "smart_life" }, "defaults": [ { "device_type": "form" } ], "scenes": false, "platform": "TuyaWebPlatform" }

DavidOsornio98 commented 3 days ago

sorry, my bad. The error is caused because there is no device on the account. Before adding the Pluggin to HomeBridge it is important to already have the Tuya account configured with devices. tys