anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

Multiple Instances of Homebridge getting mixed up #68

Closed glenferguson closed 6 years ago

glenferguson commented 6 years ago

Hi all,

First of all can a I say a huge thank you to all who have contributed to Homebridge for Cbus, It is amazing and I have had lots of fun getting it working.

I am not sure if this is a Homekit issue or a Hombridge. I have two Homebridge setups at two different houses, both using a PI for cgate and Homebridge. They both work great and I have just set them up to be available remotely through an AppleTV and an Ipad. I have used different ITunes accounts and have made one a guest on the home Ipad. Therefore I have two instances on my device for the two places, one direct and the other remote (Guest). I setup the second house with an imaged PI of the first house and then just re-configured for the local setup and I used a different pin to avoid confusion. I have also turned off Home Switching.

I have noticed 2 issues that I was hoping someone might understand. The first is that if I am at home and have wifi on, the remote instance only recognises about 1/3 of the devices and the rest are "no response". If I turn off Wifi and use 4G they come back up fine instantly.

Second issue - Having gone from one house to the other, I am now finding that the guest version is getting labels and status mixed up with the local house, ie a room in the home is showing up in the labels for the guest account. Switching still works back as it should.

I can work around it but thought someone might have an idea.

Thanks Glen

DarylMc commented 6 years ago

Wow quite a setup.

I use iPad for remote access and an iPhone at my small CBus network. Slow response on wifi but fast response on 4G "is" something I have seen before. I am pretty sure it is an Apple issue and I was able to find other instances with a Google search.

Having said that I am not having the problem anymore. After a "lot" of playing around I did break something on icloud and had to reset it. https://github.com/anthonywebb/homebridge-cbus/issues/61 It caused the phone and iPad to get out of sync. I wouldn't say that is your problem but it might be something to consider.

glenferguson commented 6 years ago

Thanks DarylMc, I will have a look.

DarylMc commented 6 years ago

@glenferguson I did have the slow updating on WiFi again today. Turned iCloud account off and on for both iPad and iPhone and it did not seem to fix it. At my home there is 2 wifi access points with the same SSID on 2.4ghz. I have a suspicion that moving between them or moving from 4G to wifi with the phone while using the iPad as a home hub is causing the problem. At no stage do I see the iPad having trouble to update Homebridge. Mind you it is always on the same access point in my office.

glenferguson commented 6 years ago

I moved between the two houses (obviously different Wifi access) and it corrupted the remote access version. I haven't been back to check it out but reseting icloud did not do anything. The interesting thing I have discovered is that the remote version on my ipad has a mix of local house and remote house elements. When I turn on the wifi connection, only the local element (mixed in where they shouldn't be) show up as connected and other come up as not connected. When I turn the wifi off and go 4 G it syncs back to the remote house properly but the icons are incorrectly labelled with local house elements.

anthonywebb commented 6 years ago

Here's hoping that updates to core OS in iOS 11 will bring us some new goodies (and potentially some fixes) for stuff like this.

On Tue, Aug 15, 2017 at 11:48 PM, glenferguson notifications@github.com wrote:

I moved between the two houses (obviously different Wifi access) and it corrupted the remote access version. I haven't been back to check it out but reseting icloud did not do anything. The interesting thing I have discovered is that the remote version on my ipad has a mix of local house and remote house elements. When I turn on the wifi connection, only the local element (mixed in where they shouldn't be) show up as connected and other come up as not connected. When I turn the wifi off and go 4 G it syncs back to the remote house properly but the icons are incorrectly labelled with local house elements.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/anthonywebb/homebridge-cbus/issues/68#issuecomment-322672473, or mute the thread https://github.com/notifications/unsubscribe-auth/AAARLXjbycZ9OdtIebU_oGFx7dYCurR6ks5sYoKlgaJpZM4O1kwr .

DarylMc commented 6 years ago

@anthonywebb I think it could well be iOS Home app issues. @glenferguson is certainly giving it a good test. I think I have too. I set it all up on a pi3 at my mum's house a few months ago. She doesn't use it. Yesterday I talked her through turning some lights on with her phone. It still works so I think that is a pretty good result. Slow response on wifi seems to be a common problem for other Homebridge users. Not just Homebridge CBus Looking forward to seeing what iOS11 brings. By all reports it is unlikely to break Homebridge.

DarylMc commented 6 years ago

Maybe a good test would be to disable Home Hub. I'm going to give that a go. edit I don't think that helped at all

glenferguson commented 6 years ago

@DarylMc my setups both work fine when it is just on Wifi, the issues kick in when I have to go through the Internet and the Home Hub. It is slower and I get the corruption. Btw, on my two setups I have about 70 devices each so I think I certainly am giving it a workout. Two teenage kids and they love it.

DarylMc commented 6 years ago

@glenferguson As far as I know Home app has a limit of 100 accessories. I wonder between your two homes if that is the problem? Not for the slow wifi update but maybe for the home corruption? edit That is 100 devices per bridge as far as I can tell.

glenferguson commented 6 years ago

Hi all, think I have uncovered my problem. I changed the User name by one and the problem went away.

DarylMc commented 6 years ago

@glenferguson Could you give a bit more info? Do you mean config.json username?

glenferguson commented 6 years ago

Yes, I changed the 30 to a 31 and the problem went away