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

 找回密码
 立即注册
查看: 17126|回复: 25

[求助] 【已放弃】【HAVCS】配置问题

[复制链接]

35

主题

978

帖子

4507

积分

论坛元老

Rank: 8Rank: 8

积分
4507
金钱
3529
HASS币
20
发表于 2021-3-27 19:49:43 | 显示全部楼层 |阅读模式
本帖最后由 sctale 于 2021-12-21 18:55 编辑

我看了coriding大神的帖子https://bbs.hassbian.com/forum.php?mod=viewthread&tid=9851&extra=&ordertype=1&page=1,在配置HAVCS,配置检查那边显示配置有效,但是重启后在侧边栏啥都没有,而且进log那边看到是有报错的,有大大知道这个怎么解决吗?
图片是我的配置文件截图。


报错如下:
2021-03-27 19:37:11 WARNING (MainThread) [homeassistant.loader] You are using 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-03-27 19:37:11 WARNING (MainThread) [homeassistant.loader] You are using 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-03-27 19:37:11 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'havcs'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'havcs'
2021-03-27 19:37:15 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 主配置[configuration.yml] for havcs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/havcs/__init__.py", line 250, in async_setup_entry
http_manager = hass.data[DOMAIN][DATA_HAVCS_HTTP_MANAGER] = HavcsHttpManager(hass, conf.get(CONF_HTTP, {}).get(CONF_HA_URL, hass.config.api.base_url), DEVICE_CONFIG_SCHEMA)
AttributeError: 'ApiConfig' object has no attribute 'base_url'

问题001.png
问题002.png
问题003.png
问题004.png
回复

使用道具 举报

35

主题

978

帖子

4507

积分

论坛元老

Rank: 8Rank: 8

积分
4507
金钱
3529
HASS币
20
 楼主| 发表于 2021-3-28 12:46:44 | 显示全部楼层
自己顶一下,有没有路过的大神指导一下,谢谢

                               
登录/注册后可看大图
回复

使用道具 举报

3

主题

279

帖子

2138

积分

金牌会员

Rank: 6Rank: 6

积分
2138
金钱
1859
HASS币
0
发表于 2021-4-9 00:04:15 | 显示全部楼层
等作者改代码吧,配置变了
回复

使用道具 举报

35

主题

978

帖子

4507

积分

论坛元老

Rank: 8Rank: 8

积分
4507
金钱
3529
HASS币
20
 楼主| 发表于 2021-4-9 22:00:18 | 显示全部楼层
wbdownn 发表于 2021-4-9 00:04
等作者改代码吧,配置变了

好的,谢谢提醒

                               
登录/注册后可看大图
回复

使用道具 举报

25

主题

441

帖子

2338

积分

论坛积极会员

积分
2338
金钱
1897
HASS币
0
发表于 2021-4-25 21:47:58 | 显示全部楼层
2021的哪个版本还可以用?
回复

使用道具 举报

25

主题

441

帖子

2338

积分

论坛积极会员

积分
2338
金钱
1897
HASS币
0
发表于 2021-4-25 21:53:00 | 显示全部楼层
cnk700i 大神好久不见了
回复

使用道具 举报

3

主题

91

帖子

1281

积分

金牌会员

Rank: 6Rank: 6

积分
1281
金钱
1190
HASS币
10
发表于 2021-5-23 15:05:45 | 显示全部楼层
最新版HA,不要用集成的方式添加,先删除集成里的相关配置,再在configuration.yaml添加配置,然后重新启动,亲测正常使用
回复

使用道具 举报

35

主题

978

帖子

4507

积分

论坛元老

Rank: 8Rank: 8

积分
4507
金钱
3529
HASS币
20
 楼主| 发表于 2021-5-23 16:33:19 来自手机 | 显示全部楼层
syzylj 发表于 2021-5-23 15:05
最新版HA,不要用集成的方式添加,先删除集成里的相关配置,再在configuration.yaml添加配置,然后重新启动 ...

可以分享一下设置吗?
回复

使用道具 举报

3

主题

91

帖子

1281

积分

金牌会员

Rank: 6Rank: 6

积分
1281
金钱
1190
HASS币
10
发表于 2021-5-24 09:19:16 | 显示全部楼层
sctale 发表于 2021-5-23 16:33
可以分享一下设置吗?

# {HA配置目录}/configuration.yaml
havcs:
  platform:                               # 音箱平台服务网关,至少启用一个
    - aligenie                            # 天猫精灵
    - dueros                              # 小度
    - jdwhale                             # 叮咚
  http:
    clients:                              # 音箱平台客户端认证信息(使用插件的授权页面)。其节点下的键值对代表"client_id: client_secret",其中client_id起始字符会匹配音箱平台,音箱平台上设置要与此处设置一致
      dueros{自定义字符}: {自定义密码}      # 小度平台认证信息,样例:duerosdemo: 123 代表client_id为duerosdemo,client_secret为123
      aligenie{自定义字符}: {自定义密码}    # 天猫精灵平台认证信息,样例:aligeniedemo: 123 代表client_id为aligeniedemo,client_secret为123
      jdwhale{自定义字符}: {自定义密码}     # 叮咚平台认证信息,样例:jdwhaledemo: 123 代表client_id为jdwhaledemo,client_secret为123
      aligenie_ignore: ignore             # PS: 如果不使用插件授权页面,也要随意设置一个键值对
    ha_url: http://localhost:8123         # HA主机本地访问地址,如果HA没配置base_url(http:组件里),可自动识别不用设置;否则设置http://localhost:{端口号} 或 https://localhost:{端口号}(HA启用ssl)
    expire_in_hours: 24                   # token超时时间,单位小时,不设置则默认24h
  device_config: ui     
回复

使用道具 举报

30

主题

180

帖子

736

积分

高级会员

Rank: 4

积分
736
金钱
556
HASS币
0
发表于 2021-5-29 22:12:15 | 显示全部楼层
syzylj 发表于 2021-5-24 09:19
# {HA配置目录}/configuration.yaml
havcs:
  platform:                               # 音箱平台服务 ...

同样的问题,根本不行啊。。。。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-23 18:54 , Processed in 0.057802 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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