PaulAnnekov / tuyaha

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

Can this work with Tuya-made devices that use their own third-party server? #14

Closed mhirsch closed 3 years ago

mhirsch commented 4 years ago

It looks like the subdomain for the API endpoint is hardcoded.

I have an Inkbird device that uses Tuya SmartLife to connect to Google Home Assistant and IFTTT. The Inkbird device has it's own clone of the SmartLife app, and seems to log in to different AWS instance, running a very similar SmartLife API. The instance serves a certificate for *.tuyaus.com, but is not at the same IP as resolves from px1.tuyaus.com. Would it be possible to modify the app to accept the subdomain as a config option along with the region?

PaulAnnekov commented 4 years ago

Are you sure this custom domain accepts the same requests as this lib? Did you try to make a request like this https://github.com/PaulAnnekov/tuyaha/blob/8c48c10d8d8bda1f996551e16820d6c9cc1ea82f/tuyaha/tuyaapi.py#L52?

PaulAnnekov commented 3 years ago

Stalled.