Re: Accessing rooms using the tuya-device-sharing-sdk
Thanks for your help and effort. Very appreciated.
简单、多彩、自由讨论
https://tuyaos.com/
Thanks for your help and effort. Very appreciated.
hi,
The APIs related to rooms have been updated in the device-sdk: https://github.com/tuya/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
Sorry for the confusion. The form wasn’t submitted earlier, and I’ve now completed the submission. Please kindly check.
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.
pls try again
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.
Please provide your device ID and approximate call time for our troubleshooting, thank you.
network error:(2008) app param is invalid
Device ID: bfb9dd3453942083bcx9oj
Call time: 2026-06-30 10:40:15 UTC
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.