ym88659208ym87991671
Devices status transmission (status) | Documentation for developers

Devices status transmission (status)

Last updated on May 17, 2023

Direction: controller → cloud.

The agent app installed on the controller notifies Sber Smart Home of changes in the device state.

Use case example:

  1. The device’s function state has changed for any reason. E.g. the lamp was turned off manually.
  2. The agent receives from the controller the current device state and sends a message indicating it. The message can be sent independently or as a response to the Smart Home's message: sberdevices/v1/<username>/down/status_request.
  3. The Smart Home receives a new state of the device and updates it in the Salute app, on SberPortal, SberBox and other devices with Salute assistants.

Message format

Topic:

sberdevices/v1/<username>/up/status
ParameterTypeMandatory?Description
usernamestring✔︎Login for connection to the Sber MQTT server (see "Having your controller authorized" for integrators and DIY enthusiasts)

Message body:

FieldTypeMandatory?Description
devicesdict<string object>✔︎Devices whose status information is being transmitted. For each device, the device ID in the vendor's system and the status of its functions are transmitted
IDstring✔︎Device ID in the vendor's system
stateslist<object>✔︎List of states (see Device state (state))
{
"devices": {
"id": {
"states": [
{
"key": string,
"value": {
"type": string,
"type_value": object
}
},
{
// ...
}
]
}
}
}

Message example

The agent app installed on the controller notifies Sber Smart Home of changes in the state of the online and on_off functions of the socket.

Topic:

sberdevices/v1/1234567/up/status

Message body:

{
"devices": {
"ABCD_003": {
"states": [
{
"key": "online",
"value": {
"type": "BOOL",
"bool_value": true
}
},
{
"key": "on_off",
"value": {
"type": "BOOL",
"bool_value": true
}
}
]
}
}
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.