User device (device)
Last updated on April 13, 2025
The structure describes specifications and functions of the model of a device, such as a lamp or a socket.
The structure is used:
-
When the vendor sends information about the user's devices to the Sber Smart Home:
- when the webhook responds to a request Request for all the user's devices and their functions (get devices);
- when sending a request Add user's devices (post devices);
- when sending a request Update user's devices (put devices).
-
When the Sber Smart Home sends a response to the vendor's request Get the user’s device list (get devices).
Field | Type | Mandatory? | Description |
id | string | ✔︎ | Device ID in the vendor's system |
parent_id | string | ID of parent device (e.g. hub) | |
name | string | ✔︎ | Device name given by the user |
default_name | string |