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

 找回密码
 立即注册
查看: 4805|回复: 4

[求助] 安装hadashboard时出现错误

[复制链接]

7

主题

33

帖子

156

积分

注册会员

Rank: 2

积分
156
金钱
123
HASS币
0
发表于 2018-3-13 08:37:41 | 显示全部楼层 |阅读模式
我按照https://bbs.hassbian.com/thread-388-7-1.htmlhttp://appdaemon.readthedocs.io/en/latest/INSTALL.html的步骤安装hadashboard,在启动的时候报错,这是怎么回事?
2018-03-13 08:32:09.112484 INFO AppDaemon Version 3.0.0b5 starting
2018-03-13 08:32:09.113145 INFO Configuration read from: /home/pi/appdaemon/conf/appdaemon.yaml
Traceback (most recent call last):
  File "/usr/local/bin/appdaemon", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py", line 365, in main
    admain.main()
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py", line 361, in main
    self.run(appdaemon, hadashboard)
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py", line 60, in run
    self.AD = ad.AppDaemon(self.logger, self.error, self.diag, loop, **appdaemon)
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 100, in __init__
    self.plugin_params = kwargs["plugins"]
KeyError: 'plugins'

回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-3-13 08:48:39 | 显示全部楼层
本帖最后由 neroxps 于 2018-3-13 08:51 编辑

验证一下 /home/pi/appdaemon/conf/appdaemon.yaml 这个文件的 yaml 格式是否正确。

官方安装教程的连接上已提供了范例。


secrets: /some/path
log:
  accessfile: /export/hass/appdaemon_test/logs/access.log
  errorfile: /export/hass/appdaemon_test/logs/error.log
  logfile: /export/hass/appdaemon_test/logs/appdaemon.log
  log_generations: 3
  log_size: 1000000
appdaemon:
  threads: 10
  time_zone: <time zone>
  api_port: 5000
  api_key: !secret api_key
  api_ssl_certificate: <path/to/root/CA/cert>
  api_ssl_key: <path/to/root/CA/key>
  plugins:
    HASS:
      type: hass
      ha_url: <some_url>
      ha_key: <some key>
      cert_path: <path/to/root/CA/cert>
      cert_verify: True
      namespace: default


其中ha_url 和 ha_key 是你的ha内网访问网址和ha的api 密码,cert是SSL证书,如果你没有,那么可以将cert_verify: 改为cert_verify: False
Nero
回复

使用道具 举报

25

主题

441

帖子

2344

积分

论坛积极会员

积分
2344
金钱
1903
HASS币
0
发表于 2018-4-23 21:38:23 | 显示全部楼层
帮忙看一下日志


2018-04-23 13:35:23.470040 WARNING AppDaemon: Unexpected error in api thread
2018-04-23 13:35:23.470162 WARNING AppDaemon: ------------------------------------------------------------
2018-04-23 13:35:23.470878 WARNING AppDaemon: Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/appdaemon/adapi.py", line 36, in __init__
    context.load_cert_chain(self.api_ssl_certificate, self.api_ssl_key)
FileNotFoundError: [Errno 2] No such file or directory
2018-04-23 13:35:23.471139 WARNING AppDaemon: ------------------------------------------------------------
2018-04-23 13:35:24.032235 INFO AppDaemon: HASS: Connected to Home Assistant 0.67.1
2018-04-23 13:35:24.087644 INFO AppDaemon: Got initial state from namespace default
2018-04-23 13:35:26.116201 INFO AppDaemon: Adding /conf/apps to module import path
2018-04-23 13:35:26.116668 INFO AppDaemon: Found module /conf/apps/hello.py
2018-04-23 13:35:26.116858 WARNING AppDaemon: No app description found for: /conf/apps/hello.py - ignoring
2018-04-23 13:35:26.117433 INFO AppDaemon: App initialization complete
回复

使用道具 举报

1

主题

50

帖子

173

积分

注册会员

Rank: 2

积分
173
金钱
122
HASS币
0
发表于 2018-7-12 10:41:25 | 显示全部楼层
2018-07-12 10:38:59.845757 INFO AppDaemon Version 3.0.1 starting
2018-07-12 10:38:59.847450 INFO Configuration read from: /home/pi/appdaemon/conf/appdaemon.yaml
2018-07-12 10:38:59.855070 WARNING config_file: /home/pi/appdaemon/conf/appdaemon.yaml is owned by pi but appdaemon is running as root
2018-07-12 10:38:59.859376 INFO AppDaemon: Starting Apps
2018-07-12 10:38:59.864103 WARNING config_dir: /home/pi/appdaemon/conf is owned by pi but appdaemon is running as root
2018-07-12 10:38:59.869280 WARNING appdir: /home/pi/appdaemon/conf/apps is owned by pi but appdaemon is running as root
2018-07-12 10:38:59.880777 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-07-12 10:39:00.260733 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-07-12 10:39:00.262680 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-07-12 10:39:00.264482 INFO Dashboards are disabled
2018-07-12 10:39:00.265361 INFO API is disabled
2018-07-12 10:39:00.295055 INFO AppDaemon: HASS: Connected to Home Assistant 0.73.1
2018-07-12 10:39:00.314391 WARNING AppDaemon: HASS: Error getting metadata
2018-07-12 10:39:00.315899 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds


这是怎么了?
回复

使用道具 举报

6

主题

181

帖子

1105

积分

金牌会员

Rank: 6Rank: 6

积分
1105
金钱
924
HASS币
0
发表于 2018-10-23 17:25:12 | 显示全部楼层
同问。。。。。。。。。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 00:48 , Processed in 0.064858 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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