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

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

[求助] 智米电风扇插件无法正常运行

[复制链接]

5

主题

37

帖子

369

积分

论坛分享达人

积分
369
金钱
327
HASS币
0
发表于 2017-8-8 12:14:08 | 显示全部楼层 |阅读模式
2017-08-08 12:10:23 ERROR (Thread-4) [miio.miio] got error when receiving: timed out
2017-08-08 12:10:23 ERROR (MainThread) [homeassistant.components.fan] Error while setting up platform smart_mi_fan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
    return fut.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 "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 76, in setup_platform
    SmartMiFan(hass, name, host, token),
  File "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 145, in __init__
    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/lib/python3.4/site-packages/miio/miio.py", line 128, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out
2017-08-08 12:10:23 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template current_smart_mi_fan_shake_head_angle, the state is unknown.
2017-08-08 12:10:23 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template current_smart_mi_fan_speed, the state is unknown.

回复

使用道具 举报

5

主题

37

帖子

369

积分

论坛分享达人

积分
369
金钱
327
HASS币
0
 楼主| 发表于 2017-8-13 13:58:17 | 显示全部楼层
本帖最后由 zhaojunll 于 2017-8-13 14:05 编辑

同样的错误 0.51.1下依旧
回复

使用道具 举报

2

主题

171

帖子

2444

积分

金牌会员

Rank: 6Rank: 6

积分
2444
金钱
2273
HASS币
0
发表于 2017-9-9 14:58:06 | 显示全部楼层
小米遥控器同样:
2017-09-09 14:55:10 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform chuangmi_ir
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/tianyucheng/.homeassistant/custom_components/switch/chuangmi_ir.py", line 103, in setup_platform
    ir_remote = miio.device(host, token)
  File "/Users/tianyucheng/.homeassistant/deps/lib/python/site-packages/miio/miio.py", line 16, in __init__
    self.token = bytes.fromhex(token)
ValueError: non-hexadecimal number found in fromhex() arg at position 0
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-22 21:00 , Processed in 0.099117 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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