- 积分
- 121
- 金钱
- 106
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
![Rank: 2](https://www.hasstatic.com/image/common/star_level2.gif)
- 积分
- 121
- 金钱
- 106
- HASS币
- 0
|
发表于 2023-3-19 23:43:13
|
显示全部楼层
目前已经可以控制投影仪关机了,但是吧,只能关机,其他的都不能干,开机时提示如下:
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/xgimi/pyxgimi.py:66
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 23:38:20 (1 occurrences)
Last logged: 23:38:20
[140084553206272] [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1808, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 726, in _handle_entity_call
await result
File "/config/custom_components/xgimi/remote.py", line 65, in async_turn_on
await self.xgimi_api.async_send_command("poweron")
File "/config/custom_components/xgimi/pyxgimi.py", line 95, in async_send_command
await self.async_ble_power_on(self.manufacturer_data)
File "/config/custom_components/xgimi/pyxgimi.py", line 66, in async_ble_power_on
bus = await get_message_bus()
File "/usr/local/lib/python3.10/site-packages/bluez_peripheral/util.py", line 37, in get_message_bus
return await MessageBus(bus_type=BusType.SYSTEM).connect()
File "/usr/local/lib/python3.10/site-packages/dbus_next/aio/message_bus.py", line 122, in __init__
super().__init__(bus_address, bus_type, ProxyObject)
File "/usr/local/lib/python3.10/site-packages/dbus_next/message_bus.py", line 85, in __init__
self._setup_socket()
File "/usr/local/lib/python3.10/site-packages/dbus_next/message_bus.py", line 575, in _setup_socket
raise err
File "/usr/local/lib/python3.10/site-packages/dbus_next/message_bus.py", line 548, in _setup_socket
self._sock.connect(filename)
FileNotFoundError: [Errno 2] No such file or directory
|
|