Apply Temperature Control Template (High Temperature)

Last Updated on : 2023-06-21 07:12:53download

Apply a temperature control scene template to a specified asset. When the human presence sensor detects a person and the temperature sensor detects that the temperature is higher than the threshold, the air conditioner will be automatically powered on to achieve the specified temperature.

API address

POST: /v1.0/iot-03/scene-templates/10000/assets/{asset_id}/actions/apply

Request parameter

Parameter name Type IN Required Description
asset_id String uri true The ID of a specified asset.

Description of body

Parameter name Type IN Required Description
time_zone_id String true The time zone.

Return parameter

Parameter name Type Description
result String The ID of a specific linkage rule.

Request example

POST: /v1.0/iot-03/scene-templates/10000/assets/1405081808080xxx/actions/apply
{ "asset_id": "1405081808080xxx", "time_zone_id": "Asia/Shanghai" }

Return example

{ "result": "qweqweq", "t": 1623833483402, "success": true }

Error code

For more information, see error code.