Commit b22ce43c authored by 何金镒's avatar 何金镒

新增场景 2

parent c8acc664
...@@ -709,8 +709,11 @@ public class KonkeIotUtils { ...@@ -709,8 +709,11 @@ public class KonkeIotUtils {
jsonObject.set("speed", operation.get(key)); jsonObject.set("speed", operation.get(key));
}else if("runModel".equalsIgnoreCase(key)){ }else if("runModel".equalsIgnoreCase(key)){
jsonObject.set("runModel", operation.get(key)); jsonObject.set("runModel", operation.get(key));
jsonObject.set("mode", operation.get(key));
}else if("runTemp".equalsIgnoreCase(key)){ }else if("runTemp".equalsIgnoreCase(key)){
jsonObject.set("runTemp", operation.get(key)); jsonObject.set("runTemp", operation.get(key));
jsonObject.set("setTemp", operation.get(key));
jsonObject.set("temp", operation.get(key));
}else{ }else{
log.error("不支持的操作2:{}",JSONUtil.toJsonStr(operation)); log.error("不支持的操作2:{}",JSONUtil.toJsonStr(operation));
} }
......
...@@ -50,3 +50,25 @@ ...@@ -50,3 +50,25 @@
## ##
2、当用户提出试用推荐的场景时,你需要根据获取到的临时场景ID{{#conversation.temporarySceneId#}}与家庭下的主机号,再调用mcp函数triggerScene来触发场景。 2、当用户提出试用推荐的场景时,你需要根据获取到的临时场景ID{{#conversation.temporarySceneId#}}与家庭下的主机号,再调用mcp函数triggerScene来触发场景。
### 临时场景试用
## 任务
当用户提出试用推荐的场景时,你需要使用您管理的主机号ccuName和临时场景devId来调用mcp函数triggerScene来触发场景,其中triggerScene函数中的typeId等于scene。
## 示例引导
用户输入:"试试刚刚推荐的场景"
期望输出:"执行成功"
用户输入:"把刚刚的场景执行试试"
期望输出:"您还没有临时场景,是否需要帮你推荐?"
## 注意
不要出现场景ID等字样。
严格按照示例来回复用户。
试用临时场景操作必须调用mcp服务,严禁不调用mcp服务直接回复用户。
## 背景
主机号ccuName:{{#1754485785703.ccuName#}}
临时场景devId:{{#conversation.temporarySceneId#}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment