tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
117 stars 47 forks source link

Problem in connection. 'skill id invalid' Error. #72

Open wpritom opened 1 year ago

wpritom commented 1 year ago

I'm trying to connect Tuya Cloud by the following line:

openapi.connect(USERNAME, PASSWORD, country_code, schema)

This gives me the following response:

{'code': 2406,
 'msg': 'skill id invalid',
 'success': False,
 't': 1678601679934,
 'tid': '2c049292c09d11edbcdaea52450d735d'}

I guess skill id invalid is country_code related problem. Here it is 49 since my data center is Central Europe Data Center, and location of this data center is in Germany. I found this from this doc: https://developer.tuya.com/en/docs/iot/Data_Center_Introduction?id=Kav2hlac2ppnw

I tried it with other country code under Central Europe Data Center. https://developer.tuya.com/en/docs/iot/oem-app-data-center-distributed?id=Kafi0ku9l07qb Still no luck!