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_at

Date and time query was sent

partner_id

ID of your project in SmartMarket Studio

user_id

Controller ID

request_id

Unique ID assigned by Sber Smart Home to the query

device_id

Device ID on the controller

direction

Query direction:

  • UP – request from the controller to the Sber Smart Home cloud.
  • DOWN – request from the ber Smart Home cloud to the controller

operation

Name of the sent request. See Webhook queries for a list of possible queries

address

Protocol and address used to send the query

execution_time

Time until response (in milliseconds)

error_code

Response code:

  • 200 – query processed successfully.
  • 400 – query validation error.
  • 401 – authorization error.
  • 403 – token verification error.
  • 500 – internal system error.
  • 503 – server unavailable

error_text

The text of the returned error message

device_type_id

Model ID

category_name

Device type (см. Devices)

request_body

Request text

response_body

Response text

Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.