Thanks for your help and effort. Very appreciated.
Accessing rooms using the tuya-device-sharing-sdk
Re: Accessing rooms using the tuya-device-sharing-sdk
hi,
The APIs related to rooms have been updated in the device-sdk: https://github.com/tuya/tuya-device-sharing-sdk
-
novusdash123
- Posts: 12
Re: Accessing rooms using the tuya-device-sharing-sdk
Hi,
Thanks for your support. I don't seem to find the room related api in the code. The last commit to the dev branch was three weeks ago. Am I missing something?
Thanks again
Re: Accessing rooms using the tuya-device-sharing-sdk
Sorry for the confusion. The form wasn’t submitted earlier, and I’ve now completed the submission. Please kindly check.
-
novusdash123
- Posts: 12
Re: Accessing rooms using the tuya-device-sharing-sdk
Hi, yes I can now see the commits and the sdk function, thanks. Unfortunately I tested the function and it seems to give the following error:
Code: Select all
network error:(1108) uri path invalidThe query_homes() function seems to work well so I don't think it is an issue with my environment or credentials. I also have the sdk version 0.2.11 installed.
Re: Accessing rooms using the tuya-device-sharing-sdk
pls try again
-
novusdash123
- Posts: 12
Re: Accessing rooms using the tuya-device-sharing-sdk
Hi,
After your fix, HomeRepository.query_room_by_device no longer returns 1108.
It now returns 2008: app param is invalid.
SDK: tuya-device-sharing-sdk 0.2.11
Method: HomeRepository.query_room_by_device(device_id)
The same token can query homes and devices with no issues.
So auth/token/device sharing access works; only the room endpoint rejects the app/request parameters.
Re: Accessing rooms using the tuya-device-sharing-sdk
Please provide your device ID and approximate call time for our troubleshooting, thank you.
-
novusdash123
- Posts: 12
Re: Accessing rooms using the tuya-device-sharing-sdk
network error:(2008) app param is invalid
Device ID: bfb9dd3453942083bcx9oj
Call time: 2026-06-30 10:40:15 UTC
Re: Accessing rooms using the tuya-device-sharing-sdk
We sincerely apologize. Since this SDK is shared across multiple business lines, testing for Home Assistant was insufficient. We have repackaged it with bug fixes and completed full testing. Please upgrade to version 0.2.13.
Thank you for your feedback.