PaulAnnekov / tuyaha

Implements the special Tuya Home Assistant API.
Other
141 stars 106 forks source link

BizType for Okos Smart? #91

Open wwwescape opened 3 years ago

wwwescape commented 3 years ago

From what I've seen with other issues here, getting other BizTypes to work is proving to be a challenge.

I tried to reverse engineer the IFTTT integration for Okos Smart having seen the following while trying to connect:

image

When I looked at the Network requests, I found the following request and it's request payload:

image

image

And the following response:

image

When I tried using the bizType from the response (18 or 311575), it doesn't seem to work. It seems to accept only strings.

This is my configuration so far:

# CHANGE THIS - BEGGINING
USERNAME = "username"
PASSWORD = "password"
REGION = "us" # cn, eu, us
COUNTRY_CODE = "91" # Your account country code, e.g., 1 for USA or 86 for China
BIZ_TYPE = "?" # tuya, smart_life, jinvoo_smart
FROM = "smart_life" # you likely don't need to touch this
# CHANGE THIS - END

Would love any inputs on how to find the correct bizType to use.

I am also contacting Okos support to see if they can help.