ym88659208ym87991671
Device function value (value) | Documentation for developers

Device function value (value)

Last updated on October 28, 2025

This structure is used for indicating the device status (see the Device state (state) structure).

FieldTypeMandatory?Description

type

string

✔︎

The data types to transmit the value are as follows:

  • FLOAT
  • INTEGER
  • STRING
  • BOOL
  • ENUM
  • COLOUR

float_value

number

Real value

integer_value

string

Integer value in "long" format, written as a string

string_value

string

String value

bool_value

boolean

Logical value

enum_value

string

Enumerated value

colour_value

colour

Colour in HSV format: {"h":int,"s":int,"v":int}.
Available values:

  • h: 0–360
  • s: 0–1000
  • v: 100–1000
{
"key": string,
"value": {
"type": string,
"type_value": object
}
}

Device function value example

The example describes the function light_mode, which has the value colour (colour mode of operation).

{
"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.