|
发表于 2021-9-23 22:48:02
|
显示全部楼层
本帖最后由 zsqduke 于 2021-9-24 00:11 编辑
感谢楼主的插件。求助一下,
Model: syniot.curtain.syc1
出实体了,无法控制,日志错误如下
另:这个窗帘我是先试了xiaomi miot插件,不能本地。这个型号是不是不支持本地?我看之前你回复有提到说这个窗帘能支持。又试了一下miot auto,也是9999 user ack timeout错误
2021-09-23 22:33:19 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281472993602240] {'code': -9999, 'message': 'user ack timeout'}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1492, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1527, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 843, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cover/__init__.py", line 280, in async_open_cover
await self.hass.async_add_executor_job(ft.partial(self.open_cover, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mijia_curtain/cover.py", line 347, in open_cover
self.set_property(ATTR_MOTOR_CONTROL, self._mapping[ATTR_OPEN])
File "/config/custom_components/mijia_curtain/cover.py", line 367, in set_property
self.miotDevice.set_property_by(siid, piid, value)
File "/usr/local/lib/python3.9/site-packages/miio/miot_device.py", line 136, in set_property_by
return self.send(
File "/usr/local/lib/python3.9/site-packages/miio/device.py", line 97, in send
return self._protocol.send(
File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 214, in send
self._handle_error(payload["error"])
File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 274, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'user ack timeout'}
|
|