Homekit devices "Not Responding"

@FredTheFrog It’s a bit of both. There is currently an open issue with a stale socket, but your right that it still leaves the random issues with the Home App.

I’m not convinced of this. I used homebridge on Domoticz for over two years and never once saw this issue.

I’m also not one hundred percent convinced that the bug referenced is really causing the problem. But I guess the only way forward is to wait until that gets fixed and then try again. Unfortunately it really looks like the project isn’t very active these days.

I used homebridge for about 2 years as well, until I upgraded to 11.4 and then the problems started with both hass’ native HomeKit and homebridge. Upgrading to iOS 12 seems to have resolved the issues for me.

@dmonagle It’s true that it’s not as active as it used to be, but please keep in mind that we all do this in our free time (which isn’t much to begin with). I know that at the moment the core maintainer is working on the camera support. Regarding the fix: Since it’s already in the dev branch, I’ve ask him a few hours ago if we can do an early bugfix release.

Thank you for that. Please don’t take it the wrong way. I run a dev team full time and have many side projects in my spare time. Like you all, I’m committed to doing far more than I ever really can. I’ve only been working with HA for a month or so, but I’m sold on it.

I’m not demanding a fix. I’m just trying to gauge how far I need to go for a soloution or work around. It sounds as if it’s worth waiting a little.

Thanks again for looking into this and I look forward to contributing going forward.

1 Like

@dmonagle It looks like you don’t have to wait that much longer :wink: https://github.com/ikalchev/HAP-python/commit/855577cfcde1bf2f8562caf9fbefda3e4fa8b497

That fix looks super promising. So there was another logged issue on the library:

The commit you linked to resolved it. It was done about a month ago, but never released. From the original report description, it sounds like this would definitely solve the issue.

Now I’m really happy to test this, is there any easy way to SSH into Hass.io and change a python dependency to use a different repo/branch?

There might be a way, but Hass.io is definitely not designed to do that. So it might be difficult. I haven’t used it yet though.

Have you heard of Hassbian? It takes care of the basics while allowing for full customization. That’s what I use for my “production” system.

Makes sense for me to move to that since I have every intention to do significant development on this. I’ll grab another SD out of the drawer and take a look.

I actually was running this on my Synology and only tried Hass.io because I figured the homekit problem was an issue with my network. But thanks to Hass.io being so easy to set up, I’ve already got a few family and friends trying it out. I’m really impressed with this project.

Thanks for the pointer. I’ll see what I can hack together and then at least we can give a definitive answer to anybody else with this issue.

1 Like

If you plan on doing development, I don’t know if a Raspberry might not be to slow for that. I’m using a virtual machine with Ubuntu 18.04. That works fine and is probably a lot faster.

Yeah I set up a python virtual env on my Mac last night and it’s running there and working beautifully. It’s a limited setup though because my house needs to keep running so I can’t just swipe my Zwave stick for testing. I’m probably going to end up with a three tier approach for this. Might need to set up a CD environment just to run my house :smile:

Makes sense. I’m not doing Z-Wave development (at least at the moment), so the stick can stay in the Raspberry. Probably my lifeline :smile:

1 Like

Okay! I just installed the dev branch of HAP-python on my local copy. I added in a second HK bridge to my home and put a few dummy switches in. I’m at a record smashing 45 minutes with all of my devices being responsive. I’m 90% sure that this is all that’s needed to make HomeKit support rock solid.

I think the reason it may hit me harder than some people is that I have about 14 devices capable of controlling homekit in my house. That’s probably causing me to rack up connections at a much faster rate than most people.

If anybody out there is running into this problem, you can install the dev branch of HAP-python by doing the following:

pip install git+https://github.com/ikalchev/HAP-python@dev

My next step is to set up hassbian and copy across my existing config and replace that package. That will be the final proof for me.

Great to here it!

Once the new version is released, I’ll try to get into the Home Assistant master as fast as possible. Although, I’ll have to see what they’ll let me do :wink:

1 Like

Hello everyone, I experienced the same issue mentioned by @dmonagle. Since I left homebridge (with which I never had a problem), I have not been able to use HA with HomeKit. Not even the continuous updates of Home Assistant have solved the problem. Currently I have installed the latest release without having installed or configured anything else except the HomeKit controller which does not respond in the Home app. Would you know how to fix it? I wish I could go back to using the home app and all my accessories. Thank you.

Have you tried these steps, i.e. completely resetting the configuration?

Yes, I’ve tried several times, but it still doesn’t work.

If you can control the devices remotely from home assistant app but get no response from the home app on ios then try restarting you’re homekit hub…
this is the device ipad or appletv you asigned to be the central communications between home and the remote device.

I too have had this issue and have had to create a watchdog/heartbeat to monitor the hub, if no state activity then an automation turns the plug off on the appletv for 1min then turns it back on…

this is my current work around.

another issue to watch for is remote connection through a VPN… if you have not setup your DNS correctly on the VPN you will get this issue as well.

@uwscia

Can you explain this a bit more?

I use Node-Red in a docker…
I have Flows that control a bunch of different things.