homebridge-cbus
homebridge-cbus copied to clipboard
iOS 11 - no worky
I installed iOS11 on a couple of my devices, and, although all my iOS10 devices are still working fine, the iOS11 devices are saying "no response"
I am in the process of updating to the latest homebridge (0.4.28) to see if this helps. Will update this thread as I know more.
Hi Anthony I did my iPhone then iPad which is set as HomeHub. No problems
From reading I think this may be an AppleTv specific problem. My AppleTv is my HomeHub.
I had to update Apple TV for home to work. I also updated my iPhone 7 to iOS 11 and home is fully operational.
I have also had problems with my friends installation since upgrading to IOS 11. What we have discovered thus far is the Apple TV (Gen 4 with recent OS update) is not stable with homebridge when used as a homekit hub. We would find often devices (mainly when away from home) would go to not responding.
We turned off homekit on the Apple TV and instead used an ipad as the hub and the C-Bus devices can now can be controlled both on the network and away from home. Has been stable for a couple of days now.
We have however discovered another problem. It seems homekit automations are not being triggered by a state change. eg: a simple homekit automation that says when this light is turned on also turn on others fails. A time based automation works fine eg: turn on lights at 6:00pm . So it appears the state change from homebridge for the C-Bus devices is somehow not updating the hub so the automation gets triggered.
Need to do some more tests but would welcome any other input if others are testing. I keep telling my friend he can easily do these automations in C-Bus, but he dearly would like to also be able to simply author an automation in homekit using his phone occasionally.
@MtSamsonite The initial update on my ipad and phone seemed fine. After using iOS11 on iPad Pro 9.7 and iPhone SE I reckon it might be one of the most problematic for quite a while. Jerky page launches and the odd crash which I have not been accustomed to. Hopefully some fixes are not far away.
I've done a few reboots of pi to fix the odd glitch but I have still been seriously playing around with the app. Added Hue bridge to Home app and synced to CBus key input :) I've mentioned this before but I may as well keep at it. When I move between wireless access points at home. Same SSID different channels, it takes a bit sometimes to get Home app to see devices. Who knows maybe it is my router. It I turn wifi off 4g connects pretty much straight away. This was the case on iOS10 too. Possibly when moving into wireless network in general. It wasn't all the time.
As far as the automation goes, I spent several hours playing with that to get the Hues to see CBus key inputs. It seems to be working well so far.
Today I was out (test driving Tesla Model X actually :) and I whipped the phone out hopefully for a chance to show someone how clever I was. Didn't connect so back in the pocket it went. When I got home wifi worked right away and 4g does still work.
I'm not sure anything needs to be done to the Homebridge CBus on the pi at this stage but rather Apple to sort out a few things.
I did have iCloud Home app issues previously and you can read here to see if you think it may help. First I deleted Home on devices then reset iCloud by turning it off and on again on both devices. Issue https://github.com/anthonywebb/homebridge-cbus/issues/61
To be honest I would rather use a CBus device to do the fancy stuff than give it to Home app. For a start it wouldn't have to be redone every time you delete your Home. To link the Hues it seemed a reasonable thing to try because I don't know how to go about that otherwise.
@MtSamsonite I was able to get iOS 11 working by clearing the /var/lib/homebridge/persist directory, then updating homebridge to the latest, and starting fresh. I have 90 devices and absolutely hate creating new rooms and assigning out all my devices again, but after I did that I have been running flawlessly ever since. I am not actually sure what is my hub is now. I have an AppleTV in the mix, but also have ipads here at home too. But I do know that I have had a pretty solid platform for a week now. I will try to duplicate some of trouble cases you brought up, but I would suggest getting homebridge up to date, and, sounds like 11.0.1 is just around the corner too.
@anthonywebb Good to hear. Do you have some tips to check and update Homebridge version?
To get the latest I just logged into my pi and did: sudo npm install -g homebridge
That got me up to 0.4.28 (which is the most current as of today)
@anthonywebb Thanks
ProTip: I would highly suggest naming your devices in the JSON with the name of the room followed by the name of the device. For instance "Master Bedroom Light" and "Master Bedroom Fan", then when you are adding devices 1 by 1 in the iOS home app if you set up the room named "Master Bedroom" when you assign the device to that room you wont need to do any device renaming to fix the names of each of the device cards in the app.
@anthonywebb @DarylMc
Thank you kindly for the responses. I checked in with my friends set-up last night. We had tried turning off sleep setting on the Apple TV and he indicated it has been solid since doing so, only a day or so so far but has included tests both on and off net and appears to have fixed the stability issue.
I'm not sure if he has re-tested using a homekit automation triggered by a device state change as yet, I have posted the question to him and will provide a response shortly.
Mike
@anthonywebb @DarylMc
Oh and my apologies, I forgot to mention that we are (and were at time of posting) running the latest homebridge - (0.4.28).
Mike, I also had an issue with the automation not triggering instances when I came home for instance. Like you said timed schedules through HomeKit were operational just not triggering an instance. To fix this I had to go to iCloud share my location and set device to (this device) as it was set to another iOS device at home which was my old iPhone 6. Being set to another device was not picking up when I left and came home.
Pete
@peterconn @anthonywebb I spoke to Peter and he had some issues after trying to update Homebridge version. I think it is a good idea to stop Homebridge service before updating. In my case sudo systemctl stop homebridge
@daryl I still could not get it working after your instruction. It’s stuck at updating when I open home. I did sudo systemctl status homebridge and it’s running. I also did telnet and did project list and net list and all were running. Prior to updating homebridge, it was ok. To top that off my iPhone updated to ios11.0.1 last night. Not sure how that will effect homebridge. I’ll revert to my working image and see if that fixes it.
Oh dear I just want to mention first iOS11 update went OK for me re Homebridge using iPad as Home Hub. Sure I had some glitches and had to reboot the pi but I was also doing other changes at the time. Right now it is working well as far as I can tell.
If you at some stage deleted the Home on the phone you need to clear the persist file from the pi and re setup the phone. If you didn't, restoring your SD image should fix it.
I don't think updating Homebridge is necessary to get it working but sure I could be wrong.
I think you mentioned the wrong Daryl 😉 Best of luck with whatever you're doing!
Oh I just noticed you say iOS 11.0.1 For anyone still on iOS10 I would not take the update just yet. Not just for Homebridge but the whole thing is a little less polished than I expected.
I just did iOS 11.0.1 update Had to reboot pi Still seems to be working
It came back after reboot on pi
@DarylMc, it shows my homebridge service as active running yet my buttons just show updating.
@peterconn I just did iOS 11.0.1 update on ipad and iphone. Needed a reboot of pi. Then it works for me. I do have the latest Homebridge on the pi but I'm not convinced that makes a difference at this stage.
@darylmc, good to know. I’ll try and revert back to working image and not update homebridge see if that does the trick.
@peterconn I'm going to load an SD image before the Homebridge update. Will let you know how that goes.
Restoring image worked right away with whatever version of Homebridge I had a month ago
If you check Homebridge changelog I don't think there is a compelling reason to change to the latest version.
@darylmc I just got home and tried to remove my home from HomeKit. It would not even allow me to remove home. All buttons were still showing updating. So I performed a hard reset on the iPhone and did sudo rm in persist. Added homebridge again and it’s now working. Home app was just not functioning or stuck after update.
Working now? I reckon you could have got to the same place without touching Homebridge at all.
Maybe a reboot
Reboot Pi? Tried that several times.