core: HomeKit integration devices unresponsive

The problem

After adding the integration, and selecting which devices to include etc. I am scanning the QR and adding it to Apple Home. It does get added but this is where everything breaks.

The devices get their current state shown in the Home app, but become unresponsive immediately after adding them. For example if a light is on, it shows as on in the Home app. But if I try to change it’s not responsive. And then shows no response.

Also when I include more devices from the HA UI, they don’t get updated and don’t show up in the Home app.

I’ve deleted and reinstalled the integration a few times still the same issue.

Don’t know if this is relevant but I am using the MariaDB add-on.

What version of Home Assistant Core has the issue?

2022.12.7

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

homekit

Link to integration documentation on our website

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

Diagnostics information

config_entry-homekit-d81ec6216377cf1eecfc09333e7a5d2f.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Nothing in the system logs. If there is another way to get logs for this integration please let me know I'll share them.

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 43 (7 by maintainers)

Most upvoted comments

I found the solution, related issue https://github.com/ikalchev/HAP-python/pull/424, I just upgrade the HAP-python version to 4.6.0 manually, then everything work fine ( with HomePod mini )

Hi

I have the same issue here. I use home assistant OS and it manage all smart thing (except the HomePod) in my home. I bought an HomePod mini (so it’s also an home hub) (192.168.1.89). I use Apple only as a remote (to switch on and off the light with homekit), all automation are managed by HomeAssistant.

So, I make a homekit bridge via config file (because it’s too long when I try to reproduce it to reconfigure anything).

  1. I remove all config/.storage/homekit.* from storage. Remove bridge.
  2. I restart HomeAssistant
  3. I add bridge on Homekit on my Iphone (192.168.1.54) . That work almost every time
  4. I restart HomeAssistant and bridge don’t respond 😦

I try another way :

  1. Remove all config/.storage/homekit.* from storage. Remove bridge.
  2. Reset homepod.
  3. Add HomePod in new home
  4. Add bridge in my home
  5. Restart Homeassistant

It’s work but some functionnality (like “what is humidity in bedroom”) don’t work 😕

In log, I see some curious log

2023-05-10 10:15:54.506 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.54', 50752): Connection made to Home Assistant Bridge
2023-05-10 10:15:54.740 INFO (MainThread) [pyhap.accessory_driver] Paired with 2b0d4fe3-545a-4b39-817a-7935832455e3 with permissions b'\x01'.
2023-05-10 10:15:54.814 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.54', 50753): Connection made to Home Assistant Bridge
2023-05-10 10:15:58.343 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50147): Connection made to Home Assistant Bridge
2023-05-10 10:16:01.009 INFO (MainThread) [pyhap.accessory_driver] Paired with 7e626d7f-4ef6-481b-9a12-c52210572692 with permissions b'\x01'.
2023-05-10 10:16:02.212 INFO (MainThread) [pyhap.accessory_driver] Unpairing client 2b0d4fe3-545a-4b39-817a-7935832455e3.
2023-05-10 10:16:04.986 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50148): Connection made to Home Assistant Bridge
2023-05-10 10:16:05.012 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50148): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.
2023-05-10 10:16:05.113 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50149): Connection made to Home Assistant Bridge
2023-05-10 10:16:05.132 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50149): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.
2023-05-10 10:16:10.957 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50150): Connection made to Home Assistant Bridge
2023-05-10 10:16:10.977 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50150): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.
2023-05-10 10:16:11.425 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50152): Connection made to Home Assistant Bridge
2023-05-10 10:16:11.444 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50152): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.

So I try to dig it and rerun step behind and I see this log (but I set debug mode on pyhap.hap_handler and not pyhap.accessory_driver

So I see :

2023-05-10 10:44:34.555 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Request POST for path '/pair-setup': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '6', 'content-type': 'application/pairing+tlv8'}
2023-05-10 10:44:34.556 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [1/5]
2023-05-10 10:44:34.682 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Request POST for path '/pair-setup': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '457', 'content-type': 'application/pairing+tlv8'}      
2023-05-10 10:44:34.683 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [2/5]
2023-05-10 10:44:34.777 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Request POST for path '/pair-setup': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '159', 'content-type': 'application/pairing+tlv8'}
2023-05-10 10:44:34.778 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [3/5]
2023-05-10 10:44:34.781 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [4/5]
2023-05-10 10:44:34.785 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [5/5]
2023-05-10 10:44:34.789 DEBUG (MainThread) [pyhap.hap_handler] Finishing pairing with admin 2B0D4FE3-545A-4B39-817A-7935832455E3 uuid=2b0d4fe3-545a-4b39-817a-7935832455e3
2023-05-10 10:44:34.856 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '37', 'content-type': 'application/pairing+tlv8'}      
2023-05-10 10:44:34.856 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Pair verify [1/2].
2023-05-10 10:44:34.869 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '125', 'content-type': 'application/pairing+tlv8'}     
2023-05-10 10:44:34.869 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Pair verify [2/2]
2023-05-10 10:44:34.872 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Pair verify with client completed. Switching to encrypted transport.
2023-05-10 10:44:34.878 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Request GET for path '/accessories': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local'}
2023-05-10 10:44:38.828 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '37', 'content-type': 'application/pairing+tlv8'}
2023-05-10 10:44:38.828 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Pair verify [1/2].
2023-05-10 10:44:38.859 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '125', 'content-type': 'application/pairing+tlv8'}     
2023-05-10 10:44:38.859 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Pair verify [2/2]
2023-05-10 10:44:38.862 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Pair verify with client completed. Switching to encrypted transport.
2023-05-10 10:44:38.895 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request GET for path '/accessories': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local'}
2023-05-10 10:44:39.316 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request PUT for path '/characteristics': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '59', 'content-type': 'application/hap+json'}       

And after I don’t see anymore 192.168.1.54 😕 Everything is up to date 😃

I think HomePod force connect to Home Assistant Bridge and kill my Iphone connection but don’t work properly after that ? 🤔

Do you need more log ? 😃 (I cannot found a way to make some test or modification on homeassistant OS)

I’ve been using this integration for over a year with no issues, but recently (past month) we’ve noticed in the Home app all of our devices are showing as “no response”. I can solve the problem by either rebooting HAOS or reloading the HomeKit Bridge integration.

This seems similar to issues reported above so reluctant to add a new issue - but would like to contribute logs if helpful to confirm/clarify source of issue.

That sounds more like a network issue that a problem with a specific device.

When you reload it will force it to publish a new mdns entry. If your HomePods and Apple Tvs can’t multicast to the HA instance, it won’t see the DNS questions and never multicast new answers. As soon as the DNS records expire everything goes unavailable. By reloading you are forcing the mdns records to be published again.

Hi

I have the same issue here. I use home assistant OS and it manage all smart thing (except the HomePod) in my home. I bought an HomePod mini (so it’s also an home hub) (192.168.1.89). I use Apple only as a remote (to switch on and off the light with homekit), all automation are managed by HomeAssistant.

So, I make a homekit bridge via config file (because it’s too long when I try to reproduce it to reconfigure anything).

  1. I remove all config/.storage/homekit.* from storage. Remove bridge.
  2. I restart HomeAssistant
  3. I add bridge on Homekit on my Iphone (192.168.1.54) . That work almost every time
  4. I restart HomeAssistant and bridge don’t respond 😦

I try another way :

  1. Remove all config/.storage/homekit.* from storage. Remove bridge.
  2. Reset homepod.
  3. Add HomePod in new home
  4. Add bridge in my home
  5. Restart Homeassistant

It’s work but some functionnality (like “what is humidity in bedroom”) don’t work 😕

In log, I see some curious log

2023-05-10 10:15:54.506 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.54', 50752): Connection made to Home Assistant Bridge
2023-05-10 10:15:54.740 INFO (MainThread) [pyhap.accessory_driver] Paired with 2b0d4fe3-545a-4b39-817a-7935832455e3 with permissions b'\x01'.
2023-05-10 10:15:54.814 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.54', 50753): Connection made to Home Assistant Bridge
2023-05-10 10:15:58.343 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50147): Connection made to Home Assistant Bridge
2023-05-10 10:16:01.009 INFO (MainThread) [pyhap.accessory_driver] Paired with 7e626d7f-4ef6-481b-9a12-c52210572692 with permissions b'\x01'.
2023-05-10 10:16:02.212 INFO (MainThread) [pyhap.accessory_driver] Unpairing client 2b0d4fe3-545a-4b39-817a-7935832455e3.
2023-05-10 10:16:04.986 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50148): Connection made to Home Assistant Bridge
2023-05-10 10:16:05.012 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50148): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.
2023-05-10 10:16:05.113 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50149): Connection made to Home Assistant Bridge
2023-05-10 10:16:05.132 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50149): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.
2023-05-10 10:16:10.957 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50150): Connection made to Home Assistant Bridge
2023-05-10 10:16:10.977 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50150): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.
2023-05-10 10:16:11.425 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.89', 50152): Connection made to Home Assistant Bridge
2023-05-10 10:16:11.444 ERROR (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50152): Client 2b0d4fe3-545a-4b39-817a-7935832455e3 attempted pair verify without being paired to Home Assistant Bridge first.

