home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.72k stars 28.87k forks source link

Unable to pair discovered homekit device #120372

Open lisap516 opened 1 week ago

lisap516 commented 1 week ago

The problem

I had the Aqara fp2 set up and everything was good and then i had to get a new router. When i try to install things again, the only thing i can't get back is the fp2 sensor from aqara.

Pair with a device via HomeKit Accessory Protocol HomeKit Device communicates with Presence-Sensor-FP2-F026 (Sensor) over the local area network using a secure encrypted connection without a separate HomeKit Controller or iCloud. Enter your eight digit HomeKit pairing code (in the format XXX-XX-XXX) to use this accessory. This code is usually found on the device itself or in the packaging, often close to a HomeKit bar code, next to the image of a small house. An unhandled error occurred while attempting to pair with this device. This may be a temporary failure or your device may not be supported currently: Timeout while waiting for response

after that, there is a place for the homekit pairing code so i can put that in at this point but it still doesn't work

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Installing Homekit Device

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit_controller/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.homekit_controller.config_flow
Source: components/homekit_controller/config_flow.py:491
integration: HomeKit Device (documentation, issues)
First occurred: 4:25:33 PM (2 occurrences)
Last logged: 4:30:20 PM

Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ip/connection.py", line 116, in send_bytes
    return await result
           ^^^^^^^^^^^^
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 491, in async_step_pair
    self.finish_pairing = await discovery.async_start_pairing(self.hkid)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ip/discovery.py", line 64, in async_start_pairing
    response = await self.connection.post_tlv(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ip/connection.py", line 465, in post_tlv
    response = await self.post(
               ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ip/connection.py", line 426, in post
    return await self.request(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ip/connection.py", line 527, in request
    resp = await self.protocol.send_bytes(request_bytes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ip/connection.py", line 126, in send_bytes
    raise AccessoryDisconnectedError("Timeout while waiting for response")
aiohomekit.exceptions.AccessoryDisconnectedError: Timeout while waiting for response

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:482
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 4:30:48 PM (19 occurrences)
Last logged: 4:46:41 PM

[281472712398240] from 10.0.0.76 (Home Assistant/2024.5.1 (io.robbie.HomeAssistant; build:2024.688; iOS 15.8.2)): Disconnected: Did not receive auth message within 10 seconds
[281472600662960] from 10.0.0.76 (Home Assistant/2024.5.1 (io.robbie.HomeAssistant; build:2024.688; iOS 15.8.2)): Disconnected: Did not receive auth message within 10 seconds
[281473435280016] from 10.0.0.76 (Home Assistant/2024.5.1 (io.robbie.HomeAssistant; build:2024.688; iOS 15.8.2)): Disconnected: Did not receive auth message within 10 seconds
[281472832038384] from 10.0.0.76 (Home Assistant/2024.5.1 (io.robbie.HomeAssistant; build:2024.688; iOS 15.8.2)): Disconnected: Did not receive auth message within 10 seconds
[281472936550624] from 10.0.0.76 (Home Assistant/2024.5.1 (io.robbie.HomeAssistant; build:2024.688; iOS 15.8.2)): Disconnected: Did not receive auth message within 10 seconds

Additional information

i am using the home assistant green. i just started about a month ago. if it would be easier to just wipe it out and start over again, i can try that. Thank you for any assistance -Lisa

home-assistant[bot] commented 1 week ago

Hey there @jc2k, @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit_controller) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homekit_controller` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit_controller` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homekit_controller documentation homekit_controller source (message by IssueLinks)