|
发表于 2022-10-31 17:10:41
|
显示全部楼层
本帖最后由 astang 于 2022-10-31 19:15 编辑
我把cmdFrom = '挂式空调XXXX'输出的是:{"data":{"nlpTime":{"query_device_table":0,"nlpTimecost":0,"device_execute":0},"termAction":"response","nlpResult":{"isContinuousDialogue":false,"sync_tts":"小优没有查到相关信息,请检查设备联网状态,稍后再试","appVersion":"7.0.4","retStatus":2,"userQuery":"挂式空调XXX状态","playtts":3,"parseStatus":true,"isDialog":false,"response":"小优没有查到相关信息,请检查设备联网状态,稍后再试","domain":"Dev.airConditioner","moreDevice":false,"nlpVersion":"dm.2.1.18_2-nlu.TPL","category":"command","quitContinuousDialogue":"yes","results":[{"dev":{"nickName":"挂式空调XXXX","wifiType":".....","name":"挂式空调XXXX","id":"......","type":"airConditioner"},"nlpParams":{},"params":{"domain":"Dev.airConditioner","nickname":"挂式空调XXXX","property":"all","name":"挂式空调XXXX","action":"statusEnquiry"}}],"isMultiDialogue":false}},"processorContextList":[],"response":"/ù空调现在的温度是26.00度","retCode":"00000","retInfo":"/ù小优没有查到相关信息,请检查设备联网状态,/ù稍后再试","sn":"......","triggerId":"","uSpanId":"","uTraceId":""}
改成智家里改过的设备名字“书房空调”会输出:{"data":{"nlpTime":{"query_device_table":0,"nlpTimecost":0,"device_execute":0},"termAction":"termDecide","nlpResult":{"isContinuousDialogue":false,"sync_tts":"书房没有找到空调呢","appVersion":"7.0.4","retStatus":2,"errorInfo":"没有找到当前设备","userQuery":"书房空调状态","playtts":3,"parseStatus":true,"isDialog":false,"response":"书房没有找到空调呢","domain":"Dev.airConditioner","moreDevice":false,"nlpVersion":"dm.2.1.18_2-nlu.TPL","category":"command","quitContinuousDialogue":"yes","results":[{"nlpParams":{},"params":{"domain":"Dev.airConditioner","property":"all","action":"statusEnquiry","errorCode":"0002","errorInfo":"没有找到当前设备","device":"空调","room":"书房"}}],"isMultiDialogue":false}},"processorContextList":[],"response":"/ù书房没有找到空调呢","retCode":"I00004-00011","retInfo":"/ù书房没有找到空调呢","sn":"......","triggerId":"","uSpanId":"","uTraceId":""} |
|