So I try to dig it and rerun step behind and I see this log (but I set debug mode on pyhap.hap_handler and not pyhap.accessory_driver

So I see :

2023-05-10 10:44:34.555 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Request POST for path '/pair-setup': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '6', 'content-type': 'application/pairing+tlv8'}
2023-05-10 10:44:34.556 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [1/5]
2023-05-10 10:44:34.682 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Request POST for path '/pair-setup': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '457', 'content-type': 'application/pairing+tlv8'}      
2023-05-10 10:44:34.683 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [2/5]
2023-05-10 10:44:34.777 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Request POST for path '/pair-setup': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '159', 'content-type': 'application/pairing+tlv8'}
2023-05-10 10:44:34.778 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [3/5]
2023-05-10 10:44:34.781 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [4/5]
2023-05-10 10:44:34.785 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50787): Pairing [5/5]
2023-05-10 10:44:34.789 DEBUG (MainThread) [pyhap.hap_handler] Finishing pairing with admin 2B0D4FE3-545A-4B39-817A-7935832455E3 uuid=2b0d4fe3-545a-4b39-817a-7935832455e3
2023-05-10 10:44:34.856 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '37', 'content-type': 'application/pairing+tlv8'}      
2023-05-10 10:44:34.856 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Pair verify [1/2].
2023-05-10 10:44:34.869 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '125', 'content-type': 'application/pairing+tlv8'}     
2023-05-10 10:44:34.869 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Pair verify [2/2]
2023-05-10 10:44:34.872 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Pair verify with client completed. Switching to encrypted transport.
2023-05-10 10:44:34.878 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.54', 50788): Request GET for path '/accessories': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local'}
2023-05-10 10:44:38.828 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '37', 'content-type': 'application/pairing+tlv8'}
2023-05-10 10:44:38.828 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Pair verify [1/2].
2023-05-10 10:44:38.859 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request POST for path '/pair-verify': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '125', 'content-type': 'application/pairing+tlv8'}     
2023-05-10 10:44:38.859 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Pair verify [2/2]
2023-05-10 10:44:38.862 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Pair verify with client completed. Switching to encrypted transport.
2023-05-10 10:44:38.895 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request GET for path '/accessories': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local'}
2023-05-10 10:44:39.316 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.89', 50170): Request PUT for path '/characteristics': {'host': 'Home\\032Assistant\\032Bridge\\032E8CE33._hap._tcp.local', 'content-length': '59', 'content-type': 'application/hap+json'}       

And after I don’t see anymore 192.168.1.54 😕 Everything is up to date 😃

I think HomePod force connect to Home Assistant Bridge and kill my Iphone connection but don’t work properly after that ? 🤔

Do you need more log ? 😃 (I cannot found a way to make some test or modification on homeassistant OS)

Your keys are out of sync or iCloud is failing to sync.

2023-04-23 13:45:40.710 ERROR (MainThread) [pyhap.hap_handler] (‘10.23.1.228’, 49372): Client 83bc69d7-7f01-4313-8677-133a3aaa7104 attempted pair verify without being paired to HASS Bridge first.

https://www.home-assistant.io/integrations/homekit/#unpairing-and-re-pairing

If that doesn’t work, delete the bridge and recreated it.

Finally you can do a full reset to cleanup iCloud:

https://www.reddit.com/r/HomeKit/comments/yy2oy7/apple_has_a_downloadable_profile_to_really_clear/#:~:text=After installing the profile%2C the,the process to nuke everything.

Everything I have is on 16.2 and have this issue.

Thanks, Guy M. DeFazio

On Jan 1, 2023, at 3:52 PM, andersovreseth @.***> wrote:

Hopefully it will be fixed either by Apple in IOS 16.4 or in Home Assistant Bridge.

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/84387#issuecomment-1368532112, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE7XNNO7VKAMCOZEXYYGZF3WQHVAZANCNFSM6AAAAAATF2HJ2M. You are receiving this because you commented.Message ID: @.***>

I have the same question, I think maybe apple update the homekit architecture. d352ed676ecb059aee17f97ffbc94b1