Closed mhirsch closed 3 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?
Stalled.
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 frompx1.tuyaus.com
. Would it be possible to modify the app to accept the subdomain as a config option along with the region?