跳转到主要内容
开始创作
开发文档

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" }