- 积分
- 711
- 金钱
- 658
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 711
- 金钱
- 658
- HASS币
- 0
|
发表于 2021-1-13 14:18:01
|
显示全部楼层
大佬,我这边运行了提示这个,是哪里不对吗?
Logger: homeassistant.components.cover
Source: custom_components/mijia_curtain/cover.py:250
Integration: 卷帘 (documentation, issues)
First occurred: 下午12:32:52 (1 occurrences)
Last logged: 下午12:32:52
Error while setting up mijia_curtain platform for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mijia_curtain/cover.py", line 150, in setup_platform
cover = MijiaCurtain(name, host, token, model)
File "/config/custom_components/mijia_curtain/cover.py", line 250, in __init__
self._model = self.miotDevice.info().model
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 177, in info
return DeviceInfo(self.send("miIO.info"))
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 143, in send
return self._protocol.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 160, in send
self.send_handshake()
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 87, in send_handshake
raise DeviceException("Unable to discover the device %s" % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.1.6
|
|