- 积分
- 488
- 金钱
- 379
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 488
- 金钱
- 379
- HASS币
- 0
|
发表于 2019-5-26 19:39:53
|
显示全部楼层
F大求助啊,不知道问题出在哪里了:
本帖最后由 litao8174 于 2019-5-26 19:38 编辑
之前曾经用hassio成功的配置过小爱,小爱自己升级系统所有设置都没了。自己换了EXSI,原来的环境也彻底没了,现在彻底重新搭建,但是小爱怎么也无法正常工作了,求大神给帮忙解决。
目前环境如下:
1.蜗牛星际C款
2.EXSI 6.5
3.黑群晖+Docker
4.Docker下安装homeassistant0.84
5.Docker下安装Node red 0.20.5
6.小爱系统版本1.44.2
目前已经实现的操作如下:
1.小爱按照论坛里的教程完成了破解
https://bbs.hassbian.com/thread-5234-1-1.html
2.Node red导入了“处理小爱转发V3”,并且修改了homeassistan的设置,已经跟homeassistant正常连接。
https://github.com/FlashSoft/mico/tree/dev
日志文件名也改过了 tmp/mipns/mibrain/mibrain_txt_RESULT_NLP.log
3./miai/get/res和/miai/get/asr 两个连接都可以正常打开,里面能读取到关键拦截词。
4.获取到设备控制列表正常,可以用nodeIP/miai/list 获得所有设备的列表。
5.全量日志跟调试日志能够抓取到日志内容。
目前问题如下:
发出指令后,小爱提示“小爱音箱提示没有找到你的设备换个小爱能控制的设备”,此时全量日志跟调试日志都能接收到。但是其他调试日志都没有任何信息显示。
调试日志显示:
5/26/2019, 7:24:41 PMnode: 调试日志
msg : Object
object
queries: "关闭氛围灯,关闭氛围灯"
domain: "未知"
code: "未知"
err: "未知"
_msgid: "b8125a6f.1ce798"
全量日志显示:
msg : Object
object
_msgid: "b8125a6f.1ce798"
payload: object
asr: "{"meta":{"type":"RESULT_ASR_FINAL","request_id":"26cd304936697b129c5996cf2115492e","timestamp":1558869883430},"response":{"queries":[{"query":"关闭氛围灯","confidence":0.99490834,"is_final":true,"query_vendor":1001,"query_debug":"AsrResponse{text=[B@57b5b03, lastPacket=true, decodedText=关闭氛围灯, error=null, gender=0, packetId=9, volume=-2.0, endpointDetected=false, debug=DebugInfo{hostname=c5-asr-prod-srv-g4p4-28.bj, modelType=sound}, packetIdDetected=103}","gender":0,"locale":"zh-CN","frameId":103},{"query":"关闭氛围灯","confidence":0.993808405,"is_final":true,"query_vendor":1015,"query_debug":"{\"end_flag\":1,\"err_no\":0,\"idx\":-67,\"result\":{\"nbest\":[\"关闭氛围灯\"]},\"sid\":\"26cd304936697b129c5996cf2115492e\"}\n","locale":"zh-CN"}]}}"
res: "{"meta":{"type":"RESULT_NLP","nlp":{},"request_id":"26cd304936697b129c5996cf2115492e","timestamp":1558869883583},"response":{"status":{"code":200,"error_type":"success","extend":{"code":2002008,"name":"SM_NO_DEVICE_TO_OPERATE_DEVICE_LIST_NOT_EMPTY","type":"DEVICE","extra":{}}},"answer":[{"domain":"smartMiot","action":"operate","text":"没有找到你的设备,先去买个小爱能控制的设备吧。","widgets":[{"info":{"category":"com.xiaomi.intent.category.VOICE_CONTROL_SMART_HOME_APPLIANCES","package_name":"com.xiaomi.smarthome.tv","min_version_code":110,"signature":"08:32:F8:EB:8B:B2:28:12:1A:6E:A9:0C:AD8:9D:58:2C:B1:9C:7D"},"params":{}}],"content":{"open_mic":false,"to_speak":"没有找到你的设备,先去买个小爱能控制的设备吧。","to_display":{"type":3,"text":"没有找到你的设备,先去买个小爱能控制的设备吧。"},"result":{"device":[],"option":[],"type":0,"needRefresh":0}},"intention":{"query":"关闭氛围灯","action":"operate","score":0.98,"domain":"smartMiot","complete":true,"dialog_status":"FINISH","dialog_ask_round":0,"entity":"light","sub_category":"氛围灯","debug_info":{},"to_oper..."
为了找问题出在哪里,我尝试重新装了一套0.92hassio,用hassio配置了node red,得到的错误也是一样。
|
|