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

Authentication error: Get accesstoken failed. Username or password error! #594

Closed Scirocco3 closed 2 months ago

Scirocco3 commented 3 months ago

Describe the bug After start is the error displayed. nothing changed in the system or username/pw all devices are not functial. username and PW checked in the app... is ok.

Steps To Reproduce after the error... this line/error displayed Cannot acquire token, waiting 185 seconds.

Plugin Version latest official

Homebridge Config { "name": "TuyaWebPlatform", "options": { "username": "Steffen.leicht@xxx", "password": "xxxxxxxxx", "countryCode": "49", "platform": "smart_life" }, "defaults": [ { "id": "74457336cc50e3d39579", "device_type": "outlet" }, { "id": "50203372dc4f229d0f7f_7", "device_type": "outlet" }, { "id": "50203372dc4f229d20ff_7", "device_type": "outlet" }, { "id": "50203372dc4f229d0f7f_1", "device_type": "outlet" }, { "id": "50203372dc4f229d20ff_1", "device_type": "outlet" } ], "scenes": false, "_bridge": { "username": "0E:ED:A8:42:47:38", "port": 33824 }, "platform": "TuyaWebPlatform" }

Device Config

Additional Context

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

tibtiby commented 3 months ago

having the same issue. [3/22/2024, 3:20:07 PM] [TuyaWebPlatform] Initializing TuyaWebPlatform platform... [3/22/2024, 3:20:07 PM] Loading 2 accessories... [3/22/2024, 3:20:08 PM] [TuyaWebPlatform] Cannot acquire token, waiting 185 seconds.

imWildCat commented 3 months ago

same issue. maybe due to their extra verification?

doomedramen commented 3 months ago

Same, here, let me know if there is anything I can share that would help.

imWildCat commented 3 months ago

Hi @doomedramen @tibtiby @Scirocco3 Good news. I found the root cause: https://github.com/tuya/tuya-homebridge#:~:text=The%20TuyaSmart%20or%20SmartLife%20app%20account%20which%20registered%20using%20Google%20or%20Apple%20ID%20email%20need%20to%20link%20your%20phone%20number%20and%20use%20the%20linked%20phone%20number%20as%20username%20to%20login.

TLDR: Register another Tuya account and DO NOT use SSO login (like sign-in with Google/Apple). Just use your email to receive a code to activate the account.

Then repeat the previous steps.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.