Last Updated on : 2023-09-15 01:51:20download
Add automation scenes to the specified home.
POST: /v1.0/homes/{home_id}/automations
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
home_id | String | uri | true | The home ID. |
Parameter name | Type | Description |
---|---|---|
result | String | The returned result. |
POST: /v1.0/homes/242****/automations
{
"conditions": [
{
"display": {
"code": "switch_1",
"operator": "==",
"value": true
},
"entity_id": "vdevo15725982542****",
"entity_type": 1,
"order_num": 1
}
],
"actions": [
{
"action_executor": "delay",
"executor_property": {
"hours": "0",
"minutes": "0",
"seconds": "5"
}
},
{
"action_executor": "dpIssue",
"entity_id": "vdevo15725982542****",
"executor_property": {
"switch_1": true
}
}
],
"background": "https://images.tuyacn.com/smart/rule/cover/bedr***.png",
"match_type": 1,
"name": "Automation Test"
}
{
"preconditions": [
{
"display": {
"start": "10:00",
"loops": "0010000",
"timezone_id": "Asia/Shanghai",
"end": "12:00"
},
"cond_type": "timeCheck"
}
]
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback