Skip to content

bug: Initializing Error #4

Description

@Bentley0227

Huge thank you for making something for these!

Describe the bug
It does not initialize and I am getting these errors.

This error originated from a custom integration.

Logger: custom_components.hatch_rest.api
Source: custom_components/hatch_rest/api.py:231
integration: Hatch Rest (documentation)
First occurred: 7:52:43 PM (189 occurrences)
Last logged: 11:17:52 PM

Exception during refresh_data -- BleakDBusError('org.bluez.Error.Failed', 'Not connected')
Exception during refresh_data -- AttributeError("'NoneType' object has no attribute 'read_gatt_char'")
Exception during refresh_data -- BleakDBusError('org.bluez.Error.Failed', 'Operation failed with ATT error: 0x0e')

This error originated from a custom integration.

Logger: custom_components.hatch_rest.api
Source: custom_components/hatch_rest/api.py:109
integration: Hatch Rest (documentation)
First occurred: 7:53:59 PM (181 occurrences)
Last logged: 11:17:52 PM

Exception during _client_connect -- BleakNotFoundError('D0:26:45:6E:E6:29 - D0:26:45:6E:E6:29: Failed to connect after 9 attempt(s): TimeoutError')
Exception during _client_connect -- BleakNotFoundError('D0:26:45:6E:E6:29 - D0:26:45:6E:E6:29: Failed to connect after 6 attempt(s): TimeoutError')
Exception during _client_connect -- BleakOutOfConnectionSlotsError('D0:26:45:6E:E6:29 - D0:26:45:6E:E6:29: Failed to connect after 9 attempt(s): No backend with an available connection slot that can reach address D0:26:45:6E:E6:29 was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device')
Exception during _client_connect -- BleakOutOfConnectionSlotsError('C4:8A:0D:D5:0B:6C - C4:8A:0D:D5:0B:6C: Failed to connect after 11 attempt(s): No backend with an available connection slot that can reach address C4:8A:0D:D5:0B:6C was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device')
Exception during _client_connect -- BleakOutOfConnectionSlotsError('C4:8A:0D:D5:0B:6C - C4:8A:0D:D5:0B:6C: Failed to connect after 10 attempt(s): No backend with an available connection slot that can reach address C4:8A:0D:D5:0B:6C was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device')

Logger: homeassistant.config_entries
Source: config_entries.py:761
First occurred: 7:56:30 PM (2 occurrences)
Last logged: 11:18:24 PM

Error setting up entry Mom And Dad for hatch_rest
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hatch_rest/init.py", line 43, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in async_config_entry_first_refresh
await self._async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 343, in _async_config_entry_first_refresh
await self._async_refresh(
...<3 lines>...
)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 419, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hatch_rest/coordinator.py", line 65, in _async_update_data
await self.hatch_rest_device.refresh_data()
File "/config/custom_components/hatch_rest/api.py", line 234, in refresh_data
await self._client_disconnect()
File "/config/custom_components/hatch_rest/api.py", line 128, in _client_disconnect
await self._client.disconnect()
File "/usr/local/lib/python3.13/site-packages/habluetooth/wrappers.py", line 510, in disconnect
await self._backend.disconnect()
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/client.py", line 450, in disconnect
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/dbus_fast/aio/message_bus.py", line 409, in call
await future
asyncio.exceptions.CancelledError: Global task timeout: Bootstrap stage 2 timeout

home-assistant_hatch_rest_2025-12-04T07-18-28.045Z.log

Sanity Checklist (please complete the following information):
[ Y] I have attached debug logs (see enabling-debug-logging)
[ This one is the closest of 3] My nearest Bluetooth adapter is n distance away from the Hatch Rest device
[ At the time of error yes but no one was using the app] A Hatch Rest mobile app is not currently paired with the Hatch Rest device
[ No, it was connected this morning and then disconnected sometime today] I have power cycled the Hatch Rest device

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions