Device state (state)

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.

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