Query Weather Conditions

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

Query weather conditions supported by a specified automation scene.

API address

GET: /v1.0/homes/automation/weather/conditions

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
categoryStringThe category.
category_nameStringThe name of the specified category.
operatorsStringThe operator.
propertyJSONObjectThe property of the specified category.

Request example

GET: /v1.0/homes/automation/weather/conditions

Return example

{
    "result": [
        {
            "category_name": "Temperature",
            "operators": "[\"<\",\"==\",\">\"]",
            "property": {
                "max": 40,
                "type": "value",
                "unit": "℃",
                "min": -40,
                "step": 1
            },
            "category": "temp"
        }
    ],
    "t": 1572936751228,
    "success": true
}

Error code

For more information, see error code.