Device function value (value)

This structure is used for:

Field Type Mandatory? Description
type string ✔︎ The data types to transmit the value are as follows:
  • FLOAT
  • INTEGER
  • STRING
  • BOOL
  • ENUM
  • JSON
  • COLOUR
float_value number Real value
integer_value string Integer value written in a line
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–1,000
  • v: 0–1,000
{
    "key": string,
    "value": {
        "type": string,
        "type_value": object
    }
}