Linked group action to get family support

Last Updated on : 2023-12-07 03:33:53download

Linked group action to get family support

API address

GET: /v1.0/homes/{home_id}/linkage/device-group/functions

Request parameter

Parameter nameTypeINRequiredDescription
home_idStringuritrueFamily ID

Return parameter

Parameter nameTypeDescription
resultList

Description of result

Parameter nameTypeDescription
device_idStringDevice ID
entity_idStringEntity ID
functionsListAction performed
statusListOperation trigger conditions

Description of functions

Parameter nameTypeDescription
codeStringStandard issued instruction Code
nameStringCode Name
typeStringSend data type
valuesMapThe value range corresponding to Code

Description of status

Parameter nameTypeDescription
codeStringStandard issued instruction Code
nameStringCode Name
typeStringData type issued
valuesMapThe value range corresponding to Code

Description of values

Parameter nameTypeDescription
valuesString

Request example

GET: /v1.0/homes/52323xx/linkage/device-group/functions

Return example

[
    {
        "device_id": "0120090568c63a89xxxx",
        "functions": [
            {
                "code": "bright_value",
                "values": {
                    " min": 25,
                    "max": 255,
                    "scale": 0,
                    "type": "value",
                    "unit": " ",
                    "step": 1
                },
                "type": "Integer",
                "name": "brightness"
            }
        ],
        "status": [
            {
                "code": "work_mode",
                "values": {
                    "range": [
                        "white",
                        "colour",
                        "scene",
                        "scene_1",
                        "scene_2",
                        "scene_3",
                        "scene_4"
                    ],
                    "type": "Enum"
                },
                "type": "Enum",
                "name": "mode"
            }
        ]
    }
]

Error code

For more information, see error code.