Open a937287837 opened 3 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
授权成功截图如上。
环境: Home Assistant OS 6.2 core-2021.9.6 supervisor-2021.09.0
同样的问题+1
启动日志如下 `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使用很稳定
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配置
小度技能开放平台, 菜单:测试验证 => 真机调试 => 技能调试模式 是否有打开?
启动日志如下 `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接口哪块有问题