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

 找回密码
 立即注册
查看: 5624|回复: 2

[已解决] 新人求助!配置文件添加packages:!include_dir_named packages报错

[复制链接]

1

主题

12

帖子

57

积分

注册会员

Rank: 2

积分
57
金钱
45
HASS币
0
发表于 2017-8-19 15:53:09 | 显示全部楼层 |阅读模式
本帖最后由 849095173 于 2017-8-19 16:16 编辑

如题所示,下面是configuration.yaml部分内容

TIM截图20170819154919.png

packages加上就会报错,下面是错误提示
Configuration Validation

Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid.Configuration invalid.CHECK CONFIG


Testing configuration at /root/.homeassistant2017-08-19 03:44:08 ERROR (Thread-2) [homeassistant.util.yaml] Secret caiyun_forecast_url not defined2017-08-19 03:44:08 ERROR (Thread-2) [homeassistant.util.yaml] Secret caiyun_realtime_url not defined2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up recorder2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up http2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up history2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up websocket_api2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up api2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up frontend2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up discovery2017-08-19 03:44:09 ERROR (MainThread) [homeassistant.loader] Unable to find component packages2017-08-19 03:44:09 ERROR (MainThread) [homeassistant.setup] Setup failed for packages: Component not found.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up group2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up sensor2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up sun2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up updater2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.1 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.1 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up logbook2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up tts2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up config2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up conversation2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setting up automation2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.2017-08-19 03:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.Failed config  General Errors:     - Component not found: packages    - Setup failed for packages: Component not found.Successful config (partial)


还有就是api_passowrd取消注释也会报错,
添加
System Monitor

# Example configuration.yaml entry
sensor:
         - platform: systemmonitor   
          resources:      
              - type: disk_use_percent        
              arg: /home      
             - type: memory_free
也会报错,
TIM截图20170819155100.png

TIM截图20170819155109.png
请教各位是怎么一回事?系统是debian



回复

使用道具 举报

123

主题

4630

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16125
金钱
11410
HASS币
45
发表于 2017-8-22 15:10:49 | 显示全部楼层
这句应该加到homeassistant:下面,不是跟homeassistant:平级。
回复

使用道具 举报

1

主题

12

帖子

57

积分

注册会员

Rank: 2

积分
57
金钱
45
HASS币
0
 楼主| 发表于 2017-8-26 16:44:02 | 显示全部楼层
Jones 发表于 2017-8-22 15:10
这句应该加到homeassistant:下面,不是跟homeassistant:平级。

原来是这样,谢谢
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-29 13:05 , Processed in 3.935591 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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