cnk700i / havcs

Home Assistant Voice Control Skill
https://ljr.im/articles/plugins-havcs-edible-instructions/
Apache License 2.0
311 stars 97 forks source link

升级之前无法控制设备,升级之后依然提示请检查服务,尝试过重新授权依然如此,日志见详情 #18

Closed axelburks closed 4 years ago

axelburks commented 4 years ago

小度音箱 + HA 0.104.2 升级之前无法控制设备,提示请检查服务,于是升级 升级完成之后,依然无法控制设备,提示请检查服务 尝试解除授权,重新授权,然后使用“发现设备”命令,提示 无法找到设备

启动 HA 后,havcs 相关日志如下:

2020-01-18 23:26:26 INFO (MainThread) [custom_components.havcs] [init] havcs run with "skill mode"(mode 3)
2020-01-18 23:26:26 DEBUG (MainThread) [custom_components.havcs.helper] [bindManager] ----init bindManager----
2020-01-18 23:26:26 DEBUG (MainThread) [custom_components.havcs.helper] [bindManager] discovery:
['7da44ebb784c814dfaa4ef68ff75f5bb@dueros']
2020-01-18 23:26:26 INFO (MainThread) [custom_components.havcs] [init] import havcs.dueros
2020-01-18 23:26:26 DEBUG (MainThread) [custom_components.havcs] [init] sucess to autoload ca.crt from /Users/suisr/.homeassistant/custom_components/havcs/ca.crt
2020-01-18 23:26:26 INFO (MainThread) [custom_components.havcs] [init] initialization finished, waiting for welcome message of mqtt server.
2020-01-18 23:26:56 INFO (MainThread) [custom_components.havcs] [init] load config after startup
2020-01-18 23:26:56 DEBUG (MainThread) [custom_components.havcs] [mqtt] -------- start handle task from mqtt at 2020-01-18 23:26:56 --------
2020-01-18 23:26:56 INFO (MainThread) [custom_components.havcs] [mqtt] get hello message:
****************************************************
***欢迎使用"havcs智能音箱接入Home Assistant方案"***
*********当你看到此信息,说明mqtt已正常工作*********
****************************************************
2020-01-18 23:26:56 DEBUG (MainThread) [custom_components.havcs] [mqtt] -------- mqtt task finish at 2020-01-18 23:26:56, Running time: 0.006419s --------

调用 havcs.reload 服务后,显示如下:

2020-01-18 23:50:58 INFO (MainThread) [custom_components.havcs] [service] ------------dueros 平台加载设备信息------------
[{'entity_id': 'switch.tv_power', 'device_type': 'SWITCH', 'device_name': '电视', 'zone': '客厅', 'properties': [{'entity_id': 'switch.tv_power', 'attribute': 'power_state'}], 'actions': ['turn_on', 'turn_off']}, {'entity_id': 'switch.tv_pause', 'device_type': 'SWITCH', 'device_name': '暂停电视', 'zone': '客厅', 'properties': [{'entity_id': 'switch.tv_pause', 'attribute': 'power_state'}], 'actions': ['turn_on', 'turn_off']}, {'entity_id': 'switch.guest_wifi', 'device_type': 'SWITCH', 'device_name': '访客网络', 'zone': '客厅', 'properties': [{'entity_id': 'switch.guest_wifi', 'attribute': 'power_state'}], 'actions': ['turn_on', 'turn_off']}]
cnk700i commented 4 years ago

应该是那段时间换服务端口了APP技能用不了,以后有问题加qq群反馈吧,比较少看issue。。