Page 2 of 3

Re: Accessing rooms using the tuya-device-sharing-sdk

Posted: 2026年 May 28日 21:59
by novusdash123

Thanks for your help and effort. Very appreciated.


Re: Accessing rooms using the tuya-device-sharing-sdk

Posted: 2026年 Jun 22日 10:35
by JamesG

hi,

The APIs related to rooms have been updated in the device-sdk: https://github.com/tuya/tuya-device-sharing-sdk


Re: Accessing rooms using the tuya-device-sharing-sdk

Posted: 2026年 Jun 22日 19:23
by novusdash123

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

Posted: 2026年 Jun 28日 22:06
by JamesG

Sorry for the confusion. The form wasn’t submitted earlier, and I’ve now completed the submission. Please kindly check.


Re: Accessing rooms using the tuya-device-sharing-sdk

Posted: 2026年 Jun 29日 00:24
by novusdash123

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 invalid

The 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

Posted: 2026年 Jun 29日 20:15
by JamesG

pls try again


Re: Accessing rooms using the tuya-device-sharing-sdk

Posted: 2026年 Jun 29日 23:08
by novusdash123

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

Posted: 2026年 Jun 30日 09:56
by JamesG

Please provide your device ID and approximate call time for our troubleshooting, thank you.


Re: Accessing rooms using the tuya-device-sharing-sdk

Posted: 2026年 Jun 30日 18:40
by novusdash123

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

Posted: 2026年 Jul 1日 17:06
by JamesG

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.