Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Tie in to Apple HomeKit #159

Closed
stevenmcastano opened this issue Sep 5, 2016 · 18 comments
Closed

Request: Tie in to Apple HomeKit #159

stevenmcastano opened this issue Sep 5, 2016 · 18 comments
Assignees
Labels

Comments

@stevenmcastano
Copy link

First of all, thanks for this... this is EXACTLY what I've been looking for. I've been writing my own custom Alexa skill in python for a month, and this replaces the entire thing with even more control and better functionality.

Do you think there's any chances of this picking up the ability to tie into Apple HomeKit and something like the MyTouchHome app?

Right now I'm using another project called "homebridge" https://github.com/nfarina/homebridge to link my iOS devices to my multiple home automation systems for the same functionality. So I could just configure both of them with matching names and activation URLs, etc, but it would be amazing to have both of these in one single app.

Any plans for that in the future?

@bwssytems bwssytems self-assigned this Sep 14, 2016
@bwssytems
Copy link
Owner

Something to be looked into.

@stevenmcastano
Copy link
Author

For sure, I'm using it more and more... I've been tying in shell scripts, multiple command options, etc... and things are going great. The only problem is, right now I have to replicate all those changes over to another app for Siri to work as well.

Is there an API in ha-bridge I could hit? This way maybe my homebridge install could at least just point to ha-bridge and I'd only have to send a single web request over and use ha-bridge to do all the actual heavy lifting?

@audiofreak9
Copy link
Collaborator

Homekit is Phillips Hue Bridge compatible, it should discover the ha-bridge as a Hue if you run the ha-bridge on port 80 rather than the default port 8080.

@bwssytems
Copy link
Owner

Also, the ha-bridge emulates a Philips Hue Bridge so you can use those api calls to control it as well. ans as @audiofreak9 says, most external programs that utilize a hue, it is better to set the ha-brige to port 80 as a lot of apps hard code this port number for a hue bridge

@magenbs
Copy link

magenbs commented Sep 16, 2016

Homekit only works with the new Hue bridge 2. Does ha-bridge emulate the new authentication?

http://www2.meethue.com/en-us/friends-of-hue/apple-homekit/

@bwssytems
Copy link
Owner

Yes, I incorporated the features for V2 into the V3.0.0 and later ha-bridge. There may be some nuances of V2 that I am missing.

@Ukhauk
Copy link

Ukhauk commented Sep 22, 2016

Siri is a great addition to Alexa integration. To add to ha-bridge into homekit what Apps are best to pick up the bridge and devices ? I have been trying the Philips Hue apps which pick up ha-bridge, they want me to update the Hue Bridge software, if I skip this and go to Siri Voice control in the app it tries to pair my phone with the bridge but says device not found etc. So I am guessing I need a better 3rd party app thats not as fussy. Much appreciated

@bwssytems
Copy link
Owner

Which app are you using? I'll give it a try and see if I can do some debug.

@Ukhauk
Copy link

Ukhauk commented Sep 25, 2016

Both versions of the UK Philips Hue app. Hesperus, Eve and MyHome+. The Hue apps see ha_bridge and conplain that the firmaware needs updating. What apps are you using to add ha_bridge to homekit ?

@bwssytems
Copy link
Owner

I do not use Homekit, not an apple person. Just was looking for what apps do what to look at.

@bwssytems
Copy link
Owner

I have an updated jar to try: http://bwssystems.com/files/ha-bridge-3.1.0l.jar

@rodriguezst
Copy link

It still doesn't work with Apple Homekit for me but with the updated jar I got rid of those annoying messages prompting to update the bridge firmware version while using the official Hue app (v1) for Android /iOS.
Thanks!

As for the Hue for Android/iOS (v2) app, it detects the bridge just fine but then prompts you to define new rooms that cannot be created. I guess your project does not support this feature.

@peadard
Copy link

peadard commented Oct 18, 2016

Ok so bear with me for a tick. I have the same issue so I looked into an alternative way of getting this to work with HomeKit. Having this Hue Bridge setup I then setup the nfarina homebridge https://github.com/nfarina/homebridge. Once I had this up and running I installed the Hue accessory here: https://www.npmjs.com/package/homebridge-philipshue.
I then pointed the accessory to my bwssystems hue bridge and voila it discovered the bridge and all its accessories. Now while it is not a perfect way of doing it, it does mean that I only have to add my accessories in one place (bwssystems) and Alexa and Siri can both access them. I hope this made sense to you guys.

@rodriguezst
Copy link

Thanks @peadard!

I don't plan on using Homekit that much (more of an Android guy) but I'll do it your way to play a bit with Apple's Homekit

@bwssytems
Copy link
Owner

V3.2.0 has been release, see if that helps with home kit.

@rodriguezst
Copy link

V3.2.0 still doesn't work with HomeKit
After reading a bit about how HomeKit works I found out that it doesn't use the public Hue api.
Hue bridges with HomeKit support have another Apple's custom protocol implemented with a setup pin and Apple's Zeroconf (Bonjour).

I ended up installing nfarina's homebridge as @peadard suggested and everything works great. All my ha-bridge accessories are now available on Apple devices.

@bwssytems
Copy link
Owner

This is good news. Could you write up the instructions for this? Looks like it will be something to post for others.

Thanks

@bwssytems
Copy link
Owner

closing as the ha-bridge does not use the meethue.com website for remote control which Apple Homekit expects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants