ym88659208ym87991671
Device function value (value) | Documentation for developers

Device function value (value)

Last updated on June 17, 2024

This structure is used for:

FieldTypeMandatory?Description
typestring✔︎The data types to transmit the value are as follows:
  • FLOAT
  • INTEGER
  • STRING
  • BOOL
  • ENUM
  • COLOUR
float_valuenumberReal value
integer_valuestringInteger value in "long" format, written as a string
string_valuestringString value
bool_valuebooleanLogical value
enum_valuestringEnumerated value
colour_valuecolourColour 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.