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

小度无法发现设备,版本Home Assistant 2021.8.6 #44

Open a937287837 opened 3 years ago

a937287837 commented 3 years ago

启动日志如下 `2021-08-21 18:47:22 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration havcs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-08-21 18:47:22 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-08-21 18:47:28 INFO (MainThread) [custom_components.havcs] [init] havcs enable "http mode" 2021-08-21 18:47:28 DEBUG (MainThread) [custom_components.havcs] [init] havcs only run in http mode, skip mqtt initialization 2021-08-21 18:47:28 DEBUG (MainThread) [custom_components.havcs] [init] ha_url = https://localhost:8123, base_url = https://localhost:8123 2021-08-21 18:47:28 INFO (MainThread) [custom_components.havcs] [init] havcs initialization finished. 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] loading settings from file 2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs] [post-task] load new platform entry set() 2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs] [post-task] remove old platform entry set() 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] [post-task] import havcs.dueros 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] loading device info from file 2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs.http] [http] check accessibility from local, base_url = https://localhost:8123 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] [service] ------------dueros 平台加载设备信息------------ [{'device_id': 'havcs.switch01', 'entity_id': ['switch.cha_zuo'], 'type': 'switch', 'name': 'xiaomi', 'zone': 'Bedroom', 'properties': [{'entity_id': 'switch.cha_zuo', 'attribute': 'power_state'}], 'actions': ['turn_on', 'turn_off']}] 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] [service] ------------dueros 平台加载设备信息------------

2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs.http] [http][check] aouth service is running: url = https://localhost:8123/havcs/auth/authorize, status = 401 2021-08-21 18:47:35 ERROR (MainThread) [custom_components.hacs] tellerbop/havistapool - Repository is archived.` 是不是由于目前版本升级后,http接口哪块有问题

kexue-z commented 3 years ago

授权过程正常吗?

ten-ltw commented 2 years ago

我也同样是授权通过出现 http 401:

2021-09-16 22:59:39 INFO (MainThread) [custom_components.havcs] [service] ------------dueros 平台加载设备信息------------
2021-09-16 22:59:39 DEBUG (MainThread) [custom_components.havcs.http] [http][check] aouth service is running: url = http://192.168.50.3:8123/havcs/auth/authorize, status = 401
截屏2021-09-16 下午11 01 06

授权成功截图如上。

环境: Home Assistant OS 6.2 core-2021.9.6 supervisor-2021.09.0

lkiarest commented 2 years ago

同样的问题+1

a937287837 commented 2 years ago

启动日志如下 `2021-08-21 18:47:22 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration havcs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-08-21 18:47:22 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-08-21 18:47:28 INFO (MainThread) [custom_components.havcs] [init] havcs enable "http mode" 2021-08-21 18:47:28 DEBUG (MainThread) [custom_components.havcs] [init] havcs only run in http mode, skip mqtt initialization 2021-08-21 18:47:28 DEBUG (MainThread) [custom_components.havcs] [init] ha_url = https://localhost:8123, base_url = https://localhost:8123 2021-08-21 18:47:28 INFO (MainThread) [custom_components.havcs] [init] havcs initialization finished. 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] loading settings from file 2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs] [post-task] load new platform entry set() 2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs] [post-task] remove old platform entry set() 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] [post-task] import havcs.dueros 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] loading device info from file 2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs.http] [http] check accessibility from local, base_url = https://localhost:8123 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] [service] ------------dueros 平台加载设备信息------------ [{'device_id': 'havcs.switch01', 'entity_id': ['switch.cha_zuo'], 'type': 'switch', 'name': 'xiaomi', 'zone': 'Bedroom', 'properties': [{'entity_id': 'switch.cha_zuo', 'attribute': 'power_state'}], 'actions': ['turn_on', 'turn_off']}] 2021-08-21 18:47:32 INFO (MainThread) [custom_components.havcs] [service] ------------dueros 平台加载设备信息------------

2021-08-21 18:47:32 DEBUG (MainThread) [custom_components.havcs.http] [http][check] aouth service is running: url = https://localhost:8123/havcs/auth/authorize, status = 401 2021-08-21 18:47:35 ERROR (MainThread) [custom_components.hacs] tellerbop/havistapool - Repository is archived.` 是不是由于目前版本升级后,http接口哪块有问题

建议退回2021.5.4版本,搭配havcs使用很稳定

Memo654 commented 2 years ago

ha 2021.6月更新更改了http默认配置,参照以下链接修改: https://community.home-assistant.io/t/http-integration-is-not-set-up-for-reverse-proxies/313284 https://www.home-assistant.io/blog/2021/06/02/release-20216/#other-breaking-changes 使用反向代理端口转为公网ip访问的情况下需要添加配置http配置 image

yearnfar commented 2 years ago

小度技能开放平台, 菜单:测试验证 => 真机调试 => 技能调试模式 是否有打开?