Device model (model)

The structure describes characteristics and functions of the model of a device, such as a lamp or a socket.

Field Type Mandatory? Description
id string ✔︎ Model ID (often product_id)
manufacturer string ✔︎ Manufacturer
model string ✔︎ Full model name
hw_version string Equipment version
sw_version string Firmware version
description string Description
category string ✔︎ Device category (see Devices)
features list<string> ✔︎ List of functions (see Device functions)
dependencies map<string, object> Function dependencies (see Function dependencies (dependencies)
{
    "id": string,
    "manufacturer": string,
    "model": string,
    "hw_version": string,
    "sw_version": string,
    "description": string,
    "category": string,
    "features": [
        string,
        string,
        // ... 
    ],
    "dependencies": {
        "func_name": {
            "key": "string",
            "values": [
                {
                    "type": string,
                    "type_value": object
                },
                {
                    // ...
                },
            ]
        },
        {
            // ...
        }
    }
}