Enable HomeKit and Auth Code for RaZberry

Discussions about RaZberry - Z-Wave board for Raspberry computer
Marcel
Posts: 6
Joined: 08 Dec 2014 01:14

Enable HomeKit and Auth Code for RaZberry

Post by Marcel »

Hello,

how I can enable HomeKit on the RaZberry and where I find the code for the RaZberry to authenticate as HomeKit Accessory?

Thx
Marcel
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Enable HomeKit and Auth Code for RaZberry

Post by PoltoS »

It is on automatically. Go in your iOS app ans search for accessories
leonmf
Posts: 44
Joined: 23 Oct 2014 02:59

Re: Enable HomeKit and Auth Code for RaZberry

Post by leonmf »

I'm confused. I have v2.0 installed on my Raspberry Pi and am using the Z-way app linked from the razberry homepage but I don't see any "accessories" section in the app.

Am I missing something obvious?
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Enable HomeKit and Auth Code for RaZberry

Post by PoltoS »

Z-Way App do not need any HomeKit stuff. Vise versa, HomeKit apps needs HimeKit support of RaZberry.

But there are almost no HomeKit apps yet.
Marcel
Posts: 6
Joined: 08 Dec 2014 01:14

Re: Enable HomeKit and Auth Code for RaZberry

Post by Marcel »

Hi PoltoS,

I have my own app (in development) and test it with the HomeKit Accessory Simulator.
Now I want to test the HomeKit functionality from the RaZberry.
I try to connect with some sample HomeKit apps and my own HomeKit app. But I can't fount the RaZberry :-/ .
Is there nothing to enable? Or is the newest version of the sigma chip needed?
And to connect finally to a HomeKit device, I need a Setup Code, normally in the format "123-45-678".
Where can I get it?

Thx
Marcel
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Enable HomeKit and Auth Code for RaZberry

Post by PoltoS »

Indeed, forgot that you need HomeKitGate module. It is in Peripherals group.

The code should be shown in the log:
[2014-12-10 02:46:39.772] [core] --- Starting module HomeKit Gate
[2014-12-10 02:46:39.783] [core] HomeKit PIN: 137-15-796

Also if you see an error:
[2014-12-10 02:42:04.639] [core] Error: Failed to announce DNS record
do this to solve it:
sudo sed -i -e'/AVAHI_DAEMON_DETECT_LOCAL/s/1/0/' /etc/default/avahi-daemon
sudo /etc/init.d/avahi-daemon restart
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Enable HomeKit and Auth Code for RaZberry

Post by pofs »

Just wanted to warn that HomeKit Gate module currently uses non-standard service type identifiers.

This is because HomeKit standard currently has a very limited set of possible service types (they have no sensors, no switches, etc.). The basic controls can be emulated using a Lightbulb or Wall plug services for now, but this doesn't look like a right way to go. But you're free to play with HK module sources :)

I believe Apple will add new service types in future updates of iOS SDK.
Tiptop
Posts: 56
Joined: 01 Mar 2013 13:50

Re: Enable HomeKit and Auth Code for RaZberry

Post by Tiptop »

How do you verify the functionality of the HomeKit Gateway module at all?
As far as I understood, there is no settings option for HomeKit within iOS - you at least need an app for bringing things to life.
I do fully understand that HomeKit is brand new and a lot of things are missing, so I do not expect much at the moment.
However: Was the implementation solely done using Apples HomeKit simulator or can we users already play with it in the real world? If yes, which app one should work?
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Enable HomeKit and Auth Code for RaZberry

Post by pofs »

@Tiptop, there's several projects on GitHub, you can search by "HomeKit" keyword.
None of them is actually usable in real life, but enough to play around :)
Tiptop
Posts: 56
Joined: 01 Mar 2013 13:50

Re: Enable HomeKit and Auth Code for RaZberry

Post by Tiptop »

@pofs:
Thanks for that hint! I have downloaded and compiled the projects 'HomeKitDemo' and 'BetterHomeKit'.
I can see the RaZberry HomeKit gateway advertisement in both apps, however, whenever I try to enter the PID which was shown in the z-way log, I get a connection error.
If I do exactly the same using Apple's HomeKit Accessory simulator, everything works as expected.
Do I miss something here?
Post Reply