Xgimi-4-Home-Assistant
Xgimi-4-Home-Assistant copied to clipboard
Maximum advertisements reached
麻烦大佬帮忙看看这个报错,感谢! 此错误来自自定义集成。
Logger: homeassistant.helpers.script.websocket_api_script Source: custom_components/xgimi/pyxgimi.py:76 Integration: Xgimi Projector Remote (documentation, issues) First occurred: 2023年8月9日 下午9:37:52 (12 occurrences) Last logged: 下午3:20:33
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Maximum advertisements reached Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1965, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2005, in _execute_service return await cast( ^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 848, in entity_service_call response_data = task.result() # pop exception if have ^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1192, in async_request_call return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/xgimi/remote.py", line 97, in async_send_command await self.xgimi_api.async_send_command(single_command) File "/config/custom_components/xgimi/pyxgimi.py", line 97, in async_send_command await self.async_robust_ble_power_on(self.manufacturer_data) File "/config/custom_components/xgimi/pyxgimi.py", line 80, in async_robust_ble_power_on await self.async_ble_power_on(manufacturer_data, company_id, service_uuid) File "/config/custom_components/xgimi/pyxgimi.py", line 76, in async_ble_power_on await advert.register(bus) File "/usr/local/lib/python3.11/site-packages/bluez_peripheral/advert.py", line 119, in register await interface.call_register_advertisement(path, {}) File "/usr/local/lib/python3.11/site-packages/dbus_next/aio/proxy_object.py", line 92, in method_fn BaseProxyInterface._check_method_return(msg, intr_method.out_signature) File "/usr/local/lib/python3.11/site-packages/dbus_next/proxy_object.py", line 62, in _check_method_return raise DBusError._from_message(msg) dbus_next.errors.DBusError: Maximum advertisements reached