Is there a maximum number of devices that can be returned by discoveryRequest?

I am using cloud connected devices,
For these two interfaces:, interactionType:
discoveryRequest + stateRefreshRequest
Document: Interaction Types | Developer Documentation | SmartThings

My interfaces all respond to parameters normally, but the smartings app will prompt that something is wrong,
I found a feature:
When I have a small number of devices, there is no problem;
When the number of devices is large, there will be problems (90);
The interface time consumption is also normally within 500ms;

Questions:

  1. Is there a limit on the number of devices?
  2. Is there a limit on the interface response time? What is the default time limit now?
  3. Where can I adjust the interface response time to make it larger?

Hi, @wunan_li

So, do you mean that you tried to discover 90 devices in a single Schema connector? Are you getting a specific error when it fails?

Also, by “interface response time” are you referring to the time it takes after you log in to the third-party cloud to send all the discovery and state refresh interactions?

  1. The smartthings app only says something’s wrong, but my backend server does not receive the task error callback information (interactionResult)

  2. How much time do discovery and state refresh take individually or together?

@nayelyz
11

Hi, @wunan_li

I asked the engineering team, and discovering 11 devices shouldn’t cause an issue per se, so we need more information to investigate what happened. To do so, we need the following:

  1. App ID of your Schema connector. (The one that starts with “viper_…”)
  2. Replicate the issue and:
    • record your screen to have a better reference for which part of the process fails and hare the video with us
    • get the app logs:
Instructions

For Android users:

  1. Go to Menu > Gear Icon > About SmartThings
  2. Tap the SmartThings logo 10 times.
  3. This will open the developer’s space > tap ‘report a problem’
  4. This will send you to the report page. Select a frequency and write a short description of the issue.
  5. Click on “Report” and a log file will be generated for you to send over email, please do so to build@smartthings.com

For iOS users:
First:

  1. Enable the creation of additional logs in the app:
  1. In the ST app, go to “menu” > “settings”.
  2. At the bottom of that page, you’ll find a section called “Troubleshooting”. Please, enable the option that says “Create Additional SmartThings Log”.
  3. Restart the app
    Then:
  1. In the app menu, go to “contact us”
  2. Then, tap on “Error reports”
  3. On the opened page, tap 10 times on the title/label “What is the error about?” or until the prompt to create a log appears.
  4. Click on “ok” and wait for the process to finish. Then, save the generated file in the place you prefer and share it with us at build@smartthings.com
  • Take note of the date and time and share it with us, including your timezone (for example: 14:00 GMT-6)
  • Open support access to your account:
  1. Confirm the email account registered in the forum is the same one you use for SmartThings. If not, please share it with me over DM
  2. Enable support access to your account:
  1. Go to the SmartThings Web (my.smartthings.com)
  2. Log in to your Samsung Account
  3. Select Menu (⋮) and choose Settings
  4. Toggle on Account Data Access
  5. Select the time period and confirm - In this step, please select “Until turned off”, once the team finishes, we’ll let you know so you can disable it again.

See more information about this access here: https://support.smartthings.com/hc/en-us/articles/36170233944852-Enabling-Account-Data-Access-for-Support