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.
小米遥控器同样:
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