提供场景自动化能力,支持以任意设备、时间或环境为条件,触发多个设备同时执行不同动作。例如,9点打开教室灯、空调设备,室内温度到达30度时,打开空调制冷。
一键执行
| API名称 | 接口地址 |
| 添加一键执行 | POST:/v2.0/iot-03/scenes |
| 查询一键执行详情 | GET:/v2.0/iot-03/scenes/{scene_id} |
| 删除一键执行 | DELETE:/v2.0/iot-03/scenes/{scene_id} |
| 更新一键执行 | PUT:/v2.0/iot-03/scenes/{scene_id} |
| 查询一键执行列表 | GET:/v2.0/iot-03/scenes |
| 执行一键执行 | PUT:/v2.0/iot-03/scenes/{scene_id}/trigger |
场景自动化
| API名称 | 接口地址 |
| 查询自动化详情 | GET:/v2.0/iot-03/automations/{automation_id} |
| 更新自动化 | PUT:/v2.0/iot-03/automations/{automation_id} |
| 删除自动化 | DELETE:/v2.0/iot-03/automations/{automation_id} |
| 添加自动化 | POST:/v2.0/iot-03/automations |
| 停用自动化 | PUT:/v2.0/iot-03/automations/{automation_id}/disable |
| 查询自动化列表 | GET:/v2.0/iot-03/automations |
| 启用自动化 | PUT:/v2.0/iot-03/automations/{automation_id}/enable |
自动化条件支持的天气查询
| API名称 | 接口地址 |
| 查询城市信息 | GET:/v2.0/iot-03/automations/cities/positions |
| 查询城市列表 | GET:/v2.0/iot-03/automations/cities |
| 查询天气码 | GET:/v2.0/iot-03/automations/weathers/codes |
红外设备指令集查询
| API名称 | 接口地址 |
| 查询红外设备标准指令集 | GET:/v2.0/iot-03/automations/infrared/devices/{device_id}/specifications |
| 查询设备当前状态 | GET:/v2.0/iot-03/automations/infrared/ac/{device_id}/status |
设备标准指令集查询
| API名称 | 接口地址 |
| 查询设备标准指令集 | GET:/v2.0/iot-03/automations/devices/{device_id}/specifications |