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
73.29k stars 30.61k forks source link

Homekit intermittent problem with 'No response' on IOS devices #15675

Closed jr3us closed 5 years ago

jr3us commented 6 years ago

Home Assistant release with the issue:

Version 74.0 on hassbian stretch running on a raspberry pi 3b. I have also tried a 3b plus, but have same problem.

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):

I am using hassbian

Component/platform:

Description of problem:

I am having an intermittent problem with the homekit builtin bridge. Sometimes all the accessories show no response in the IOS Home app, and to my experience the only way to get them back is to trigger homekit in the web interface. I am currently on HA .74.0.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

I have the following information in configuration.yaml. Note that I do have z-wave, so I added the automation to start HomeKit after wave is ready/complete.

homekit:
  auto_start: False

automation:
  - alias: 'Start HomeKit'
    trigger:
      - platform: event
        event_type: zwave.network_ready
      - platform: event
        event_type: zwave.network_complete
    action:
      - service: homekit.start

# Show links to resources in log and frontend
introduction:

logger:
  default: warning
  logs:
    homeassistant.components.homekit: debug
    pyhap: debug

Traceback (if applicable):

Additional information:

I am using an apple tv 4k as the homekit hub, but it doesn't appear to be involved when the IOS devices are attached to the same network as the HA server is.

In the following debug statements, 192.168.1.20 is my Apple TV 4k, and 1.29168.1.23 is my iPhone:

2018-07-20 12:31:00 DEBUG (Thread-26) [pyhap.accessory_driver] Could not send event to ('192.168.1.20', 55172), probably stale socket.
2018-07-20 12:31:00 DEBUG (Thread-26) [pyhap.accessory_driver] Could not send event to ('192.168.1.23', 49531), probably stale socket.

Any ideas where I have gone wrong? Any additional information I need to provide?

bluepixel00 commented 5 years ago

Home assistant just brings devices into HomeKit ecosystem. Even with “official” HomeKit devices you need to have an Apple TV, HomePod or iPad act as a bridge to your devices outside of the home.

https://support.apple.com/en-us/HT207057

On Feb 6, 2019, at 7:04 AM, gsotiriou notifications@github.com wrote:

Which is weird considering that it works fine when I'm at home.

Hello sir. Have you setup an apple device (ipad mini, apple tv or homepod) as home hub?

You will need it in order to access outside your wifi network.

Hello, I thought that the homekit: component should/would take care of something like that. I was under the impression that once pairing with Homekit (pin , iOS setup etc.) and putting in the proper configuration , that was all I needed to control my devices in and out of home.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jr3us commented 5 years ago

Looks like this can be closed now.

Thanks to @ikalchev and @cdce8p for getting this fixed!