Last Updated on : 2023-12-07 03:33:55
Used to modify automation scenarios.
PUT: /v1.0/homes/{home_id}/automations/{automation_id}
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
home_id | String | uri | true | Family ID |
automation_id | String | uri | true | Automation ID |
body | String | false | Request message body |
Parameter name | Type | Description |
---|---|---|
result | Boolean | Execution result:
|
PUT: /v1.0/homes/242****/automations/53IYSXI3gEn2****
{
"actions": [
{
"action_executor": "dpIssue",
"entity_id": "vdevo157259825422309",
"executor_property": {
"switch_1": true
}
}
],
"background": "https://images.tuyacn.com/smart/rule/cover/bedroom.png",
"conditions": [
{
"display": {
"code": "switch_1",
"operator": "==",
"value": true
},
"entity_id": "vdevo157259825422309",
"entity_type ": 1,
"order_num": 1
}
],
"match_type": 1,
"name": "Test Automation"
}
true
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback