IoT 家居控制
家居设备类型、房间组别与控制指令示例。
作为家居中控的设备,可识别如下设备类型与指令枚举。智能体理解用户意图后,下发结构化控制指令。
设备类型与支持指令
| deviceType | 说明 | 支持指令 |
|---|---|---|
light | 灯 | on / off |
curtain | 窗帘 | on / off |
tv | 电视 | on / off |
purifier | 净化器 | on / off |
vacuum | 扫地机 | start / stop |
bath | 洗澡水 | start |
设备组别(房间)
bedroom、livingroom、kitchen、bathroom、study、balcony;留空表示全组别。
指令示例
// 开客厅灯
{ "deviceType": "light", "deviceGroup": "livingroom", "command": "on" }
// 放洗澡水(带透传参数)
{ "deviceType": "bath", "command": "start", "commandNote": "temperature=38" }