|
楼主 |
发表于 2017-6-25 22:48:03
|
显示全部楼层
已經找到TOKEN,但出以下ERROR, 求大神幫忙..謝
2017-06-25 22:44:36 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=17 from 2017-06-25 14:08:06.847577)
2017-06-25 22:44:39 ERROR (MainThread) [homeassistant.components.fan] Error while setting up platform smart_mi_fan
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 161, 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 75, in setup_platform
SmartMiFan(hass, name, host, token),
File "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 144, in __init__
self._state_attrs = self.fan_get_prop()
File "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 377, 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 "/home/homeassistant/.homeassistant/custom_components/fan/smart_mi_fan.py", line 248, in fan
self._fan = Vacuum(self.host, self.token)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/mirobo/vacuum.py", line 20, in __init__
self.token = bytes.fromhex(token)
ValueError: non-hexadecimal number found in fromhex() arg at position 0 |
|