『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1537|回复: 5

[求助] HAVCS还能用吗?接入小度没有新设备出来。

[复制链接]

1

主题

14

帖子

52

积分

注册会员

Rank: 2

积分
52
金钱
38
HASS币
0
发表于 2023-10-4 19:36:15 | 显示全部楼层 |阅读模式
本帖最后由 wyzxzx 于 2023-10-4 19:41 编辑

X86虚拟机 HASS通过HTTP自建技能研究了几天,什么都弄好了,SSL, 穿透,授权也成功了。就是无法发现新设备。下面是日志。始终401错误,不知道怎么回事

2023-10-04 19:21:26.624 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration xiaomi_miot 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
2023-10-04 19:21:26.630 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration ha_file_explorer 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
2023-10-04 19:21:26.632 WARNING (SyncWorker_2) [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
2023-10-04 19:21:26.635 WARNING (SyncWorker_2) [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
2023-10-04 19:21:26.638 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration bemfa 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
2023-10-04 19:21:54.419 WARNING (MainThread) [custom_components.havcs] [init] Data in your config entry is going to override your configuration.yaml: {'platform': ['dueros'], 'http': {'clients': {'dueros': 'https://xiaodu-dbp.baidu.com'}, 'ha_url': 'https://******'}, 'setting': {}, 'device_config': 'ui'}
2023-10-04 19:21:54.462 INFO (MainThread) [custom_components.havcs] [init] havcs enable "http mode"
2023-10-04 19:21:54.466 DEBUG (MainThread) [custom_components.havcs] [init] havcs only run in http mode, skip mqtt initialization
2023-10-04 19:21:54.467 DEBUG (MainThread) [custom_components.havcs] [init] ha_url = https://******, base_url = http://172.168.0.21:8123
2023-10-04 19:21:54.474 INFO (MainThread) [custom_components.havcs] [init] havcs initialization finished.
2023-10-04 19:21:54.479 INFO (MainThread) [custom_components.havcs] loading settings from file
2023-10-04 19:21:54.742 DEBUG (MainThread) [custom_components.havcs] [post-task] load new platform entry set()
2023-10-04 19:21:54.744 DEBUG (MainThread) [custom_components.havcs] [post-task] remove old platform entry set()
2023-10-04 19:21:54.752 ERROR (MainThread) [custom_components.havcs] [post-task] Unable to import havcs.dueros, cannot import name 'AsyncTrackStates' from 'homeassistant.helpers.state' (/usr/src/homeassistant/homeassistant/helpers/state.py)
2023-10-04 19:21:54.764 INFO (MainThread) [custom_components.havcs] loading device info from file
2023-10-04 19:21:54.764 DEBUG (MainThread) [custom_components.havcs.http] [http] check accessibility from local, base_url = https://******
2023-10-04 19:21:58.936 DEBUG (MainThread) [custom_components.havcs.http] [http][check] aouth service is running: url = https://******/havcs/auth/authorize, status = 401
2023-10-04 19:25:38.669 INFO (MainThread) [custom_components.havcs] loading device info from file
2023-10-04 19:27:30.813 INFO (MainThread) [custom_components.havcs] loading device info from file
havcs:
    platform:
       - dueros
    http:
        clients:
           duerosxxx: 123456
        device_config: ui
logger:
    default: error
    logs:
       custom_components.havcs: debug




回复

使用道具 举报

1

主题

14

帖子

52

积分

注册会员

Rank: 2

积分
52
金钱
38
HASS币
0
 楼主| 发表于 2023-10-4 19:42:31 | 显示全部楼层
自己顶一下。来个大神
回复

使用道具 举报

0

主题

27

帖子

161

积分

注册会员

Rank: 2

积分
161
金钱
134
HASS币
0
发表于 2023-11-1 16:43:08 | 显示全部楼层
Unable to import havcs.dueros, cannot import name 'AsyncTrackStates' from 'homeassistant.helpers.state' 这个代码注释掉
回复

使用道具 举报

1

主题

18

帖子

297

积分

中级会员

Rank: 3Rank: 3

积分
297
金钱
279
HASS币
0
发表于 2023-11-2 15:19:10 | 显示全部楼层
czou 发表于 2023-11-1 16:43
Unable to import havcs.dueros, cannot import name 'AsyncTrackStates' from 'homeassistant.helpers.sta ...

一样问题 这个要注释掉的代码在那个文件下的? 找了很久没找到了。
回复

使用道具 举报

1

主题

18

帖子

297

积分

中级会员

Rank: 3Rank: 3

积分
297
金钱
279
HASS币
0
发表于 2023-11-2 15:54:17 | 显示全部楼层
https://bbs.hassbian.com/thread-15591-9-1.html 找到解决方式了,下载附件helper.py 重新覆盖 havc下面同名文件
回复

使用道具 举报

0

主题

14

帖子

63

积分

注册会员

Rank: 2

积分
63
金钱
49
HASS币
0
发表于 2024-1-22 12:28:35 | 显示全部楼层
ioye 发表于 2023-11-2 15:19
一样问题 这个要注释掉的代码在那个文件下的? 找了很久没找到了。 ...

注释掉就没有状态值,应该不行的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-25 22:20 , Processed in 0.147009 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表