ym88659208ym87991671
Device state (state) | Documentation for developers

Device state (state)

Last updated on May 25, 2023

The structure describes the current status of a device function. For example, you can use this structure to describe at what brightness the lamp is now shining.

The structure is used:

FieldTypeMandatory?Description
keystring✔︎Device function name (see Device functions)
valueobject✔︎Current function value (see Device function value (value))
{
"states": [
{
"key": string,
"value": {
"type": string,
"type_value": object
}
},
{
// ...
}
]
}

Device status description example

The device in example is operating in a colour mode.

{
"states": [
{
"key": "light_mode",
"value": {
"type": "ENUM",
"enum_value": "colour"
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.