All working for an hour or so then iPhone can't connect... #46
Comments
I am having the same issue from yesterday with the new update. I had this issue on Raspberry Pi initially but the reason was my network switch , the issue got resolved by connecting Raspberry Pi directly to router and it worked fine for a week and I am seeing the same issue from yesterday. Checking different things to see what is causing the issue. |
@codersaur can you try only removing the IdentifierCache file in persist and seeing if it works? |
Note: I have the same issue when I leave home, when I return nothing will connect. I have not tried power cycling, I just remove persist and re-add. I will try those things as well and let you know. |
It appears my phone was ok for > 1 hour, but I after I got the #45 etimedout error and was not able to get reconnected without removing persist, everything from homekit, and starting over. |
I'm going to do an update tonight that allows the subscription based updates to be disabled and make that the default with a reasonable poll interval. I'll then develop a methodology for finding why the phone looses the Homebridge. Usually it's because an attribute is set to an invalid setting, but that should make you lose all accessories unlike just some of them as many of us are experiencing. |
I lose all my accessories, FYI. On Friday, February 19, 2016, pdlove notifications@github.com wrote:
|
I should also note that I change my switches to "light bulbs" in HomeKit Maybe that is an invalid setting causing the issues? On Friday, February 19, 2016, Andy Rusch asrusch@gmail.com wrote:
|
At least one person other than myself has reported losing most, but not all. After looking over it, I think it's a difference in the way IOS 9.3 beta works vs 9.2. Just a guess. Either way, it's badly broke and the only real change made was that it is using the subscriptions. The polling portion of it is identical. |
When I lose them, it's all of them. I'm still running iOS 9.2. |
Hey all, busy weekend, but finally got some time to post the results of my testing. To clarify, I am using iOS v9.2. (9.2.1 on a 6S to be exact), and using Elgato Eve to manage the HomeKit database. Testing log: Starting from when the phone has already lost connectivity to Homebridge...
*Conclusions: *
Some other issues (which could be entirely Elgato Eve problems or other related problems):
|
I was seeing pretty much this exact behavior since updating to 4.3. I removed the Homebridge device this morning and re-added it after deleting the "persist" folder and changing the |
FYI, since posting this everything has actually been running fine. No issues in a couple days. |
No issues after your device leaves and returns to the network? On Mon, Feb 22, 2016 at 4:43 PM, Ricky Bloomfield notifications@github.com
|
Nope. I've done that many times over the last few days. Works on and off the network. |
I simulated leaving (turning off Wifi) and coming back (turning back on), and i get an error on Homebridge.
After that error, my nic fails to ping out and I cannot SSH in. I reboot the VM and it comes back. I was able to get it to come back once, but when I tried a second time, it came back as not reachable, and threw the above error. I should note I have an AppleTV that theoretically supports remote Homekit, but I have never been able to get it to work with Homebridge. It works with my Ecobee. I am thinking there might be an issue with my environment. I am going to try another version of Ubuntu and perhaps even a bare metal install of it. |
I'm about ready to give up. I just completely reinstalled my OS and everything. Homebridge starts up, it adds all my ST devices, gives me the scan code, etc. But my phone refuses to see it. I've changed the Bridge name and username a dozen times. Cleared persist, etc. Just will not show up. It was doing this before the reinstall as well, but I usually would get it on the 3rd or 4th time of changing the name, etc. Very aggravating! |
What iOS app are u using for managing HomeKit? I was using Idevices but it wasn't adding homebridge when I switched to the eve app and it worked. But now I have a problem of the devices disappearing after sometime. I have to restart homebridge and restart the eve app and they appear again. |
I am using "Home." I had no problems with it for some time. I was able to add the Homebridge no problem for a week or so. Only recently was it having issues. Eve - same thing. It will not find the Homebridge even though it found all my ST devices and is running fine. |
@rickybloomfield Are you saying that it was messing up but everything has stabilized and it is working fine now? |
@coolcom: I have the latest model of Apple TV and have nothing but trouble with remote access. |
What version of hap-nodejs are do y'all have? I recently redid my system and know the latest hap-nodejs is on it. several posts on the main homebridge have indicated recent fixes have improved stability. |
I have 5.6 of node- is hap-nodejs different? How do I check? |
@pdlove Yes, that's what I'm saying. |
I have v5.6.0 of Node. I can see there is a new version v.0.2.5 now from https://github.com/KhaosT/HAP-NodeJS |
Just wanted to say, having not but problems here, the combination of this and Wemo have totally stopped everything in Homebridge working. Its a shame because the old version of Homebridge with the old Wemo plugin worked fine, and now I've basically lost Siri control of everything. For the record i'm just getting this repeated over and over...
code: 'ENOTFOUND', And I haven't left the house, that just happens after restarting Homebridge and an hour or so later. |
@codersaur Looks like I have 0.2.3 of hap-nodejs (the one installed with homebridge) and version 4.2.4 of NodeJS. Not the latest, but everything seems to be working. |
ENOTFOUND is a DNS issue as is the EAI_AGAIN error. I've looked several times and I can't find any reference to it being anything but a DNS resolution failure. |
My Homebridge is totally broken now, all the devices have disappeared and I can't get them back. Wish id never upgraded anything to be honest... |
Try this with plugin version 0.4.4. I've corrected a lot on the error handling. You'll still get the connection errors because that is all smart things being an issue.... but it shouldn't cause home bridge to crash as it has been doing. |
Thanks for the update @pdlove. However, I've tested with the latest update this morning, but still the same issue. All devices have become unreachable after a hour or so, and restarting homebridge doesn't get it working again. :( Let me know if there are some more-detailed logs I can grab for diagnosis... |
I should add that I don't think it is home bridge that is crashing, looking at the logs it is continuing to receive state changes from SmartThings even after communication with my iPhone has died. |
codersaur, can I get a dump of your accessories json from homebridge after the communication issue occurs? For example, my homebridge server is 192.168.0.4, so I go here for the dump: http://192.168.0.4:51826/accessories |
If you get a status of -70401 then you'll need to run homebridge with the -I parameter in order to allow "Insecure mode". |
I was getting a status of -70401 too (which incidentally is the response I was referring to in my original post). Restarted with the -I parameter and it gives a lot more info about each device. Probably best not to post here though. What's the best way to share it with you? I thought I saw your email somewhere in the code, but can't find it. I could PM you on the SmartThings community forum if you have an account there? Also, is the -I parameter something that should be used in normal operation, or only for debugging? |
My email is pdlovelace@gmail.com |
@pdlove no change for me with the update either i'm afraid. Errors on everything shortly after starting Homebridge. I ran the URL you mentioned above and too downloaded a file containing {"status":-70401}. When it goes offline though I can't even access that URL until I restart Homebridge. |
I'm moving all discussion to issue #58. I was able to iron out one major issue last night an just released that as 0.4.6. |
Hi,
I'm using the latest Raspbian build (2016-02-09) on a RasPi Model B. I've installed homebridge and homebridge-smartthings as per your instructions and everything works fine (can connect and control several switches and power meter devices on SmartThings). :)
However, after an hour or so my iPhone can no longer connect to any devices via homebridge. The only way I can get things working again is to empty '/var/homebridge/persist' and reset the HomeKit database on the iPhone. This has happened several times since installing 48 hrs ago. The homebridge server is typically still running (as a service using systemd) with no obvious errors and I still get a response if I browse to http://myhost:51826/accessories, so looking for some help as I'm not sure where the issue could lie.
Thanks.
The text was updated successfully, but these errors were encountered: