ym88659208ym87991671
Viewing the MQTT DIY query Log | Documentation for developers

Query log

Last updated on August 26, 2022

If there is a problem with the device, look at the request log. It displays all requests processed by the SberDevices IoT Agent: both requests from the Sber Smart Home to the controller and requests from the controller to the Sber Smart Home.

For each request, you can see what time the request was sent, what kind of request it was and what kind of response was returned.

To find and view the necessary queries:

  1. In SmartMarket Studio open your workspace. Select the desired project.
  2. On the left part of the screen, click on
    .
  3. In the fields of the form, specify the dates for which you want to upload logs. The fields Username in your system (controller ID) and x-request-id list (request IDs) are not currently used to search for logs.
  4. Click Download logs.
  5. Wait until the download batch is formed – the download link will appear below the form.

The logs reflect the following query details:

created_atDate and time query was sent
partner_idID of your project in SmartMarket Studio
user_idController ID
request_idUnique ID assigned by Sber Smart Home to the query
device_idDevice ID on the controller
directionQuery direction:
  • UP – request from the controller to the Sber Smart Home cloud.
  • DOWN – request from the ber Smart Home cloud to the controller
operationName of the sent request. See Webhook queries for a list of possible queries
addressProtocol and address used to send the query
execution_timeTime until response (in milliseconds)
error_codeResponse code:
  • 200 – query processed successfully.
  • 400 – query validation error.
  • 401 – authorization error.
  • 403 – token verification error.
  • 500 – internal system error.
  • 503 – server unavailable
error_textThe text of the returned error message
device_type_idModel ID
category_nameDevice type (см. Devices)
request_bodyRequest text
response_bodyResponse text
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.