Eufy E220 connection problem

I have a Eufy E220 camera and the app on the tablet can see it and configure it to the home network with no problem. The HomeKit Device integration sees it and asks for the pairing code, but it fails saying the pairing code is incorrect and the camera talks to me saying to re-pair, hold the set up button for 10 seconds, which will actually factory reset the camera. I’ve given the code in both xxxxxxxx and xxx-xx-xxx formats and neither work.

AI has recommended removing the camera from the app first, but then the camera drops off the wifi.

The camera is on the latest firmware, but interestingly I haven’t found any RTSP setting in the eufi app configuration for the camera.

I’m at a dead end on this. Grateful for advice please.

Ooh, interestingly there is an error in the logs…

Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 438, in async_step_pair
    pairing = await self.finish_pairing(code)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/discovery.py", line 78, in finish_pairing
    response = await self.connection.post_tlv(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 460, in post_tlv
    response = await self.post(
               ^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 423, in post
    return await self.request(
           ^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 520, in request
    resp = await self.protocol.send_bytes(request_bytes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 104, in send_bytes
    return await self._send_lines((payload,))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 127, in _send_lines
    return await result
           ^^^^^^^^^^^^
aiohomekit.exceptions.AccessoryDisconnectedError: Connection closed