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

 找回密码
 立即注册
查看: 13738|回复: 13

[求助] 小白求助 小米网关 显示无效配置

[复制链接]

2

主题

38

帖子

212

积分

中级会员

Rank: 3Rank: 3

积分
212
金钱
174
HASS币
0
发表于 2018-5-4 22:02:50 | 显示全部楼层 |阅读模式

按照论坛上的教程添加小米网关后 打开hass显示如下图


360截图20180504215531157.jpg 360截图20180504215947220.jpg
homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 24.9878
  longitude: 118.4983
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Asia/Shanghai
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

xiaomi_aqara:
  gateways:
    - mac: 001CA30GB05C
      key: r458p6ctnq7ophr5


group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml




回复

使用道具 举报

26

主题

553

帖子

2728

积分

金牌会员

Rank: 6Rank: 6

积分
2728
金钱
2150
HASS币
100

教程狂人

发表于 2018-5-4 23:52:16 | 显示全部楼层
你自己看看mac地址好么?怎么会有G?
回复

使用道具 举报

26

主题

553

帖子

2728

积分

金牌会员

Rank: 6Rank: 6

积分
2728
金钱
2150
HASS币
100

教程狂人

发表于 2018-5-4 23:53:37 | 显示全部楼层
格式没问题,MAC地址改一下试试看吧。
回复

使用道具 举报

2

主题

38

帖子

212

积分

中级会员

Rank: 3Rank: 3

积分
212
金钱
174
HASS币
0
 楼主| 发表于 2018-5-5 09:37:48 | 显示全部楼层
Mirukuteii 发表于 2018-5-4 23:53
格式没问题,MAC地址改一下试试看吧。

xiaomi_aqara:
  gateways:
    - mac: 7811DCFD793D
      key: z5gic3y8p8msfgfn

都改了,还是一样报错



这是日志帮我看下哪里问题?

2018-05-05 09:34:56 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=18 from 2018-05-05 01:27:56.033371)
2018-05-05 09:34:59 ERROR (Thread-4) [homeassistant.util.package] Unable to install package netdisco==1.3.1: Command "c:\users\administrator\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-build-5f3az0f6\\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 C:\Users\ADMINI~1\AppData\Local\Temp\pip-5_nc_0ik-record\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-5f3az0f6\netifaces\
2018-05-05 09:34:59 ERROR (MainThread) [homeassistant.requirements] Not initializing discovery because could not install requirement netdisco==1.3.1
2018-05-05 09:34:59 ERROR (MainThread) [homeassistant.setup] Setup failed for discovery: Could not install all requirements.
2018-05-05 09:35:01 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...op_reading()]>)
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python35\lib\asyncio\events.py", line 127, in _run
    self._callback(*self._args)
  File "c:\users\administrator\appdata\local\programs\python\python35\lib\asyncio\proactor_events.py", line 189, in _loop_reading
    data = fut.result()  # deliver data later in "finally" clause
  File "c:\users\administrator\appdata\local\programs\python\python35\lib\asyncio\futures.py", line 288, in result
    raise InvalidStateError('Result is not ready.')
asyncio.futures.InvalidStateError: Result is not ready.
2018-05-05 09:35:06 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2018-05-05 09:35:11 ERROR (Thread-6) [homeassistant.components.xiaomi_aqara] No gateway discovered
2018-05-05 09:35:11 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Component failed to initialize.
2018-05-05 09:35:17 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...ed result=b''>)
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python35\lib\asyncio\events.py", line 127, in _run
    self._callback(*self._args)
  File "c:\users\administrator\appdata\local\programs\python\python35\lib\asyncio\proactor_events.py", line 187, in _loop_reading
    self._closing)
AssertionError

回复

使用道具 举报

1

主题

143

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
336
HASS币
0
发表于 2018-5-5 10:14:21 | 显示全部楼层
学习学习
回复

使用道具 举报

35

主题

533

帖子

2895

积分

金牌会员

Rank: 6Rank: 6

积分
2895
金钱
2362
HASS币
0
发表于 2018-5-5 10:25:55 | 显示全部楼层
回复

使用道具 举报

2

主题

38

帖子

212

积分

中级会员

Rank: 3Rank: 3

积分
212
金钱
174
HASS币
0
 楼主| 发表于 2018-5-5 11:35:22 | 显示全部楼层
debitus 发表于 2018-5-5 10:25
https://bbs.hassbian.com/forum.php?mod=viewthread&tid=2736&highlight=%E5%B0%8F%E7%B1%B3

  host: 10.1.78.213     这个是哪里的IP?
回复

使用道具 举报

35

主题

533

帖子

2895

积分

金牌会员

Rank: 6Rank: 6

积分
2895
金钱
2362
HASS币
0
发表于 2018-5-5 14:12:46 | 显示全部楼层
dzm0505 发表于 2018-5-5 11:35
host: 10.1.78.213     这个是哪里的IP?

小米网关的IP。
回复

使用道具 举报

13

主题

258

帖子

2090

积分

金牌会员

Rank: 6Rank: 6

积分
2090
金钱
1832
HASS币
0
发表于 2018-5-5 16:52:56 | 显示全部楼层
日志不是写着呢吗?netdisco==1.3.1没装
Not initializing discovery because could not install requirement netdisco==1.3.1
pip3 install  netdisco
回复

使用道具 举报

26

主题

553

帖子

2728

积分

金牌会员

Rank: 6Rank: 6

积分
2728
金钱
2150
HASS币
100

教程狂人

发表于 2018-5-5 21:48:10 | 显示全部楼层
楼上正解,楼主不要急,好好检查,一个坑一个坑填掉即可。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 03:29 , Processed in 0.057229 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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