Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

LDV Wifi - Get accesstoken failed #23

Closed elxsi closed 2 years ago

elxsi commented 2 years ago

Hi,

I'm having some difficulties using the TUYA plugin. I've tried running the debug_discovery.py (after setting the corresponding configuration options), but I always get:

Getting credentials Got credentials { 'errorMsg': 'Get accesstoken failed. Username or password error!', 'responseStatus': 'error'}

USERNAME = "" PASSWORD = "" REGION = "eu" # cn, eu, us COUNTRY_CODE = "49" # Your account country code, e.g., 1 for USA or 86 for China

BIZ_TYPE = "smart_life" # tuya, smart_life, jinvoo_smart

BIZ_TYPE = "tuya" # tuya, smart_life, jinvoo_smart FROM = "tuya" # you likely don't need to touch this

My current testing password does not contain any special characters (only a-zA-Z and 0-9). I have a Ledvance Panel which I can control using the LDV Wifi app using the same username/password. I've also tried the other two BIZ_TYPES without success. Any ideas of how to proceed?

Thank you!

Xenomes commented 2 years ago

Hi,

Your device need to be in one of these apps ( tuya, smart_life, jinvoo_smart) to work. I don't know if you device supported by the old version of the tuya api.