0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
222 stars 67 forks source link

Log in to Tuya failed #227

Open SCOTTS948 opened 1 year ago

SCOTTS948 commented 1 year ago

My Tuya plug in used to work great. Now none of the devices show up in Homekit. I have extended my trial and it's been approved.

I noticed in my logs it's saying this :[1/31/2023, 9:14:49 PM] [@0x5e/homebridge-tuya-platform] Login failed. code=1013, msg=request time is invalid

However I am 100% sure my login credentials provided are correct. I have deleted and reentered them only to get the same result.

How do i fix this?

SCOTTS948 commented 1 year ago

Update: I solved this on my own. Then i was hit with another error that i'm stuck on.

[1/31/2023, 10:56:14 PM] [@0x5e/homebridge-tuya-platform] Login failed. code=1106, msg=permission deny [1/31/2023, 10:56:14 PM] [@0x5e/homebridge-tuya-platform] Please make sure your countryCode, username, password, appSchema is correct, and app account is linked with cloud project.

My region is correct. the user ID i'm using is from the link my tuya account tab (the UID number). My password does not include special characters (and it's my smart life password, not my tuya cloud password). I have checked the access code and secret code a million times over and they are accurate.

I feel so close to getting this working again...yet so far away. Thoughts?

0x5e commented 1 year ago

Someone tried change the password then it's working, can you have a try?

sateeshruttala commented 1 year ago

i did change the password but it didn't work

floperrot44 commented 1 year ago

I had the same problem and i was turning around, checking everything a dozen of times, changing my password, etc... Finally i've sorted it by just reseting my password from Smartlife app on smartphone (and taked this new for api). Pay attention that i have put only lowercase chars and one number at the end of the password (10 chars long). Hope that will help!

0x5e commented 1 year ago

Login failed have many possibilities. @sateeshruttala you can confirm if the data center is wrong, see updated docs (faq) of how to locate your account's data center.

@floperrot44 In your case, can you try reseting back to your original password and see if it's working? If working, means this case just need to reset a password, not relating to the password strength. If not, may be a issue with password strength.

quorea commented 1 year ago

Hello @0x5e, I have the same problem, my data centre is correct and password is correct. Reading from comments above, I have a dash (-) in my iot account password. does it affect anything? [2/27/2023, 3:09:25 PM] [@0x5e/homebridge-tuya-platform] Login failed. code=1106, msg=permission deny [2/27/2023, 3:09:25 PM] [@0x5e/homebridge-tuya-platform] Please make sure your countryCode, username, password, appSchema is correct, and app account is linked with cloud project. [

0x5e commented 1 year ago

@quorea the plugin use app account to login, not iot account, they are different account, did you mixed these?

quorea commented 1 year ago

No I didn’t mix them. They are separate. It used to work perfectly until the last update. I asked because someone said he didn’t have any special characters in his password. Best regards,NanaOn Feb 27, 2023, at 22:23, gaosen @.***> wrote: @quorea the plugin use app account to login, not iot account, they are different account, did you mixed these?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

0x5e commented 1 year ago

@quorea I tried - in my password and it's working. recent update change the logic of data center choosing. can you post the country code and endpoint (if manually choose) from plugin config? and do you know which data center are you using before?

quorea commented 1 year ago

Country code 1, data centre is western America. Are talking about endpoint url?? I endpoint url is blank but from the app it is AZ

0x5e commented 1 year ago

@quorea have you tried 1.7.0-beta.32? you country code with data center is correct, and empty endpoint url is okay, any logs like this?

Login to: https://xxx.xxx.xxx
quorea commented 1 year ago

@0x5e i will confirm and get back to you.

quorea commented 1 year ago

@0x5e I just uninstalled beta 31 and installed beta 32 and problem solved everything is working. Thanks a zillion

mischiedorian commented 1 year ago

Update: I solved this on my own. Then i was hit with another error that i'm stuck on.

[1/31/2023, 10:56:14 PM] [@0x5e/homebridge-tuya-platform] Login failed. code=1106, msg=permission deny [1/31/2023, 10:56:14 PM] [@0x5e/homebridge-tuya-platform] Please make sure your countryCode, username, password, appSchema is correct, and app account is linked with cloud project.

My region is correct. the user ID i'm using is from the link my tuya account tab (the UID number). My password does not include special characters (and it's my smart life password, not my tuya cloud password). I have checked the access code and secret code a million times over and they are accurate.

I feel so close to getting this working again...yet so far away. Thoughts?

How did you fixed the [TuyaPlatform] Login failed. code=1013, msg=request time is invalid error? I'm having the same issue and I can't make it work.

dustin555 commented 1 year ago

I know this is an older issue, but I'm still seeing it on 1.7.0-beta.50. Spent hours on it yesterday (changing pw on iot cloud site, different endpoints, uninstall/reinstall plugin, add/remove items from cloud app, yelling). What fixed it for me today was changing my password in the Tuya Smart iOS app. Why changing it on the website didn't work seems like a bug to me, but Tuya is not known for simplicity or elegance in my book.