Solved: Eve Room v1 and Eve Thermo v1 bluetooth stopped working and can not pair anymore

Both devices were able to pair with Home Assistant 2022.8.5 but starting with 2022.8.6 onwards:

Eve Room v1:

Logger: homeassistant.components.homekit_controller.config_flow
Source: components/homekit_controller/config_flow.py:479
Integration: HomeKit Controller (documentation, issues)
First occurred: 8:06:23 PM (4 occurrences)
Last logged: 8:12:14 PM

Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 479, in async_step_pair
    self.finish_pairing = await discovery.async_start_pairing(self.hkid)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/client.py", line 75, in _async_wrap
    return await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/discovery.py", line 138, in async_start_pairing
    salt, pub_key = await self._async_start_pairing(alias)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/discovery.py", line 125, in _async_start_pairing
    ff_raw = await char_read(self.client, None, None, ff_char, ff_iid)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/client.py", line 240, in char_read
    pdu_status, data = await ble_request(
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/client.py", line 99, in ble_request
    await _write_pdu(client, encryption_key, opcode, handle, iid, data, tid)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/client.py", line 119, in _write_pdu
    for data in encode_pdu(opcode, tid, iid, data, fragment_size):
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/pdu.py", line 72, in encode_pdu
    retval = STRUCT_BBBH.pack(0, opcode.value, tid, iid)
struct.error: required argument is not an integer

Eve Thermo:

Logger: homeassistant.components.homekit_controller.config_flow
Source: components/homekit_controller/config_flow.py:479
Integration: HomeKit Controller (documentation, issues)
First occurred: 7:44:38 PM (1 occurrences)
Last logged: 7:44:38 PM

Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 479, in async_step_pair
    self.finish_pairing = await discovery.async_start_pairing(self.hkid)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/client.py", line 75, in _async_wrap
    return await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/discovery.py", line 138, in async_start_pairing
    salt, pub_key = await self._async_start_pairing(alias)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/discovery.py", line 120, in _async_start_pairing
    ff_char = self.client.get_characteristic(
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/bleak.py", line 91, in get_characteristic
    raise ValueError(
ValueError: Service 00000055-0000-1000-8000-0026BB765291 not found, available services: []

The successful pairing logs for both devices are in this topic:

With Eve App the pairing works fine.

Thank you!

Solved!

The problem was bluez 5.64 on the host, I have upgraded it from 5.63 few days ago. I uninstalled it and recompiled 5.65 from GitHub - bluez/bluez: Main BlueZ tree as the latest version is not available on the package list yet. Now both devices paired successfully.
Interestedly the homeassistant docker image has version 5.64 but it still works with 5.65 on the host.