codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.07k stars 341 forks source link

Can't complete Link Tuya App Account #573

Closed kxkayser closed 5 days ago

kxkayser commented 2 years ago

Hi. Following the steps in "Listing Tuya devices from the Tuya Smart or Smart Life apps". When I scan the QR code in the Smartlife App, the confirmation is successful and the "Link Tuya App Account" pops up on the Tuya site. I select the Automatic Link and Read, write and Manage options and click OK. Then 2 quick pop-up lines appear near he top of the browser window that say "x - capp_binded_userid". They disappear and I am still in the link screen. See attached. No devices are discovered or added to the project Tuya

.

PanicMan commented 2 years ago

Have the same problem, didn't managed to fix it yet, tried to clear the cache for the app, changed password, as it was mentioned somewhere else... Nothing works... Any ideas how to get the device ID's w/o that stupid API?

kxkayser commented 2 years ago

I opened a ticket with Tuya and they responded next day. They suggested I change my Data Center to Western USA even though I am in NC. That solved the problem and I was able to link my account. Now back to mqtt

nzf4de commented 2 years ago

Thanks kxkayser, changing the datacenter to western usa fixed it for me as well. Been trying to get it connecting for over a month to smart home.

kxkayser commented 2 years ago

Glad it worked for you too. I was able to integrate my Tuya devices with my other devices on the same Node-Red dashboard. Just what I wanted.

jsessink commented 2 years ago

Ran into the same issue today. Glad I found this, since it worked for me as well!

craigcurtin-dev commented 2 years ago

Ran into the same issue as well - went through a whole heap of troubleshooting - turns out you need access to the magic table the lists each of the data centres - here is a link to it.

https://github.com/tuya/tuya-home-assistant/blob/d7fa8a4d0098f3611755d05ebfbd1904036c6b9d/docs/regions_dataCenters.md

Once i entered Central Europe (makes sense for Australia - NOT) all went OK

Craig

michelefa1988 commented 2 years ago

For me the problem was solved by

1) Enabling all data centers in the projects 2) Authorised IoT core trial (very important step - see screenshot ) 3) The datacenter is probably a little random so I tried them all, until central Europe worked

image