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

 找回密码
 立即注册
查看: 6744|回复: 12

[求助] 新手,群晖安装HA0.52,小米网关添加不上指点,怎么解决。

[复制链接]

2

主题

72

帖子

419

积分

中级会员

Rank: 3Rank: 3

积分
419
金钱
347
HASS币
0
发表于 2017-8-3 11:44:42 | 显示全部楼层 |阅读模式

群晖安装HA,版本0.50.2,
1、在 Configuration.yaml中添加了
xiaomi: gateways:   - sid:     key: xxxxxxxxxxxxxxxx

2、运行,  出现一下错误。以下是不正常部分home-assistant.log,

2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logbook>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=trigger>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=reload>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=toggle>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_on>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_off>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=automation>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.4 seconds.
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=sensor>
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.
2017-08-03 11:15:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater>
2017-08-03 11:15:30 INFO (Thread-6) [homeassistant.util.package] Attempting install of netdisco==1.1.0
2017-08-03 11:15:42 ERROR (Thread-6) [homeassistant.util.package] Unable to install package netdisco==1.1.0: Command "/volume1/@appstore/py3k/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-90g9lyrs/netifaces/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-dp9zpya4-record/install-record.txt --single-version-externally-managed --prefix  --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-90g9lyrs/netifaces/
2017-08-03 11:15:42 ERROR (MainThread) [homeassistant.setup] Not initializing discovery because could not install dependency netdisco==1.1.0
2017-08-03 11:15:42 ERROR (MainThread) [homeassistant.setup] Setup failed for discovery: Could not install all requirements.
2017-08-03 11:15:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_call_id=3052756076-1, service_data=message=The following components and platforms could not be set up:
* discovery
Please check your config, title=Invalid config, notification_id=invalid_config, service=create>
2017-08-03 11:15:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_call_id=3052756076-2, service_data=message=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
Please check your config, title=Invalid config, notification_id=invalid_config, service=create>
2017-08-03 11:15:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* discovery
Please check your config; title=Invalid config @ 2017-08-03T11:15:42.647282+08:00>, old_state=None, entity_id=persistent_notification.invalid_config>
2017-08-03 11:15:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=3052756076-1>
2017-08-03 11:15:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
Please check your config; title=Invalid config @ 2017-08-03T11:15:42.662010+08:00>, old_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* discovery
Please check your config; title=Invalid config @ 2017-08-03T11:15:42.647282+08:00>, entity_id=persistent_notification.invalid_config>
2017-08-03 11:15:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=3052756076-2>
2017-08-03 11:15:42 INFO (Thread-10) [homeassistant.util.package] Attempting install of https://github.com/Danielhiverse ... iaomiGateway==0.2.0
2017-08-03 11:17:40 ERROR (Thread-10) [homeassistant.util.package] Unable to install package https://github.com/Danielhiverse ... aomiGateway==0.2.0: Command "/volume1/@appstore/py3k/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e2ey8097/pyCrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-adplppr5-record/install-record.txt --single-version-externally-managed --prefix  --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-e2ey8097/pyCrypto/
2017-08-03 11:17:40 ERROR (MainThread) [homeassistant.setup] Not initializing xiaomi because could not install dependency https://github.com/Danielhiverse ... iaomiGateway==0.2.0
2017-08-03 11:17:40 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Could not install all requirements.
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_call_id=3052756076-3, service_data=message=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
* xiaomi
Please check your config, title=Invalid config, notification_id=invalid_config, service=create>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_call_id=3052756076-4, service_data=message=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
* [xiaomi](https://home-assistant.io/components/xiaomi/)
Please check your config, title=Invalid config, notification_id=invalid_config, service=create>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
* xiaomi
Please check your config; title=Invalid config @ 2017-08-03T11:17:40.050953+08:00>, old_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
Please check your config; title=Invalid config @ 2017-08-03T11:15:42.662010+08:00>, entity_id=persistent_notification.invalid_config>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=3052756076-3>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
* [xiaomi](https://home-assistant.io/components/xiaomi/)
Please check your config; title=Invalid config @ 2017-08-03T11:17:40.065145+08:00>, old_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [discovery](https://home-assistant.io/components/discovery/)
* xiaomi
Please check your config; title=Invalid config @ 2017-08-03T11:17:40.050953+08:00>, entity_id=persistent_notification.invalid_config>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=3052756076-4>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 135.89s
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Starting Home Assistant core loop
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_start[L]>
2017-08-03 11:17:40 INFO (MainThread) [homeassistant.core] Timer:starting

回复

使用道具 举报

30

主题

999

帖子

4121

积分

论坛元老

Rank: 8Rank: 8

积分
4121
金钱
3117
HASS币
0

活跃会员

发表于 2017-8-3 11:49:21 | 显示全部楼层
One Gateway
# You can leave mac empty if you only have one gateway.
xiaomi:
  gateways:
   - mac:
     key: xxxxxxxxxxxxxxxx

将sid改为mac
回复

使用道具 举报

2

主题

72

帖子

419

积分

中级会员

Rank: 3Rank: 3

积分
419
金钱
347
HASS币
0
 楼主| 发表于 2017-8-3 12:36:33 | 显示全部楼层
wqqs 发表于 2017-8-3 11:49
One Gateway
# You can leave mac empty if you only have one gateway.
xiaomi:

感谢 ,已经修改了,  但是还是报错,和上面的日志差不多 显示   Unable to installXX应该是好几个包没安装上。。。,有啥办法解决么?
回复

使用道具 举报

30

主题

999

帖子

4121

积分

论坛元老

Rank: 8Rank: 8

积分
4121
金钱
3117
HASS币
0

活跃会员

发表于 2017-8-3 12:55:56 | 显示全部楼层
缺少依赖的组件,试试手动安装这些组件
回复

使用道具 举报

0

主题

258

帖子

1937

积分

金牌会员

Rank: 6Rank: 6

积分
1937
金钱
1679
HASS币
0
发表于 2017-8-3 13:37:16 | 显示全部楼层
你的ha没有安装完全把,最好用命令方式启动
docker run -d --name="home-assistant" -v /volume3/docker/home-assistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant
回复

使用道具 举报

2

主题

72

帖子

419

积分

中级会员

Rank: 3Rank: 3

积分
419
金钱
347
HASS币
0
 楼主| 发表于 2017-8-3 14:13:03 | 显示全部楼层
wuqiyu007 发表于 2017-8-3 13:37
你的ha没有安装完全把,最好用命令方式启动
docker run -d --name="home-assistant" -v /volume3/docker/ho ...

不是docker 安装方式, 手动安装的
回复

使用道具 举报

6

主题

87

帖子

643

积分

高级会员

Rank: 4

积分
643
金钱
556
HASS币
0
发表于 2017-8-3 15:29:52 | 显示全部楼层
你有按要求删除custom components么?
回复

使用道具 举报

2

主题

72

帖子

419

积分

中级会员

Rank: 3Rank: 3

积分
419
金钱
347
HASS币
0
 楼主| 发表于 2017-8-3 16:07:11 | 显示全部楼层
ahsyon 发表于 2017-8-3 15:29
你有按要求删除custom components么?

嗯,有删除全部,
回复

使用道具 举报

0

主题

258

帖子

1937

积分

金牌会员

Rank: 6Rank: 6

积分
1937
金钱
1679
HASS币
0
发表于 2017-8-3 19:36:43 | 显示全部楼层
zyboy3707 发表于 2017-8-3 14:13
不是docker 安装方式, 手动安装的

启动的时候开终端看,日志看不出问题
回复

使用道具 举报

0

主题

258

帖子

1937

积分

金牌会员

Rank: 6Rank: 6

积分
1937
金钱
1679
HASS币
0
发表于 2017-8-3 19:38:20 | 显示全部楼层
zyboy3707 发表于 2017-8-3 14:13
不是docker 安装方式, 手动安装的

还有就是密码的问题,你4.9版本添加成功过没,如果没成功,注意下大小写的问题,最好用安卓手机查询密码,按手机显示的打
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-8 18:24 , Processed in 0.388834 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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