swttt / com.swttt.homekit

Homekit for Homey
https://apps.athom.com/app/com.swttt.homekit
GNU Affero General Public License v3.0
35 stars 20 forks source link

Homeykit unresponsive every day #148

Open BBEHannes opened 5 years ago

BBEHannes commented 5 years ago

Since i updated to the latest version of HomeyKit it started to act strange. It loses track of the state of the devices and goes into limbo state where you cannot control devices any longer and the state of when it hung stalls. Have this on 3.0.7 as well as the beta 3.0.9. Restarting Homeykit resolves the problems for a day or so

Anything known?

Veldkornet commented 5 years ago

Sounds like the same issue I have. See #137

wmmudde commented 5 years ago

Same issue here! After deleting the app and installing it again. It is not possible anymore to see devices or pair with HomeKit..

robertklep commented 5 years ago

Any underlying libraries related to HomeKit haven't been updated for quite a while, so it's not related to any changes made in recent versions of Homeykit.

From my experience with HomeKit (the protocol), it's quite susceptible to networking issues, and anecdotally, Homey v2 isn't super stable when it comes to networking.

Also, if you use a HomeKit hub device (iPad or AppleTV), these devices should be prevented to go to sleep. I use an iPad as hub device, and even display sleep will cause problems with HomeKit becoming unresponsive (this typically can be resolved, at least for me, by toggling airplane mode). This also happens with completely different HomeKit implementations, like the one in Home Assistant, so it's not specific to Homeykit.

Since I changed my iPad to be always on (preventing the display to go to sleep), it has been rock solid.

wmmudde commented 5 years ago

Robert,

I now have the app installed again. I can see homey in HomeKit but when i try to pair it fails constantly. Do you have any solution? Deleting and instaling the app is not working. I think i need to remove all the Homeykit stuff ANd have a clean install..

What you say about the issue with a hub. I used domoticz before with homebridge using my Apple tv as a hub and never had this many problems with my devices

Op wo 27 mrt. 2019 om 21:37 schreef Robert Klep notifications@github.com

Any underlying libraries related to HomeKit haven't been updated for quite a while, so it's not related to any changes made in recent versions of Homeykit.

From my experience with HomeKit (the protocol), it's quite susceptible to networking issues, and anecdotally, Homey v2 isn't super stable when it comes to networking.

Also, if you use a HomeKit hub device (iPad or AppleTV), these devices should be prevented to go to sleep. I use an iPad as hub device, and even display sleep will cause problems with HomeKit becoming unresponsive (this typically can be resolved, at least for me, by toggling airplane mode). This also happens with completely different HomeKit implementations, like the one in Home Assistant, so it's not specific to Homeykit.

Since I changed my iPad to be always on (preventing the display to go to sleep), it has been rock solid.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/swttt/com.swttt.homekit/issues/148#issuecomment-477337800, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai_pT-yFV3teclzQWftu7LgpNTbLN4ecks5va9aRgaJpZM4cD-Rh .

robertklep commented 5 years ago

@wmmudde removing the app should remove all Homeykit-related stuff, but just in case, you could try removing the Homekit storage from Homeykit's settings page.

Also, can you specify what "fails constantly" actually means? Do you get errors?

wmmudde commented 5 years ago

Ben je Nederlands?

Op wo 27 mrt. 2019 om 21:46 schreef Robert Klep notifications@github.com

@wmmudde https://github.com/wmmudde removing the app should remove all Homeykit-related stuff, but just in case, you could try removing the Homekit storage from Homeykit's settings page.

Also, can you specify what "fails constantly" actually means? Do you get errors?

β€” You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/swttt/com.swttt.homekit/issues/148#issuecomment-477340646, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai_pT7xtkRy00IqcSd-maOdvEhm6mGsAks5va9iKgaJpZM4cD-Rh .

robertklep commented 5 years ago

Yes πŸ˜„ (I don't know if everyone else in this thread is)

wmmudde commented 5 years ago

This is what i get the whole time. Deleting the configuration in the settings tab also not working:

Woning : can not connect to this accesory

Op wo 27 mrt. 2019 om 21:52 schreef Robert Klep notifications@github.com

Yes πŸ˜„ (I don't know if everyone else in this thread is)

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/swttt/com.swttt.homekit/issues/148#issuecomment-477342769, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai_pT8mhvisSRyn7Fwcb_X66RzpBcSl_ks5va9oBgaJpZM4cD-Rh .

robertklep commented 5 years ago

Woning : can not connect to this accesory

I have no idea how to fix this, because I can't reproduce it (for me, it works just fine).

You could try using the experimental Homekit implementation from Athom to see if that either works better, or exhibits the same problems (Meer > Instellingen > Experimenten).

wmmudde commented 5 years ago

That one has the same problem

Op wo 27 mrt. 2019 om 21:56 schreef Robert Klep notifications@github.com

Woning : can not connect to this accesory

I have no idea how to fix this, because I can't reproduce it (for me, it works just fine).

You could try using the experimental Homekit implementation from Athom to see if that either works better, or exhibits the same problems (Meer > Instellingen > Experimenten).

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/swttt/com.swttt.homekit/issues/148#issuecomment-477344177, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai_pT_Mn9erAVqBbZfV7aLV0TYmqziAXks5va9r_gaJpZM4cD-Rh .

robertklep commented 5 years ago

In that case, I'll refer to my previous comment:

From my experience with HomeKit (the protocol), it's quite susceptible to networking issues, and anecdotally, Homey v2 isn't super stable when it comes to networking.

Since Homey is a closed platform I can't log in and monitor its networking to see if I can find a reason why it starts failing at some point.

jahnkenneth commented 5 years ago

The same happens here. Started as soon as I updated to iOS 12.2...

Veldkornet commented 5 years ago

I can’t say that I have this problem and all of my devices are on iOS 12.2.

I have an AppleTV 4K on a wired connection (since wireless could go to sleep / power saving, have interference, etc) as the hub. Philips Hue bridge is connected, Homebridge running in Docker and HomeyKit on Homey. All running perfectly (except the issue I referenced above). But I've never had any problems with everything just being unresponsive.

J0nke commented 5 years ago

Hey, I was having the same issue but I think I have solved it now (it have worked over a day now without problems).

I was using homey as a controller and HomeyKit to control my different devices from my iPhone. The devices was looking as not responding but I could control them from the homey app. My network environment was the same LAN ( both homey and iPhone on the same wifi). I am using Ubiquiti as both accesspoint, switch and router.

After some testing I could think it was an network issue (as @robertklep was saying a network issue) because if the devices was shown as not responding and I was activating flight mode and deactivated it again it was working.

My solution In my case it started to work after I was changing the network configuration on the network switch (Ubiquiti UniFi Switch 8). It was disabling Spanning tree. It was by default ben set to RSTP. I don't know why but is seems to work)

If you want to digg down in the HomeKit protocol you can read this HAP-Specification-Non-Commercial-Version.pdf

Nice to know is that bonjour and mDNS is needed and are doing some type of discovery over the network.

I hope this help someone!