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

 找回密码
 立即注册
查看: 6226|回复: 6

[求助] HA 報錯

[复制链接]

68

主题

302

帖子

1966

积分

金牌会员

Rank: 6Rank: 6

积分
1966
金钱
1664
HASS币
0
发表于 2017-11-7 23:21:02 | 显示全部楼层 |阅读模式
請大神幫忙,出了什麼問題?怎樣解決,謝謝

2017-11-07 23:14:19 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.
2017-11-07 23:14:19 WARNING (MainThread) [homeassistant.setup] Setup of camera is taking over 10 seconds.
2017-11-07 23:14:23 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2017-11-07 23:14:23 WARNING (MainThread) [homeassistant.setup] Setup of fan is taking over 10 seconds.
2017-11-07 23:14:23 WARNING (MainThread) [homeassistant.setup] Setup of switch is taking over 10 seconds.
2017-11-07 23:14:25 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.


回复

使用道具 举报

13

主题

152

帖子

811

积分

高级会员

Rank: 4

积分
811
金钱
649
HASS币
0
发表于 2017-11-8 01:14:29 | 显示全部楼层
这不是严重错误,只是花时间比较长而已,也可能后面初始化好了能正常使用,具体要看详细日志。
回复

使用道具 举报

68

主题

302

帖子

1966

积分

金牌会员

Rank: 6Rank: 6

积分
1966
金钱
1664
HASS币
0
 楼主| 发表于 2017-11-8 12:02:46 | 显示全部楼层
hugo 发表于 2017-11-8 01:14
这不是严重错误,只是花时间比较长而已,也可能后面初始化好了能正常使用,具体要看详细日志。 ...

能夠正常使用的,不過想知道為何報錯和如何解決,謝謝師兄回覆!!
回复

使用道具 举报

65

主题

853

帖子

3044

积分

论坛元老

Rank: 8Rank: 8

积分
3044
金钱
2184
HASS币
40
发表于 2017-11-8 17:02:12 | 显示全部楼层
不影响使用的,只是警告花的时间较长而已
回复

使用道具 举报

68

主题

302

帖子

1966

积分

金牌会员

Rank: 6Rank: 6

积分
1966
金钱
1664
HASS币
0
 楼主| 发表于 2017-11-8 21:35:50 | 显示全部楼层
又有其他報錯,求大神幫忙。。。

2017-11-08 21:31:50 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
    new_entity, self, update_before_add=update_before_add
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity
    yield from entity.async_update_ha_state()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 246, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 163, in state_attributes
    self._state_attrs = self.fan_get_prop()
  File "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 379, in fan_get_prop
    prop = self.fan.send("get_prop", ["temp_dec","humidity","angle","speed","poweroff_time","power","ac_power","battery","angle_enable","speed_level","natural_level","child_lock","buzzer","led_b"])
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/miio/miio.py", line 126, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out
2017-11-08 21:32:14 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 331, in async_update_config
    dev_id, device)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 739, in update_config
    with open(path, 'a') as out:
PermissionError: [Errno 13] Permission denied: '/home/homeassistant/.homeassistant/known_devices.yaml'
2017-11-08 21:32:15 ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 8300: [Errno 99] error while attempting to bind on address ('192.168.0.114', 8300): cannot assign requested address
2017-11-08 21:33:47 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 209, in async_see_service
    yield from tracker.async_see(**args)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 274, in async_see
    dev_id = cv.slug(str(dev_id).lower())
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/config_validation.py", line 236, in slug
    raise vol.Invalid('invalid slug {} (try {})'.format(value, slg))
voluptuous.error.Invalid: invalid slug eric _iphone (try eric__iphone)
回复

使用道具 举报

4

主题

160

帖子

667

积分

高级会员

Rank: 4

积分
667
金钱
506
HASS币
0
发表于 2017-11-8 21:44:29 | 显示全部楼层
只要能正常使用,这些都可以忽略。。
回复

使用道具 举报

68

主题

302

帖子

1966

积分

金牌会员

Rank: 6Rank: 6

积分
1966
金钱
1664
HASS币
0
 楼主| 发表于 2017-11-8 22:21:47 | 显示全部楼层
Al_Fred 发表于 2017-11-8 21:44
只要能正常使用,这些都可以忽略。。

明白, 謝謝!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 03:02 , Processed in 0.362704 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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