Vera - Smarter Home Control Forum

General => General => Topic started by: Albeebe on April 10, 2015, 10:53:40 pm

Title: News about HomeKit and Vera
Post by: Albeebe on April 10, 2015, 10:53:40 pm
If you're interested in HomeKit and being able to control your Vera with Siri, please read on.

I successfully "hacked" together a way to control my Vera using Siri and HomeKit.

I'll start by getting this overwhelming excitement out before going into the technical details and what it means for you...

"Turn on my outdoor lights"
"Dim my outdoor lights to 20%"
"Lock my front door"

I actually got it working, and I'm just totally blown away at how incredible it is to control things using Siri. In fact, I can see myself walking up to my front door and using an Apple watch to tell Siri "Unlock my front door" and have it unlock within seconds. I now have a reason to get an Apple watch, just for this ability alone. You're laying on the couch and ready to watch a movie... lift up your arm and speak into your apple watch.... "Dim the lights to 10%". Woah, incredible. Up until now, I've been using an app to control things and you need to open an app, wait for a connection, go to the right screen, then tap on a light to control it. On my best days i can do that in 5 seconds, normally, 10-15 seconds.  With Siri... 3 seconds.

Moving on to where HomeKit and Vera currently stand...

The crappy news is that you probably won't see Vera including HomeKit anytime soon, if ever. Looks like Apple wants HomeKit enabled things like light switches, light bulbs, locks, etc... to have built in wifi or bluetooth so they can communicate directly with your iPhone on the same WiFi network, or if you're not on the same network, an Apple tv will act as a bridge between your devices and your iPhone while your away from your house. Not only that, each HomeKit enabled product needs to be certified by Apple.

Apple said that devices that don't support HomeKit can take advantage of HomeKit by using a bridge. Unfortunately it looks like the only devices that are allowed to be "bridged" are devices that report things like a motion detector, or a temperature sensor. You cannot bridge devices that control things like a lock, or a light switch, or a thermostat. LAME! Vera cannot legally get around this, because Apple wont certify them, and if Vera were to circumvent Apple and implement HomeKit on their own, they would likely get sued.

Why would they get sued, and how can you circumvent Apple to get Vera to work with HomeKit?

Bear with me as i'm still learning the details of how this all works. Basically Apple has created the HomeKit Accessory Protocol. This protocol is how all HomeKit devices, bridges, and your iPhone communicate with each other. The only way to get the documentation on how this protocol works is to pay a fee to apple, sign an NDA, and join the MFI (Made for iPhone?) program. If you try to reverse engineer the protocol, my understanding is that you would be breaking the law, specifically the DMCA. If someone reverse engineers the protocol, and writes a program that uses the protocol, is that illegal? That i don't know. So if Vera implements the HomeKit Accessory Protocol because they reverse engineered it, i think Apple would shut that down real quick.

How did you get Vera to work with HomeKit?

Ok so this is probably what you want to know. Some smart people reverse engineered the protocol and wrote some code to simulate HomeKit devices. Heres the project I found and got working https://github.com/nfarina/homebridge (https://github.com/nfarina/homebridge)

Basically you run this code on your computer while on the same network as your iphone. The code then allows you to simulate HomeKit devices, so that your iPhone will see them and allow you to control them. When you try to control one of these devices, the code gets notified that for instance, you want to turn on your bathroom light. From there, the code can take over and do anything you want.

What i was able to do is write some code that when a command comes into to control a light, i then send a command off to Vera to actually control the light. Its totally hacked together, but it works and proves that the ability to control your entire home using Siri and Vera is technically possible.

What does this mean for the Vera community

I'm writing this post because i just figured all this out and got a hacked together prototype working. I'm going to refine it so that everyone else can easily use it, no matter what your skill level is. I think i can make it so simple, it will take you under 2 minutes to get running. So follow this post and ill keep you updated over the weekend.
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 10, 2015, 11:54:51 pm
 Heres my video demonstrating using HomeKit and Vera (https://www.youtube.com/watch?v=wmn-MQG2s_o)
Title: Re: News about HomeKit and Vera
Post by: mda on April 11, 2015, 12:08:01 am
That would be wonderful. Thanks @Albeebe !
Title: Re: News about HomeKit and Vera
Post by: teonebello on April 11, 2015, 02:11:27 am
Should this become a plugin?
Great!
Title: Re: News about HomeKit and Vera
Post by: intveltr on April 11, 2015, 10:52:23 am
Awesome work!  Nice to see people are working hard to reverse engineer the protocol.  Apple need to be slapped around hard for their vision on home automation: the insistence on proprietary, licensed, closed protocols has the potential to set the state of the art back half a decade. 

Reading through some reports on the restrictions that Apple may place on HomeKit bridges, it seems to me that those restrictions are not as severe as all that.  The restricitons seem to be:
1) No locks
2) Any device that is capable of communicating directly through Homekit must do so, i.e. all WiFi and Bluetooth devices.

Also, there is work being done on "official" HomeKit bridges, such as this one: http://z-wavealliance.org/first-z-wave-to-apple-homekit-bridge-demonstrated/
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 11, 2015, 11:27:54 am
I don't know if zwave.me is making an official bridge, or just hacking something together. I would think they are just hacking it together.

My mind is really just blown away today as I've been processing all this homekit stuff and what it means.

I downloaded a homekit app and there was that light in my hallway that I was able to expose to homekit. That really blew me away. I used an app unrelated to Vera to control a light using Vera! Think about that... It means that Vera could just become a dumb box that exposes your devices to HomeKit and you could use an app that has nothing to do with any particular controller.

Someone's going to come along and make a slick app to control your home and it will work with Vera, SmartThings, HomeSeer etc...

That's just crazy yet so incredible.

As for Apple being restrictive and not completely opening it up, I can kind of feel why there may be a necessary reason for it but I'm just to new to all this to have all the facts.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: boojew on April 11, 2015, 11:29:14 am
Amazing! Would you mind posting your code?
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 11, 2015, 11:55:58 am
I honestly just hacked the code together and I was surprised it worked. I'm trying to find time this weekend to package it up so you can try it out.  Stay tuned.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: Z-Waver on April 11, 2015, 01:34:37 pm
I downloaded a homekit app and there was that light in my hallway that I was able to expose to homekit. That really blew me away. I used an app unrelated to Vera to control a light using Vera! Think about that... It means that Vera could just become a dumb box that exposes your devices to HomeKit and you could use an app that has nothing to do with any particular controller.
Perhaps I lack vision, but I'm not understanding your direction or gaol. The idea of Vera, to me, is to have a smart box that automatically controls devices of various makes and technologies. Vera does that to a very large extent right now.

With Vera, the light can be automated, completely. It can also be controlled by an app, if you really want to. It can also be controlled by voice, if Apple chooses to allow you to, which so far they seem not to.

I presume that you are aware of the fact that you can control any device under Vera by simply sending a HTTP GET request to Vera. Are you also aware that Vera can itself send HTTP requests to other devices, like WiFi devices and Bluetooth/Zigbee gateways to control other devices? Already, Vera is vastly more flexible than Homekit and can already control FAR more non-Z-Wave devices than Homekit can.

So, my question is; why would I or anyone want to turn my far more open and far more extensible home automation controller into a dumb box, that is then controlled(manually) by Homekit, or any smartphone app? My goal is automation while yours seems to be, as stated so far,  iPhone as a hand held remote control.
Title: Re: News about HomeKit and Vera
Post by: boojew on April 11, 2015, 01:38:14 pm
This doesn't preclude other automation- but rather allows manual intervention via Siri. Same as using an app. I have schedules for all my devices but regularly override them via an app. Doing this via Siri would be awesome.

If I were an android user, I'd be using tasker and various plugins to make be his happen. No difference.

Really looking forward to this
Title: Re: News about HomeKit and Vera
Post by: Z-Waver on April 11, 2015, 02:24:09 pm
@boojew - I agree with what you stated. Homekit supports Vera, then a Homekit app could be used as any other Vera app. However, this is contrary to @Albeebe who said:
It means that Vera could just become a dumb box that exposes your devices to HomeKit and you could use an app that has nothing to do with any particular controller.

He's talking about using Vera as an unintelligent gateway to Z-Wave devices and using a Homekit iPhone app for control and intelligence. His description, sounds, to me, like reinventing the wheel.
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 11, 2015, 04:09:09 pm
I guess what I meant was instead of relying on Vera (the company) to build a better UI or a better app or relying on 3rd party developers that have a Vera to build better Vera apps or cool things for people to use... With homekit (at least for us iOS users) you have the potential for a developer that has for example a SmartThings hub or a wink hub to build some awesome tools or apps that can be used by people that have a Vera or a Homeseer hub. 

I think what's possible here is that you could take all your scenes and logic out of Vera and instead put it into a homekit app.

Just to clarify my view on home automation, I have sensors and scenes and logic that automated everything without me having to do anything. However there's times when I'm in bed and I want to adjust the fan or I'm on the couch and want to dim the lights. Being able to tell Siri, turn the fan to 50% is so simple and easy vs using an app or getting up and going to a switch.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 11, 2015, 04:14:31 pm
I mean no disrespect to the Vera community and everything that people have contributed to making it an awesome system. Lots of crazy ideas are running through my head and I'm seeing glimpses of what could be possible but it's to early to connect the dots. I'm just thinking out loud :)


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: Z-Waver on April 11, 2015, 07:09:34 pm
I don't think anyone is taking any offense to anything and, if they are, well $%^ 'em. Keep right on posting your views.

I view home automation differently than you seem to. Especially when you say things like
I think what's possible here is that you could take all your scenes and logic out of Vera and instead put it into a homekit app.
Which is exactly the opposite of what I want and seemingly counter to home automation.

For me, Vera or any HA controller is the master and where the "brains"(scenes and logic) should reside. I think that the phone apps should send commands to the central controller, but the system should not be dependent on the smartphone in any what whatsoever.

If the logic is in the Homekit app, on your iPhone, and you lose the phone on a bus or drop it in water, what happens to your home automation? If the logic stays on a fixed controller in the house, phones can come and go, so can internet connections, but the house continues to function as it should.

I get that what you really want is to have the ability to tell Siri to do your bidding and I suppose that you now have that. But, moving the logic and control into a smartphone app doesn't make sense to me, though it would be great for Apple.

Title: Re: News about HomeKit and Vera
Post by: intveltr on April 11, 2015, 07:20:52 pm
I think what's possible here is that you could take all your scenes and logic out of Vera and instead put it into a homekit app.

There are good reasons for having both. There are home-bound scenes, like managing the heating, turning lights on and off when on holiday, and so on. The stuff that makes your home a smart home. These scenes necessarily run on your hub (vera) and not your smart phone: they need to work when you and you smart phone are away from home, but the wife & kids aren't.

But there are personal scenes as well. You have one to set the lights to movie mode. The kids have one for game mode. And your "get together with friends in the living room" scene may well differ from your wife's. That is where I see a role for scenes run from HomeKit instead of from the hub. Currently this is where Homekit is positioned, and it's a subset of the whole smart home architecture.
   
When it comes to integrating different home automation technologies, in my view that *must* take place at the hub, or in a "hub of hubs" (as OpenHAB calls itself). If not, hub centric scenes will not be possible. Perhaps we will see a Homekit based hub running on Apple Tv. But until then, there is still a role for Vera to handle the intellgent part of home automation. Someone mentioned a plugin for Vera to expose all devices attached to Vera to HomeKit. Architecturally, that is what needs to happen. If Apple disallows that, then they have missed the boat in my opinion.
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 11, 2015, 09:46:24 pm
Ok heres the code to try HomeKit with your Vera!

https://www.dropbox.com/s/6cfd1q4cwy8ssof/homekit.zip?dl=0 (https://www.dropbox.com/s/6cfd1q4cwy8ssof/homekit.zip?dl=0)

You'll need to install NodeJS on your machine, and it must be on the same network as your Vera

1. Unzip the file
2. Edit the app.js file and enter the IP address of your Vera on line 11
3. Go to the command line and cd into the directory that contains the unzipped files
4. Type: npm run start

This should run the homekit bridge, connect to your vera, and expose any lights, dimmable lights, and locks to HomeKit.

Next you need to download an app that lets you manage HomeKit devices. I found an app called MyTouchHome in the app store for $1.99 that lets you add HomeKit devices on your network to your "home" that you create in the app. Once you create a "home" you need to tap on the "+ Accessory" button. If everythings working, all your Vera devices will show up in the list.

Tap on a device and you'll be prompted to enter a password.  The password is ALWAYS going to be 03145154

*notes*
1. HomeKit only allows devices that have a unique name. If you have a bunch of lights called "ceiling light" only one of the lights will show up in the list.
2. Siri is a bit finicky so you might have to experiment by saying "TURN OFF CEILING LIGHT" or "TURN CEILING LIGHT OFF". If you create a room using HomeKit and add the device to a room try saying "TURN THE BATHROOM CEILING LIGHT OFF".  You have to play around with it.
3. I didn't test unlocking/locking doors but it should work. However i think you need to say things like "TURN ON THE FRONT DOOR LOCK" or "TURN OFF THE FRONT DOOR LOCK" instead of saying unlock the front door.

Good luck, let me know if it works for you. What I made is just a very super early alpha version so no guarantees.
Title: Re: News about HomeKit and Vera
Post by: TomBear on April 12, 2015, 01:41:19 am
Hi,

I cant get it working, there is a debug log:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'run', 'start' ]
2 info using npm@2.7.4
3 info using node@v0.12.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart VeraHomeKitBridge@0.0.0
6 info start VeraHomeKitBridge@0.0.0
7 verbose unsafe-perm in lifecycle true
8 info VeraHomeKitBridge@0.0.0 Failed to exec start script
9 verbose stack Error: VeraHomeKitBridge@0.0.0 start: `node app.js`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid VeraHomeKitBridge@0.0.0
11 verbose cwd /Users/**********/Desktop/homekit
12 error Darwin 14.3.0
13 error argv "node" "/usr/local/bin/npm" "run" "start"
14 error node v0.12.2
15 error npm  v2.7.4
16 error code ELIFECYCLE
17 error VeraHomeKitBridge@0.0.0 start: `node app.js`
17 error Exit status 1
18 error Failed at the VeraHomeKitBridge@0.0.0 start script 'node app.js'.
18 error This is most likely a problem with the VeraHomeKitBridge package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node app.js
18 error You can get their info via:
18 error     npm owner ls VeraHomeKitBridge
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

I?m using osx yosemite with latest nodejs installed from http://nodejs.org/ .
Title: Re: News about HomeKit and Vera
Post by: racarter on April 12, 2015, 06:21:17 am
Got the same error running on a Raspberry Pi 2
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 12, 2015, 09:52:56 am
Try this... Following the instructions to install HomeBridge at https://github.com/nfarina/homebridge

If you can get that installed and running, copy and paste the contents of my zip file into the homebridge directory and replace any file that it says exists.

Then try running it again and hopefully it works. Basically what I did was modify the HomeBridge code I found on GitHub so that it works with Vera


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: amg0 on April 12, 2015, 11:03:43 am
can VERA runs node.js, can we use VERA itself as the bridge ?
Title: Re: News about HomeKit and Vera
Post by: andrewgarfield on April 12, 2015, 03:49:18 pm
I was able to get the server running and the devices to show up in that app you recommended.  But whenever I tell siri to do anything she says it's been done but it hasn't.

And I get an error on the node console saying something like:
Error 'Error: connect ECONNREFUSED' turning the Dining room on/off:  undefined

Any suggestions?
Title: Re: News about HomeKit and Vera
Post by: andrewgarfield on April 12, 2015, 03:56:55 pm
I figured it out.  The default 10.0.0.20 IP is hard coded into the device file.  Once I changed this to my device's IP it worked like a charm.

Title: Re: News about HomeKit and Vera
Post by: andrewgarfield on April 12, 2015, 04:09:38 pm
Have to say this is an AWESOME first attempt!

It has some time to go before it's "ready" for less experienced hands (which I am actually one, as I know next to nothing about NodeJS), but this could be fully functional with a bit of work.

If you don't have one already, maybe create a repo on github so that people can download easily and contribute?
Title: Re: News about HomeKit and Vera
Post by: Albeebe on April 12, 2015, 08:04:46 pm
Awesome glad you got to experience it! I totally hacked it together to see if it was possible and I quickly put the code out for others to try out.  The entire thing needs to be scrapped and totally rebuilt from the ground up. I think I'll try and do that this week and get it setup on GitHub


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: andrewgarfield on April 13, 2015, 03:03:47 pm
Yeah, it's great.  I'm going to continue to run what you have right now until newer code is available.

Once it's on github I'll see if i can contribute to it.  Can't guarantee anything (full time job, wife, two kids, etc) but it's something I'm interested in doing.  I had previously written the SiriProxy plugin that allowed voice control (before iOS 7 changed the Siri protocol) so i'm somewhat familiar with this kind of work.

Thanks again!

Title: Re: News about HomeKit and Vera
Post by: markbawden on April 13, 2015, 06:18:35 pm
Ok, I've not used Siri, but I've knocked together a really simple Apple watch app that controls my lights, heating and scenes and TV via Vera. if you can programme lua or JavaScript you can use swift and interface builder and do this in about 30 mins. Most of it is hard coded for my house, but it would be trivial for someone to make it universal.  Works great in the emulator, can't wait to see it running on my watch when it arrives.

Home kit looks great as a glue to make it easier to get other devices working - that can only be a good thing - I gave up on micasaverde properly supporting my wave thermostat after about a year of owning it and rolled my own. Apple home kit can only benefit the HA scene. probably like many others on this site I haven't touched Vera's interface to actually control stuff for years - the exception being PLEG which finally filled a gap Vera had from day one - one that micasaverde should have filled. All controls are done via iPhone app, or wall panels. Vera is just the dumb box in my loft.
Title: Re: News about HomeKit and Vera
Post by: shay on April 13, 2015, 10:46:46 pm
Also, there is work being done on "official" HomeKit bridges, such as this one: http://z-wavealliance.org/first-z-wave-to-apple-homekit-bridge-demonstrated/
Is  Z-Way a typo?
Title: Re: News about HomeKit and Vera
Post by: intveltr on April 15, 2015, 08:44:56 am
Their gateway software is called Z-Way I think. 
Title: Re: News about HomeKit and Vera
Post by: Jacob on April 15, 2015, 01:35:08 pm
Gents,

As no programmer I miss the competence to produce an application.
So I did use the SiriProxy by Plamoni until switching to IOS7 and had enormous fun with it.
Also I think the potential of these possibilities may in general be underestimated.
Probably building a legal bridge may be questionable because of license issues?.

Somewhere in the Apple introduction on Homekit it is specifically mentioned it interfaces with Apps. (software)
Verification of my assumption that an App developer can include Homekit would be appreciated.
Possibility to request Siri to turn on a light via e.g. Homewave if intveltr manages to incorporate it in his great App would be fantastic
 ;)

Jacob
Title: Re: News about HomeKit and Vera
Post by: boojew on April 16, 2015, 09:43:54 pm
Got this working with some lights - but only to turn them on. For some reason - siri doesnt seem to understand "turn off" for me.. which is annoying to say the least. Also, it complains it cant talk to my lock, but the lock and unlock unfunction appear to be fine and if I call them manually they work. Going to see if I can hunt down the issue..

oh and yes. There is an artifact in the code. In the accessories files, the IP is hard coded. This should be changed to the variable from app.js
Title: Re: News about HomeKit and Vera
Post by: rstrouse on April 16, 2015, 10:37:05 pm
siri doesnt seem to understand "turn off" for me.. which is annoying to say the least.
Yeah I got that same problem with women.
Title: Re: News about HomeKit and Vera
Post by: pepe6859 on May 03, 2015, 12:23:19 pm
I guess what I meant was instead of relying on Vera (the company) to build a better UI or a better app or relying on 3rd party developers that have a Vera to build better Vera apps or cool things for people to use... With homekit (at least for us iOS users) you have the potential for a developer that has for example a SmartThings hub or a wink hub to build some awesome tools or apps that can be used by people that have a Vera or a Homeseer hub. 

I think what's possible here is that you could take all your scenes and logic out of Vera and instead put it into a homekit app.

Just to clarify my view on home automation, I have sensors and scenes and logic that automated everything without me having to do anything. However there's times when I'm in bed and I want to adjust the fan or I'm on the couch and want to dim the lights. Being able to tell Siri, turn the fan to 50% is so simple and easy vs using an app or getting up and going to a switch.


Fantastic!!! That what you said is what at least Im looking for since long ago. My VeraLite is working seamless, but, I miss that, I miss SIRI when laying on the couch and need to send the window shutter down to kill sun refletion, then I need to open VeraMate and bla, bla, bla... SIRI is missing there!!!! Nothing like that for those specific moments. Hey, I use reading glasses hehehehehe

Nice work, keep on going!!!


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: mda on May 11, 2015, 03:41:35 am
Hi @Albeebe

I feel like I am close to getting this working, but just not quite there yet. Can you help me out please?

I tried downloading your .zip and following the instructions, but the sever would not start.

Then I installed HomeBridge per the instructions and i am able to get the server running (the myTouchHome iOS app sees some demo Accesories in it).

If i copy everything from your .zip into my homebridge folder (replacing the files it asks to replace) the server will not start:

However, if i replace everything but /lib with your version (editing app.js to have my vera's IP), the server does start and all my Vera lights etc are listed in console output, though only some are listed in myTouchHome and trying to turn them on/off results in a timeout.

Code: [Select]
homebridge mda$ npm run start

> VeraHomeKitBridge@0.0.0 start /Users/mda/homebridge
> node app.js

Starting Vera HomeKit Bridge...
Create accessory: AV Closet Fan
TCP server accepting connection on port: 51826
HAP Server is listening

...

Create accessory: Master Bedroom Light
TCP server accepting connection on port: 52756
HAP Server is listening
Create accessory: Master Desk Light
TCP server accepting connection on port: 52818
HAP Server is listening

...

New Session 54301
Server Connection Established 50329
Start Verify M1
Verify M1 Finished

...

{ characteristics: [ { aid: 1, iid: 10, value: true } ] }
Turning on the Master Desk Light
{ characteristics: [ { aid: 1, iid: 10, value: false } ] }
Turning off the Master Desk Light
Error 'Error: connect ETIMEDOUT' turning the Master Desk Light on/off:  undefined
Error 'Error: connect ETIMEDOUT' turning the Master Desk Light on/off:  undefined

What am i doing wrong?

Thanks. I really appreciate any help you can offer!
Title: Re: News about HomeKit and Vera
Post by: mda on May 11, 2015, 01:10:01 pm
Hi @Albeebe

I feel like I am close to getting this working, but just not quite there yet. Can you help me out please?


I figured it out. in Light.js, DimmableLight.js, and Lock.js the vera's IP was hardcoded. Replacing 10.0.0.20 with " + this.veraIP + " solved it.

@Albeebe is there a way to make this run Vera scenes? Thanks !
Title: Re: News about HomeKit and Vera
Post by: s4nup on May 14, 2015, 06:38:32 pm
Hi

Can someone help me set this up in laymans terms on a windows 7 machine.

I tried setting it up using the instructions and i got the same error that the other guys got on running the command.

I took a look as the homebridge setup and got crosseyed.

Thanks!!
Title: Re: News about HomeKit and Vera
Post by: rafale77 on May 14, 2015, 09:15:58 pm
can VERA runs node.js, can we use VERA itself as the bridge ?

I have been asking myself this same question for this bridge as well as the bridge for the amazon echo. I fear that the lack of memory on the vera would prevent the bridge from working... The other problem would be the port mapping. I am not sure what port it is talking to and it may conflict with a port the vera is already using.
Unless someone could create an app which would bridge them directly...
Title: Re: News about HomeKit and Vera
Post by: rafale77 on May 16, 2015, 02:54:38 am
I am also getting this error:

Any idea? I am suspecting that the file copy was made on a different OS causing the ELF compatibility problem. Were the ones for whom this worked run it on Windows?

Quote



[/share/Public/homekit] # npm run start

> VeraHomeKitBridge@0.0.0 start /share/MD0_DATA/Public/homekit
> node app.js

Starting Vera HomeKit Bridge...
/share/MD0_DATA/Public/homekit/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
          ^
Error: /share/MD0_DATA/Public/homekit/lib/HAP-NodeJS/node_modules/mdns/build/Release/dns_sd_bindings.node: invalid ELF header
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/share/MD0_DATA/Public/homekit/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

npm ERR! Linux 3.4.6
npm ERR! argv "/opt/bin/node" "/opt/bin/npm" "run" "start"
npm ERR! node v0.12.3
npm ERR! npm  v2.9.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@0.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@0.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /share/MD0_DATA/Public/homekit/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: new2me07 on May 17, 2015, 06:15:52 pm
i get the same error... tried multiple attempts. Replace home bridge data with home kit. doesn't really like it. Im on OS X fwiw. Tried on win7 machine didn't like it either. Tried all the suggestions listed so far, nothing helps.
Title: Re: News about HomeKit and Vera
Post by: TomBear on May 18, 2015, 12:22:06 am
I got it working installing node-v0.10.9.
Title: Re: News about HomeKit and Vera
Post by: s4nup on May 20, 2015, 06:23:12 pm
can anyone help me with getting this set up? mainly around the manual process.
i have a mac, windows machine and a rpi

thanks!
Title: Re: News about HomeKit and Vera
Post by: damianxd on May 24, 2015, 10:56:29 pm
For all the people having troubles with the mdns module, you need to have installed the following dependencies:
Code: [Select]
sudo apt-get install build-essential libavahi-compat-libdnssd-dev
Also, reinstall mdns with:
Code: [Select]
sudo npm install mdns
Title: Re: News about HomeKit and Vera
Post by: new2me07 on May 25, 2015, 06:38:35 am
I ended up getting it working (on a mac) by following the post and replacing the home bridge files with home kit files except the lib folder. use cd (change directory) command in terminal to switch to the home bridge directory then use npm run start. If you get no errors download the mytouchhome app and add devices. Maybe OP can change instructions to reflect this in 1st post.
Title: Re: News about HomeKit and Vera
Post by: damianxd on May 26, 2015, 09:11:41 am
Awesome work Albeebe :) it really works flawlessly and I could make it a service, so it is running permanently on my home server. Also, Siri works with Spanish command (I'm from Chile), including scenes.

 
Title: Re: News about HomeKit and Vera
Post by: Ramias on June 02, 2015, 06:33:37 pm
For all the people having troubles with the mdns module, you need to have installed the following dependencies:
Code: [Select]
sudo apt-get install build-essential libavahi-compat-libdnssd-dev
Also, reinstall mdns with:
Code: [Select]
sudo npm install mdns

I am still getting this error:

Code: [Select]
[/pi@raspberrypi ~/homebridge $ sudo npm run start

> VeraHomeKitBridge@0.0.0 start /home/pi/homebridge
> node app.js

Starting Vera HomeKit Bridge...

/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
          ^
Error: /home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/build/Release/dns_sd_bindings.node: invalid ELF header
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

npm ERR! VeraHomeKitBridge@0.0.0 start: `node app.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@0.0.0 start script.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.18.11-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "start"
npm ERR! cwd /home/pi/homebridge
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/homebridge/npm-debug.log
npm ERR! not ok code 0
code]
Title: Re: News about HomeKit and Vera
Post by: Ramias on June 03, 2015, 07:45:34 am
Well in case this helps anybody else, I'm running this on my Raspberry Pi.

I tried "npm rebuild" from the homekit directory.  Nothing.

Then npm rebuild from the lib directory.  Nothing.

Then npm rebuild from the /homekit/lib/HAP-NodeJS directory and viola.  npm run start (from homekit) now works.  Now to go test this out with my iPhone.
Title: Re: News about HomeKit and Vera
Post by: s4nup on June 03, 2015, 12:00:13 pm
Thanks guys. managed to get this to the next stage.

So i am able to see the devices from Vera on the App.
I have a mixture of Dimmable lights and Power Switches
Looking at a few items:
Master Bedroom Light - DimmableLight
Back Room Light - DimmableLight
Power Socket 1 - Light
Power Socket 2 - Light

(the above is when i get more info from the App)

Now i can use siri (and the app to switch on and off flawlessy) the Powersockets.

I can use the App to Dim the light from 0-100 with no issue. Siri however won't take a number Value. When i say "Dim Master bedroom light to 10%" Siri displays "Dim Master Bedroom Custom" any combination doesn't work..50%, 80% nothing.
Also if i ask to turn on the light, it accepts the command but does nothing...including being able to use the switch in the app.

Any ideas?
Title: Re: News about HomeKit and Vera
Post by: Ramias on June 03, 2015, 06:21:56 pm
Kind of awkward to say "turn on front door lock" (my device name is front door lock) to unlock the front door.  But it works.

Pretty cool
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 03, 2015, 11:30:14 pm
I've been trying to install this on my Synology server that stays running 24/7. I keep getting the following error:

Code: [Select]
DiskStation> npm run start

> VeraHomeKitBridge@0.0.0 start /volume1/homes/admin/homebridge
> node app.js

Starting Vera HomeKit Bridge...
/volume1/homes/admin/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
          ^
Error: /volume1/homes/admin/homebridge/lib/HAP-NodeJS/node_modules/mdns/build/Release/dns_sd_bindings.node: invalid ELF header
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/volume1/homes/admin/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

npm ERR! Linux 3.10.35
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@0.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@0.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /volume1/homes/admin/homebridge/npm-debug.log

I did get it working on my mac though. The only problem i'm having is with dimmable lights. I believe because most dimmable LED lights don't have Instant feedback that its causing a problem with homekit. Sometimes the dimmable lights work but most of the time I receive this error:

Code: [Select]
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' changing the TV Light brightness:  undefined
Setting the TV Light brightness to 100%
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' turning the TV Light on/off:  undefined
Error 'Error: socket hang up' turning the Dining Lights on/off:  undefined
Error 'Error: socket hang up' turning the Dining Lights on/off:  undefined
Error 'Error: connect ECONNREFUSED' changing the TV Light brightness:  undefined
Title: Re: News about HomeKit and Vera
Post by: Jacesparks on June 04, 2015, 02:57:25 am
I can't get this to work either.

Tried every solution posted so far.  Here are my logs.  Any suggestions gladly welcome.

JaceSparkssMBP2:homekit jacesparks$ npm run start

> VeraHomeKitBridge@0.0.0 start /Users/jacesparks/Downloads/homekit
> node app.js

Starting Vera HomeKit Bridge...
/Users/jacesparks/Downloads/homekit/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
          ^
Error: Module did not self-register.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/jacesparks/Downloads/homekit/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@0.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@0.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jacesparks/Downloads/homekit/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 04, 2015, 10:37:35 am
I can't get this to work either.

Tried every solution posted so far.  Here are my logs.  Any suggestions gladly welcome.

*****

To get it working on my macbook pro I did the following:

Download the HomeKit zip file posted, edit the app.js file like stated with your vera's IP address and also edit all three of the accessories files with the updated ip address.

Install the Node.js package (do a google search and download the Mac package and install)

Follow these instructions in terminal

    $ git clone https://github.com/nfarina/homebridge.git
    $ cd homebridge
    $ git submodule init
    $ git submodule update
    $ npm install
    $ cd lib/HAP-NodeJS
    $ npm install

Once that is complete. go to your root home folder(using finder) and you should see the homebridge folder. Copy everything from the Home Kit folder above EXCEPT for the lib folder and paste into the Homebridge folder. When the popup comes up, click replace and apply to all files.

Now go back to terminal

$ cd homebridge   (if it doesn't move you back to the homebridge folder then just type cd)
$ npm run start

Everything should start and it should list all your devices.
Title: Re: News about HomeKit and Vera
Post by: iamfd on June 04, 2015, 12:27:47 pm
I suspect all the people that have these issues are using Windows? For the life of me, I cannot get this to work even after following the various steps, even to the point of installing Visual Studio and Python to try to fix the dependencies. I end up a little further in the steps, but still get the same errors as everyone else that is having problems. I've got a Raspberry Pi 2 on the way, so will give it another try once I get that.
Title: Re: News about HomeKit and Vera
Post by: Jacesparks on June 04, 2015, 12:55:46 pm

I suspect all the people that have these issues are using Windows? For the life of me, I cannot get this to work even after following the various steps, even to the point of installing Visual Studio and Python to try to fix the dependencies. I end up a little further in the steps, but still get the same errors as everyone else that is having problems. I've got a Raspberry Pi 2 on the way, so will give it another try once I get that.

I'm using a mac


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 05, 2015, 05:15:27 am
I just had a quick look at this and for those having errors and unable to get this to run, what are you editing the files with as I suspect this maybe your issue?

Title: Re: News about HomeKit and Vera
Post by: dlca1 on June 05, 2015, 05:45:24 am
Thanks for posting this Al Beebe. Pretty awesome.

Just FYI- This is what I've found when trying to run via siri on apple watch.

Apple Iphone > Siri -> Home Kit on Mac [Works]
Apple Watch -> MyHomeTouch App ->Home Kit on Mac [Works]

When I try to use Siri on Apple Watch, the Watch gives a message that says:
"I can help you control your home when you use handoff on your iphone"

Update: I did further research and it sounds like this is a limitation with the current Siri for Apple Watch.






Title: Re: News about HomeKit and Vera
Post by: Jacesparks on June 05, 2015, 09:28:06 am

I just had a quick look at this and for those having errors and unable to get this to run, what are you editing the files with as I suspect this maybe your issue?

Text Wrangler


Sent from my iPhone using Tapatalk
Title: News about HomeKit and Vera
Post by: Brientim on June 05, 2015, 03:00:32 pm
That shouldn't be an issue.
Can you try:
Follow these instructions in terminal

Download Home Kit, extract, modify the IP address, including the 3 device file (note IP appears twice in lights)
Delete the lib folder.

    $ git clone https://github.com/nfarina/homebridge.git

Home Kit folder above EXCEPT for the lib folder and paste into the Homebridge folder. When the popup comes up, click replace and apply to all files.


    $ cd homebridge
    $ git submodule init
    $ git submodule update
    $ npm install
    $ cd lib/HAP-NodeJS
    $ npm install

$ cd homebridge   (if it doesn't move you back to the homebridge folder then just type cd)
$ cd
$ npm run start

Everything should start and it should list all your devices.
Title: Re: News about HomeKit and Vera
Post by: iamfd on June 05, 2015, 03:26:41 pm
Hi Brientim,

I'm using Notepad ++ (on Windows 7) to edit the text files from the Homekit.zip file.

When I run: npm run start, it immediately fails looking for mdns.

Also your steps at the end, I think you have an extra "cd" in the command prompt which I don't think should be there.
-> $ cd npm run start

The steps look straightforward, but still no luck here for me.  :-\
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 05, 2015, 03:41:45 pm
That was a mistake in my post, I edited it.
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 05, 2015, 03:47:10 pm
I will hopefully try later today on a windows install - it is 0530 here.

Notepad++ should be no issue.

mDNS, is a multicast DNS service discovery which by default is not enabled Windows. However, it is part of iTunes. Therefore, for Windows you are probably going to need Apples Bonjour enabled

https://discussions.apple.com/thread/3780120

Title: Re: News about HomeKit and Vera
Post by: Ramias on June 05, 2015, 04:15:59 pm
So can this call scenes at all?  Or just binary devices like light switches and locks?

Thanks
Title: News about HomeKit and Vera
Post by: Brientim on June 05, 2015, 04:23:12 pm
Only the devices defined in the 3 device files
Title: Re: News about HomeKit and Vera
Post by: Jacesparks on June 05, 2015, 04:47:26 pm
That shouldn't be an issue.
Can you try:
Follow these instructions in terminal

Download Home Kit, extract, modify the IP address, including the 3 device file (note IP appears twice in lights)
Delete the lib folder.

    $ git clone https://github.com/nfarina/homebridge.git

Home Kit folder above EXCEPT for the lib folder and paste into the Homebridge folder. When the popup comes up, click replace and apply to all files.


    $ cd homebridge
    $ git submodule init
    $ git submodule update
    $ npm install
    $ cd lib/HAP-NodeJS
    $ npm install

$ cd homebridge   (if it doesn't move you back to the homebridge folder then just type cd)
$ cd
$ npm run start

Everything should start and it should list all your devices.

Did up to the last step in this section of your post:
   $ cd homebridge
    $ git submodule init
    $ git submodule update
    $ npm install
    $ cd lib/HAP-NodeJS
    $ npm install

And got these errors:
JaceSparkssMBP2:homebridge jacesparks$ npm install
npm WARN package.json VeraHomeKitBridge@0.0.0 No repository field.
npm WARN package.json VeraHomeKitBridge@0.0.0 No license field.
JaceSparkssMBP2:homebridge jacesparks$ cd lib/HAP-NodeJS
JaceSparkssMBP2:HAP-NodeJS jacesparks$ npm install
npm WARN locking Error: EACCES, open '/Users/jacesparks/.npm/_locks/node-persist-c4770429fe57ec12.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/jacesparks/.npm/_locks/node-persist-c4770429fe57ec12.lock failed { [Error: EACCES, open '/Users/jacesparks/.npm/_locks/node-persist-c4770429fe57ec12.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/jacesparks/.npm/_locks/node-persist-c4770429fe57ec12.lock' }
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Attempt to unlock /Users/jacesparks/homebridge/lib/HAP-NodeJS/node_modules/node-persist, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN locking Error: EACCES, open '/Users/jacesparks/.npm/_locks/mdns-a8434c1aaae695bd.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/jacesparks/.npm/_locks/mdns-a8434c1aaae695bd.lock failed { [Error: EACCES, open '/Users/jacesparks/.npm/_locks/mdns-a8434c1aaae695bd.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/jacesparks/.npm/_locks/mdns-a8434c1aaae695bd.lock' }
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Attempt to unlock /Users/jacesparks/homebridge/lib/HAP-NodeJS/node_modules/mdns, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN locking Error: EACCES, open '/Users/jacesparks/.npm/_locks/curve25519-82b2185e98ff661b.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/jacesparks/.npm/_locks/curve25519-82b2185e98ff661b.lock failed { [Error: EACCES, open '/Users/jacesparks/.npm/_locks/curve25519-82b2185e98ff661b.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/jacesparks/.npm/_locks/curve25519-82b2185e98ff661b.lock' }
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Attempt to unlock /Users/jacesparks/homebridge/lib/HAP-NodeJS/node_modules/curve25519, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN locking Error: EACCES, open '/Users/jacesparks/.npm/_locks/srp-aaa0c47227998e49.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/jacesparks/.npm/_locks/srp-aaa0c47227998e49.lock failed { [Error: EACCES, open '/Users/jacesparks/.npm/_locks/srp-aaa0c47227998e49.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/jacesparks/.npm/_locks/srp-aaa0c47227998e49.lock' }
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Attempt to unlock /Users/jacesparks/homebridge/lib/HAP-NodeJS/node_modules/srp, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN locking Error: EACCES, open '/Users/jacesparks/.npm/_locks/ed25519-ddbc09586cee0aff.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/jacesparks/.npm/_locks/ed25519-ddbc09586cee0aff.lock failed { [Error: EACCES, open '/Users/jacesparks/.npm/_locks/ed25519-ddbc09586cee0aff.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/jacesparks/.npm/_locks/ed25519-ddbc09586cee0aff.lock' }
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Attempt to unlock /Users/jacesparks/homebridge/lib/HAP-NodeJS/node_modules/ed25519, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jacesparks/homebridge/lib/HAP-NodeJS/npm-debug.log


Should I proceed or will it fail?
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 05, 2015, 05:00:53 pm
I would suggest you start over.
Install NodeJS again v0.12.4
Delete the current homebridge folder
Then follow up
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 05, 2015, 05:09:39 pm
If anyone has a clue on how to get this working on a synology NAS through SSH, that would be great.
Title: Re: News about HomeKit and Vera
Post by: Jacesparks on June 05, 2015, 05:13:03 pm
I would suggest you start over.
Install NodeJS again v0.12.4
Delete the current homebridge folder
Then follow up

I have done that twice already too. Hmmmm...   ??? :'(
Title: Re: News about HomeKit and Vera
Post by: Ramias on June 05, 2015, 05:38:02 pm
Only the devices defined in the 3 device files

I installed a Virtual Switch device that i wanted to call a scene but apparently it didn't recognize it either.
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 06, 2015, 03:53:23 am

I would suggest you start over.
Install NodeJS again v0.12.4
Delete the current homebridge folder
Then follow up

I have done that twice already too. Hmmmm...   ??? :'(
I am not going to get back to this today.

Try this:
$ cd homebridge
$ npm install stop.
This may take a awhile try  a restart
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 06, 2015, 05:27:59 am
Also in reference to lock permission see https://github.com/npm/npm/issues/4815
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 06, 2015, 03:42:13 pm
I fixed things up a bit so it'll treat a lock device named "Garage Door" as a garage door, and also added scene support. It assumes if you have on and off scenes, they end in " - On" and " - Off" and will build that into one, switch type device. Oh, and you don't have to edit each accessory file.

https://github.com/Hackworth/VeraHomeKitBridge

Feel free to send me pull requests.
Title: Re: News about HomeKit and Vera
Post by: aechelon on June 06, 2015, 04:20:38 pm
Hi Everyone,

For those of you who want to try this out on Windows, I've merged the sources, recompiled and packaged them against Node.js v0.10.33 (http://nodejs.org/dist/v0.10.33/node-v0.10.33-x86.msi) as part of this SourceForge project (https://sourceforge.net/projects/homebridgeverawin32/files/published/).
The current version incorporates all the suggestions from earlier in this thread (e.g. fix the hard-coded vera IP address.)

Here is a set of updated instructions based on Albeebe's post (http://forum.micasaverde.com/index.php/topic,31716.msg229780.html#msg229780) from 4/11:

1. If you have a version of Node.js other than v0.10.33 installed you will probably have to uninstall it.
2. Download and install the x86 version of Node.js v0.10.33 (http://nodejs.org/dist/v0.10.33/node-v0.10.33-x86.msi).   
3. Download and extract file homebridge-vera-win32.zip from SourceForge (https://sourceforge.net/projects/homebridgeverawin32/files/published/)
4. Edit the app.js file and enter the IP address of your Vera on line 11
5. Open a Node.js Command prompt
6. cd to the directory where you extracted the sources
7. Type: npm run start

This should run the homekit bridge, connect to your vera, and expose any lights, dimmable lights, and locks to HomeKit.

From here the instructions for configuring the MyTouchHome app are identical to Albeebe's post (http://forum.micasaverde.com/index.php/topic,31716.msg229780.html#msg229780).

Quote
Next you need to download an app that lets you manage HomeKit devices. I found an app called MyTouchHome in the app store for $1.99 that lets you add HomeKit devices on your network to your "home" that you create in the app. Once you create a "home" you need to tap on the "+ Accessory" button. If everythings working, all your Vera devices will show up in the list.

Tap on a device and you'll be prompted to enter a password.  The password is ALWAYS going to be 03145154

*notes*
1. HomeKit only allows devices that have a unique name. If you have a bunch of lights called "ceiling light" only one of the lights will show up in the list.
2. Siri is a bit finicky so you might have to experiment by saying "TURN OFF CEILING LIGHT" or "TURN CEILING LIGHT OFF". If you create a room using HomeKit and add the device to a room try saying "TURN THE BATHROOM CEILING LIGHT OFF".  You have to play around with it.
3. I didn't test unlocking/locking doors but it should work. However i think you need to say things like "TURN ON THE FRONT DOOR LOCK" or "TURN OFF THE FRONT DOOR LOCK" instead of saying unlock the front door.

While testing I ran into an issue while configuring MyTouchHome that required a reset of the configuration.
This can be done from Settings -> Privacy -> HomeKit -> Reset HomeKit Configuration.
You'll want to completely close down the app first as indicated by Apple (https://support.apple.com/en-us/HT201330) to be sure the configuration is properly reset.
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 06, 2015, 08:46:09 pm
I fixed things up a bit so it'll treat a lock device named "Garage Door" as a garage door, and also added scene support. It assumes if you have on and off scenes, they end in " - On" and " - Off" and will build that into one, switch type device. Oh, and you don't have to edit each accessory file.



https://github.com/Hackworth/VeraHomeKitBridge

Feel free to send me pull requests.
Tested MAC OS X  - Well done

Default Code 03145154

Download Home Kit,
Extract, modify the IP address in app.js
Delete the lib folder.

    $ git clone https://github.com/nfarina/homebridge.git

Home Kit folder above EXCEPT for the lib folder and paste into the Homebridge folder. When the popup comes up, click replace and apply to all files.


    $ cd homebridge
    $ git submodule init
    $ git submodule update
Copy HomeBridge files to applicable home bridge folders

    $ npm install
    $ cd lib/HAP-NodeJS
    $ npm install

$ cd homebridge 
$ npm run start
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 06, 2015, 09:21:49 pm
Thanks Brientim! I have instructions in my readme on how to set it up, which are less complicated than those instructions. You don't need to download homebridge, it has nothing to do with this project, the HAP-NodeJS submodule on the other hand is quite important and downloaded for you when doing a recursive git clone (If you forgot to run that, git submodule init & update will take care of it)

If my instructions aren't working on Ubuntu/Debian, let me know.
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 06, 2015, 09:29:01 pm
Thanks Brientim! I have instructions in my readme on how to set it up, which are less complicated than those instructions. You don't need to download homebridge, it has nothing to do with this project, the HAP-NodeJS submodule on the other hand is quite important and downloaded for you when doing a recursive git clone (If you forgot to run that, git submodule init & update will take care of it)

If my instructions aren't working on Ubuntu/Debian, let me know.

The other was tested for OS X... Therefore, slightly different processes to achieve the same aim.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 03:39:40 am
Hackworth,

I have gotten pretty far on my raspberry pi running Debian (Rasbian)

I am getting a strange error. When the Mytouchhome app tries to get add a device, if I use the 4 digit PIN from the config.json I get wrong password and a retry with the raspberry just repeating "Start Pair M1". If I use "03145154", the program crashes and I get the following error:

Start Pair M1
Start Pair M3
/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/srp/lib/srp.js:418
      throw new Error("client did not use the same password");
            ^
Error: client did not use the same password
    at Object.checkM1 (/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/srp/lib/srp.js:418:13)
    at Object.processPairStepTwo (/VeraHomeKitBridge/lib/HAP-NodeJS/Server.js:273:18)
    at Object.processPairSequence (/VeraHomeKitBridge/lib/HAP-NodeJS/Server.js:233:11)
    at IncomingMessage.<anonymous> (/VeraHomeKitBridge/lib/HAP-NodeJS/Server.js:38:17)
    at IncomingMessage.emit (events.js:107:17)
    at IncomingMessage.Readable.read (_stream_readable.js:373:10)
    at flow (_stream_readable.js:750:26)
    at resume_ (_stream_readable.js:730:3)
    at _stream_readable.js:717:7
    at process._tickCallback (node.js:355:11)

npm ERR! Linux 3.4.103
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /VeraHomeKitBridge/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 07, 2015, 03:46:12 am
anhman, try putting 03145154 as the pin in the config.json file. I'm not sure what the requirements are in terms of length or complexity? You may need to delete all the files under the persist folder after you make the change.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 04:07:59 am
I have tried that too without deleting any file and got the same error. Let me try this.

Edit: just tried and I am getting the same error indeed even after deleting the persist folder.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 07, 2015, 04:17:48 am
Odd. How about "031-45-154" ?
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 04:32:29 am
Odd. How about "031-45-154" ?

uhhh, it worked. really odd. It seems to be a format problem. Thanks!

Now how to make it reside at boot...
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on June 07, 2015, 11:20:33 am
Nice, I got this to work, it's pretty sweet other than a few issues.  Does anyone else have these problems?

1. Siri/Homekit doesn't think I have any lights installed.  I have both dimmable switches and regular switches.  However, if I say "Turn off Family Room lights", Siri responds that she can't find any lights.  However, if I say "Turn off Family Room" (without the term 'lights'), the lights turn off just fine.
2. Siri won't turn off dimmable switches with 'on/off' commands.  I have to say "Dim Living Room lights to 0%" to turn off or "Dim Living Room lights to 100%" to turn on.
3. Siri doesn't seem to recognize multiple garage doors.  When referencing one garage door through the MyTouchHome app, I can raise lower them individually, but if I ask Siri to do it, both of them go up and down simultaneously.

If anyone has figured out how to resolve these issues, please let me know.  Otherwise, it's pretty fun!
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 07, 2015, 04:16:30 pm
jasonkhonlaw, I've noticed Siri's a bit moronic when it comes to the exact verbiage, I've also noticed you have to say "Turn off living room" rather than "Turn off living room lights" and you have to say "dim" instead of "set" or she'll think there's nothing in the room. However, I've had no problems with asking her to turn off a dimmable light. I've noticed it can take awhile for the HomeKit database to sync up with Siri, you might try restarting your phone as well.

What are your two garage door's named?
Title: Re: News about HomeKit and Vera
Post by: Jacob on June 07, 2015, 04:43:44 pm
Hello gent's

Will the home bridge work in aan other language then english?

Jacob
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 07, 2015, 05:54:49 pm
Jacob, it should work fine. Siri may not work with HomeKit in your language yet, though. I'd suggest trying it and letting us know what you find.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 06:57:03 pm
Different languages: I think it should work. But you will have to name your devices accordingly so that Siri links the two together. Will test that at some point.
Dimmers: I have had no problem with my dimmers turning on and off either.
Garage Door: It keeps on saying it can't find any. It is very annoying. I am having to name my garage door completely differently to make my Linear GD00Z work. I seems to be recognized as a switch not as a door.
Door Lock: Able to turn on and off my lock as if it was a switch by calling it "door" Similar to the garage door situation.

Great work Hackworth. Thanks for making it easier.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 07, 2015, 07:29:52 pm
Okay, I've added the ability to name your garage doors in the config.json file, that should help people with more than one garage door. Anhman, what does your Linear GD00Z show up as in Vera? A door lock or something else?
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 09:00:17 pm
The GD00Z shows up under the latest UI7 as a on/off switch.

It uses the D_BinaryLight1.xml device file but the D_GarageDoor1.json json file so it actually displays a garage door icon.
Maybe I should try to change the device file?
Title: News about HomeKit and Vera
Post by: Brientim on June 07, 2015, 09:28:13 pm
Do not change your device file, it is correctly defined. A Garage Door should Category 1 Sub Cat 5.  You should be able to see this in the Advanced section variables.

http://ip_address:3480/data_request?id=user_data&output_format=xml

For more information, see wiki below:

http://wiki.micasaverde.com/index.php/Luup_UPNP_Files#Device_Categories
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 07, 2015, 09:52:00 pm
Anhman, it would seem Brientim is correct. Apparently my garage door plugin is wrong. I've pushed a quick and dirty hack that should make light switch style garage doors work, go ahead and try.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 10:00:06 pm
The vera definitely did not like the xml file change. It shut the device and created a new one with a new id#.
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 07, 2015, 10:03:53 pm
Anhman, it would seem Brientim is correct. Apparently my garage door plugin is wrong. I've pushed a quick and dirty hack that should make light switch style garage doors work, go ahead and try.

Or to use a different phrase, rapid development...
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on June 07, 2015, 10:18:15 pm
Are you using your garage doors though the Liftmaster plugin on the Vera?  Mine weren't working, so I used the LiftMaster accessory file included with HomeBridge.  At first, it would only open a single garage door, so I modified the script so I could pass in the ID of the opener.  Siri for some reason opens them both at the same time though, even if I specifically say "Open the 'Big Garage Door'".  Also, they show as 'open' all the time in the apps (Insteon, MyTouchHome).  In the Insteon app, it won't let me open/close it.  In MyTouchHome, it will, although it always shows 'open' by default.

If you guys are using it as imported from the Vera, what do you add to your config file to get them to work?

Thanks,

Jason
Title: Re: News about HomeKit and Vera
Post by: Jacesparks on June 07, 2015, 11:03:12 pm
Also in reference to lock permission see https://github.com/npm/npm/issues/4815

This fixed it!!!  I'M LIVE!  Thank you so much!  Definitely going to pick up a Raspberry Pi now.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 07, 2015, 11:32:33 pm
Anhman, it would seem Brientim is correct. Apparently my garage door plugin is wrong. I've pushed a quick and dirty hack that should make light switch style garage doors work, go ahead and try.

Got some new white hair. Somehow every time I test it, it throws my garage opener out of my vera: it says the device fails to configure. The only way I found to recover is to add device again and push the pairing button on Linear GD00Z. Sometimes I even have to reboot the vera and force a configure now to the vera and push the pairing button again. At some point, I thought the vera was too far from the GD00Z...
It is difficult how sending a commend to the vera to open the garage door would make this happen... I just used the name garage door... Not working.
Title: Re: News about HomeKit and Vera
Post by: iamfd on June 08, 2015, 01:34:37 am
Nice, I got this to work, it's pretty sweet other than a few issues.  Does anyone else have these problems?

1. Siri/Homekit doesn't think I have any lights installed.  I have both dimmable switches and regular switches.  However, if I say "Turn off Family Room lights", Siri responds that she can't find any lights.  However, if I say "Turn off Family Room" (without the term 'lights'), the lights turn off just fine.
2. Siri won't turn off dimmable switches with 'on/off' commands.  I have to say "Dim Living Room lights to 0%" to turn off or "Dim Living Room lights to 100%" to turn on.
3. Siri doesn't seem to recognize multiple garage doors.  When referencing one garage door through the MyTouchHome app, I can raise lower them individually, but if I ask Siri to do it, both of them go up and down simultaneously.

If anyone has figured out how to resolve these issues, please let me know.  Otherwise, it's pretty fun!

Strange! When I say "Turn off Family Room Light", then Siri shows "Turn off Family Room Light custom" and does indeed turn the light off. However, when I say "Turn off Living Room light" then Siri says it can't find the light. Will need to try it out by skipping the word "light" and see how that goes.
Title: Re: News about HomeKit and Vera
Post by: iamfd on June 08, 2015, 01:36:56 am
Thanks Hackworth! I got a hold of a Raspberry Pi 2 over the weekend and installed from your Git package and everything worked the first time, unlike my struggles before when trying it on Windows.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 01:50:45 am
@anhman, WTF??? My quick hack was to have it request both a door lock and switch state change, the Vera will just tell you there's no implementation if you used an urn that wasn't appropriate for that device ID. I haven't got a clue what's going on....

@iamfd, I've seen the "custom" thing too. I've also seen a weird flashing cursor half way off the screen? Doesn't seem to hurt anything. I've learned to just never say "light" to make Siri happy. Obviously we're finding out Siri + HomeKit still has some bugs to work out, it would be nice if I could use my shiny new Apple Watch but it just tells you to go use your iPhone for HomeKit commands. Sigh. Glad you got it working, and thanks!
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 02:03:02 am
@anhman, WTF??? My quick hack was to have it request both a door lock and switch state change, the Vera will just tell you there's no implementation if you used an urn that wasn't appropriate for that device ID. I haven't got a clue what's going on....


On the bright side, It is calling out the right device ID. Somehow it throws the Vera off. My guess is that the GD00Z must not like the door lock state change so it forces a reconfiguration.
One thing I noticed after I tried sending the command, the GD00Z acts really strange while trying to reconfigure (and failing) I can try to manually open and close and the switch appears to turn on and off on the Vera but the GD00Z does nothing. Maybe should go back to just a switch state change? The positive is really that it recognized the garage door and sent the command for the correct device to the Vera.
There is also needs to be a long period of time (maybe 10s) between the command is sent and a response from the device comes back to update the status for the door to actually complete the action. Not sure if it is part of the problem.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 02:07:46 am
You went back to the unmodified, out of the box XML file, right? This is what it would be sending:

Code: [Select]
http://IPADDRESS:3480/data_request?id=lu_action&output_format=xml&DeviceNum=DEVICEID&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1
Can you run that manually and tell me what happens?
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 02:20:24 am
Yes the XML file is the default D_binaryswitch one. When I tested the URL, the garage door opens.

If you could get the bridge to send this very command to the device which was succesfully recognized, it would be great.
Title: Re: News about HomeKit and Vera
Post by: cybrmage on June 08, 2015, 05:15:35 am
Do not change your device file, it is correctly defined. A Garage Door should Category 1 Sub Cat 5.  You should be able to see this in the Advanced section variables.

http://ip_address:3480/data_request?id=user_data&output_format=xml

For more information, see wiki below:

http://wiki.micasaverde.com/index.php/Luup_UPNP_Files#Device_Categories

Actually... A garage door should be Category 3 (a Switch) Subcategory 5 (Garage Door)... See http://wiki.micasaverde.com/index.php/Luup_Device_Categories (http://wiki.micasaverde.com/index.php/Luup_Device_Categories)
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 10:27:43 am
@anhman - What does this command do?

http://IPADDRESS:3480/data_request?id=lu_action&output_format=xml&DeviceNum=DEVICEID&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetTarget&newTargetValue=1

@cybrmage - Correct. VeraHomeKitBridge will handle Category 3 and Cat 5 devices named in the config.json. Or at least, is supposed to.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 11:46:13 am
@anhman - What does this command do?

http://IPADDRESS:3480/data_request?id=lu_action&output_format=xml&DeviceNum=DEVICEID&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetTarget&newTargetValue=1

@cybrmage - Correct. VeraHomeKitBridge will handle Category 3 and Cat 5 devices named in the config.json. Or at least, is supposed to.

This throws the GD00Z out of the Vera. I get a message that the lock is not configured and the Vera is trying to configure the lock.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 11:59:06 am
What the actual I will not swear? That should NOT happen. Okay, I'll have a fix together for you when I have a chance to work on it, I'll have to make it care about the actual urn of devices instead of simply categories.

Edit: Apparently this forum replaces curse words with "I will not swear." Cute.
Title: Re: News about HomeKit and Vera
Post by: Brientim on June 08, 2015, 12:36:00 pm
If there is an issue as being described above, I would recommend the lu_invoke syntax using the following process:

You can confirm what services, commands and html syntax are available using the command below in your browser:
http://<VeraIP>:3480/data_request?id=lu_invoke&DeviceNum=<DeviceID>
Replace <VeraIP> and <DeviceID> with details from you unit and device.
E.g. http://192.168.1.2:3480/data_request?id=lu_invoke&DeviceNum=402

Drill down as required, click the link and then copy the command from your browser command line.

Once you have the information,  and if it is different, as per the last post set the "newTargetValue=1" and do you experience the same outcome?


Title: Re: News about HomeKit and Vera
Post by: Brientim on June 08, 2015, 12:38:48 pm

Do not change your device file, it is correctly defined. A Garage Door should Category 1 Sub Cat 5.  You should be able to see this in the Advanced section variables.

http://ip_address:3480/data_request?id=user_data&output_format=xml

For more information, see wiki below:

http://wiki.micasaverde.com/index.php/Luup_UPNP_Files#Device_Categories

Actually... A garage door should be Category 3 (a Switch) Subcategory 5 (Garage Door)... See http://wiki.micasaverde.com/index.php/Luup_Device_Categories (http://wiki.micasaverde.com/index.php/Luup_Device_Categories)

Correct, good pick up. That was just rushing to type in a few minutes window before I had to go and do sometime else, but failed to insert the correct data.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 04:12:08 pm
@anhman - I just pushed a change, can you try it? I'm not home and can't test it, so hopefully I didn't break anything...
Title: Re: News about HomeKit and Vera
Post by: acn on June 08, 2015, 04:58:48 pm
Hi,

I'm trying to get the VeraHomeKitBridge instructions from GitHub (https://github.com/Hackworth/VeraHomeKitBridge) working on a Synology DS412+ (Arm x86), like some other users here but not very successfully.

So, as I can't use apt-get on Synology root, I tried installing ipkg and bootstraping my NAS (using this guide here (http://howden.net.au/thowden/2014/10/synology-installation-of-ipkg-dsm-yum-or-apt-get-equivalent/)) and  building 'cmake' as well (I used the instructions found here (http://www.domoticz.com/wiki/Install.txt), which are similar to those at GitHub).

In the end, I still get errors when trying to run 'npm install':

Code: [Select]
hive> npm install
npm WARN package.json VeraHomeKitBridge@1.0.0 No repository field.
 
> mdns@2.2.9 install /volume1/@appstore/VeraHomeKitBridge/node_modules/mdns
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `/volume1/@appstore/VeraHomeKitBridge/node_modules/mdns/build'
Makefile:1: /env.mak: No such file or directory
make: *** No rule to make target `/env.mak'.  Stop.
make: Leaving directory `/volume1/@appstore/VeraHomeKitBridge/node_modules/mdns/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/volume1/@appstore/Node.js/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.10.35
gyp ERR! command "node" "/volume1/@appstore/Node.js/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
cwd /volume1/@appstore/VeraHomeKitBridge/node_modules/mdns
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.10.35
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! mdns@2.2.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdns@2.2.9 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls mdns
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /volume1/@appstore/VeraHomeKitBridge/npm-debug.log
hive> make
make: *** No targets specified and no makefile found.  Stop.

Is there anything I can try?
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 05:05:11 pm
Based on my experience, I would recommend to build Node.js using the source code as opposed to downloading the pre-built ones. I struggled with it for a while and finally found out that node.js was the problem. Also make sure to follow Hackworth's instructions. The recursive cloning is key.

@Hackworth. I will test it when I get home this evening. Thanks!
By the way I am having similar although not as bad issues with my lock still being recognized as a switch as well. Anyway to force the name of it as well without changing the function called by Homekit (I am also having to call it Door, if I mention lock, siri says there is no lock registered)
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 05:23:04 pm
@anhman - I'm not entirely sure what you mean about the lock. I know Siri gets upset if I call things "lights" so it could simply be a bug with Siri right now. In MyTouchHome, does your door lock show up as a lock device?
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 05:36:46 pm
The lock shows up as a switch in mytouchhome. It is a lock in vera. Yeah siri struggles when you call anything light so I set up only one device with the name light and called all the other lights something else. Even Lighting works. category: 7 subCat:0

Edit: Actually I am not so sure and I will have to check. All the devices I added shows up to be the same color and I guess I need to look into the device options to see what they are recognized as?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 08, 2015, 05:55:49 pm
@anhman - Yeah, I would check MyTouchHome when you can, it should say in the top left of the device what it actually is. Anything in category 7 will be recognized as a lock. If it's showing up as a lock, then it's definitely a Siri bug.

Also, you can rename things in MyTouchHome if you don't want to rename them on the Vera side.
Title: Re: News about HomeKit and Vera
Post by: steets250 on June 08, 2015, 06:14:03 pm
Vera just posted on Facebook: http://www.apple.com/live/2015-june-event/b57350c7-ae81-4591-99f7-6037cde24fbd/?cid=li-us-b57350c7-ae81-4591-99f7-6037cde24fbd-im
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 06:29:06 pm
@anhman - I'm not entirely sure what you mean about the lock. I know Siri gets upset if I call things "lights" so it could simply be a bug with Siri right now. In MyTouchHome, does your door lock show up as a lock device?

By the way do I need to reinstall the app or can I just replace the modified files? The garagedoor.js and app.js? My understanding is that the device config gets uploaded to icloud. When I create a new bridge installation, it creates an mismatch and have some identification issues with what is in icloud.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 08, 2015, 11:17:20 pm
Looks like I just had to replace the accessory Js file. Well I have some bad news:
Found a couple of errors in the Garagedoor.js file:

Line 25. I had a crash using "_veraIP" and "device.id" in the syntax. I replaced them with "this.veraIP" and "this.device" respectively
looks like a copy paste error.

Line 31:
The next error I get is about the "urn". The error says it is undefined even though you defined it on line 27 through the query request
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 09, 2015, 03:12:44 am
@anhman - Very sorry for breaking things, I think I've got everything sorted.

So, assuming you installed it by doing a git clone, you can just do a git pull to grab the latest changes.

Oh, I've never touched node.js or javascript before Friday. Apparently node is asynchronous, who knew?
Title: Re: News about HomeKit and Vera
Post by: Brighters on June 09, 2015, 03:57:13 am
Awesome! thanks for this!

The next step would be to support more devices which will be available in iOS9. Also, supporting running scenes would be awesome, as well as supporting the 'house modes'.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 09, 2015, 04:04:50 am
@brighters - running scenes works great, get the code from my repo. They don't, however show up as scenes (just switches) on the iPhone since that's not the way Homekit works.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 09, 2015, 05:10:06 am
@anhman - Very sorry for breaking things, I think I've got everything sorted.

So, assuming you installed it by doing a git clone, you can just do a git pull to grab the latest changes.

Oh, I've never touched node.js or javascript before Friday. Apparently node is asynchronous, who knew?

Yoohoo, it works! Except close and open are reversed... I am fixing it now but you should fix it on github too: just have to switch 0 and 1 in line 33 of the json when defining the "unlocked" binary variable
Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 10:31:26 am
@ahnman I think you were right, I had to compile Node JS instead of getting it from a package. The script is now connecting with my Vera 2 controller, but it's breaking and I'm baffled on what to do.

For other Synology users, I think I'm near making this run, at least it's only giving me errors on the actual run. There are probably (most definitely) easier and better ways of doing this, but I'm no expert on using ssh/linux. If you want to try what I did read this pastebin link (http://pastebin.com/W3E7ZbHe), I'll post it here when/if I actually make it run.

So, below is the error I'm getting. I can see that it's reading something from Vera, because "Abrir Estores" (Portuguese for "open blinds") is actually a scene configured in Vera. After that it breaks:

Code: [Select]
root@hive:/home/VeraHomeKitBridge# npm run start

> VeraHomeKitBridge@1.0.0 start /home/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Create accessory: Abrir Estores
Cannot find secret key, creating One...
/home/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^
Error: dns service error: unknown
    at Error (native)
    at new Advertisement (/home/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/home/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
    at Object.Advertiser (/home/VeraHomeKitBridge/lib/HAP-NodeJS/Advertiser.js:33:26)
    at Object.Accessory (/home/VeraHomeKitBridge/lib/HAP-NodeJS/Accessory.js:42:15)
    at createHomeKitAccessory (/home/VeraHomeKitBridge/app.js:156:19)
    at createScene (/home/VeraHomeKitBridge/app.js:65:3)
    at /home/VeraHomeKitBridge/app.js:31:7
    at Array.forEach (native)
    at processScenes (/home/VeraHomeKitBridge/app.js:28:10)

npm ERR! Linux 3.10.35
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/VeraHomeKitBridge/npm-debug.log
root@hive:/home/VeraHomeKitBridge#

Do you have any suggestions?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 09, 2015, 10:45:54 am
@anhman - Ah but it's not that simple! It's one way for locks and the other way for binary switches. I've spent entirely too much time on garage doors, haha. I'll have to do some magic at some point.

@acn - Looks like the avahi daemon isn't running, maybe.
Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 11:53:29 am
@acn - Looks like the avahi daemon isn't running, maybe.

@Hackworth Many thanks, it wasn't running, I was able to repair it. Now 'npm run start' loads all devices/scenes, but I'm getting a new error in the end, on 'event.js':

EDIT 2: Nevermind, I changed the initial port in app.js from 50000 to 51100 because of it collides with some Synology service ports:

Code: [Select]
var nextPort = 50000;


Code: [Select]
root@hive:/home/VeraHomeKitBridge# npm run start

> VeraHomeKitBridge@1.0.0 start /home/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Create accessory: Abrir Estores
Cannot find secret key, creating One...
TCP server accepting connection on port: 50001
HAP Server is listening
Create accessory: Abrir Estores de Manh?
Cannot find secret key, creating One...
TCP server accepting connection on port: 50003
HAP Server is listening
Create accessory: Desligar TV
Cannot find secret key, creating One...
TCP server accepting connection on port: 50006
HAP Server is listening
Create accessory: Fechar Estores
Cannot find secret key, creating One...
TCP server accepting connection on port: 50010
HAP Server is listening
Create accessory: Open Bedroom Window
Cannot find secret key, creating One...
TCP server accepting connection on port: 50015
HAP Server is listening
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: listen EADDRINUSE
    at exports._errnoException (util.js:746:11)
    at Server._listen2 (net.js:1156:14)
    at listen (net.js:1182:10)
    at Server.listen (net.js:1267:5)
    at Object.startServer (/home/VeraHomeKitBridge/lib/HAP-NodeJS/TCPServer.js:31:15)
    at Object.publishAccessory (/home/VeraHomeKitBridge/lib/HAP-NodeJS/Accessory.js:13:28)
    at createHomeKitAccessory (/home/VeraHomeKitBridge/app.js:159:13)
    at createScene (/home/VeraHomeKitBridge/app.js:65:3)
    at /home/VeraHomeKitBridge/app.js:31:7
    at Array.forEach (native)

npm ERR! Linux 3.10.35
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/VeraHomeKitBridge/npm-debug.log


I guess that it's telling me that there is another process listening to that port (which port, which process?), and it's probably running on the underlying synology root session. I have tried rebooting, but that didn't make a difference. I'd appreciate any help on how to debug this.

Edit: could I change the scripts' listening port to something else?


Edit3:
One more thing though, I'm using the free Eve app (from Elgato) to add devices.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 09, 2015, 12:49:17 pm
@acn - I just pushed a change so it will only try to bind open ports. Update and give it a shot :)

You'll need to do an npm install after updating, I added a new dependency.
Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 01:14:15 pm
@acn - I just pushed a change so it will only try to bind open ports. Update and give it a shot :)

You'll need to do an npm install after updating, I added a new dependency.

Before doing the 'npm install' I tried running it and failed because it couldn't find that dependency. After doing that it's now breaking with this:

Code: [Select]
Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
/home/VeraHomeKitBridge/app.js:22
            processDevices(body.devices);
                               ^
TypeError: Cannot read property 'devices' of undefined
    at Request._callback (/home/VeraHomeKitBridge/app.js:22:32)
    at self.callback (/home/VeraHomeKitBridge/node_modules/request/request.js:373:22)
    at Request.emit (events.js:107:17)
    at Request.onRequestError (/home/VeraHomeKitBridge/node_modules/request/request.js:971:8)
    at ClientRequest.emit (events.js:107:17)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

npm ERR! Linux 3.10.35
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!

I've tried a rebuild as well, but it's the same. It gets stuck quite a while (more than a minute) after the warnings, before returning that error. :/

Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 01:21:21 pm
@Hackworth  Nevermind that last error. It was avahi-daemon that was stopped again.
Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 01:42:30 pm
Ok, so here I my instructions to run this HomeKit bridge to Vera on a Synology DS  (mine is a DS412+). Please bear in mind that I am far, far from an expert in this, there are probably hugely better and simpler ways of doing this, but here goes.

Github link: https://github.com/Hackworth/VeraHomeKitBridge

Edit: I'm now including a Docker virtual image install notes for the same thing, I think this way it's probably better to survive through DS upgrades. If you don't want to use Docker, just skip to the next code box:

Notes for installation using Docker:

Code: [Select]
Docker Container instructions (if you know how to use docker from the command line, skip this part, though I suggest using "tutum/debian:wheezy):

- Install and Run "Docker" from Synology DS's Package Manager
- Open Docker and search for the "tutum/debian:wheezy" image (couldn't get debian:latest to run) to create a new container. It will start transferring the image. When it finishes, double click that image to start the Assistant.
- Enter your container name (like "VeraHomeKitBridge") and select map ports automatically. I mapped port 49153 to port 22 to make SSH access static from there.
- I also selected to create a shortcut on my DS desktop.
- Start the container (click the icon on the desktop)
- Look for SSH password in the Log tab and use that to login (use localhost if you're within a SSH session to your DS):

ssh -p 49153 root@localhost


- Updates and Common installs:

apt-get install build-essential -y
apt-get install nano -y
apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libudev-dev -y
apt-get install apt-utils -y
apt-get install python -y
apt-get install git -y
apt-get install libavahi-compat-libdnssd-dev -y

(in case you get conflicts:)
apt-get dist-upgrade

- Install NodeJS (will take some time. Change dir if you want, and/or change v0.12.4 to whatever you want, if you specifically need a different one):

cd /home/
git clone https://github.com/joyent/node.git
cd node
git checkout v0.12.4
./configure --openssl-libpath=/usr/lib/ssl
make
make install
node -v
npm -v

 - You should now be able to verify this:
node -v
  v0.12.4
npm -v
  2.10.1

 - Install VeraHomeKitBridge:

  cd /home/
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
cd VeraHomeKitBridge
npm install
cd lib/HAP-NodeJS
npm install
cd -

 - Make these changes:
  In '/home/VeraHomeKitBridge/config.json': change IP address to your Vera's
  In '/etc/avahi/avahi-daemon.conf' comment out 'rlimit-nproc = 3' (i.e. change to '#rlimit-nproc = 3')
  In '/etc/default/avahi-daemon' change
AVAHI_DAEMON_DETECT_LOCAL=1
to
AVAHI_DAEMON_DETECT_LOCAL=0

 - Fix avahi-daemon (use 'service avahi-daemon status' to see if it's running):
/etc/init.d/dbus restart
apt-get install --reinstall avahi-daemon
service avahi-daemon start

 - Remember that to restart avahi-daemon you can use 'service avahi-daemon restart', this may solve some dns issues.

 - Test run:

  cd /home/VeraHomeKitBridge
  npm run start
  (Or)
  node app.js

 - Make it run in the background with pm2 (this thing is very cool!):

  npm install pm2 -g
  cd /home/VeraHomeKitBridge/

  [Check if avahi-daemon is running:]
service avahi-daemon status

  [Start the nodejs script with:]
pm2 start app.js

  [check if the app is running:]
  pm2 show 0

  [check if the output log looks ok with:]
  tail /root/.pm2/logs/app-out-0.log

  [Done! You can close your terminal sessions, it should keep running in the background!]


Notes for installation without using Docker:

Code: [Select]
For Synology users, I've successfully been able to run the package with the provided instructions.
So my understanding of this (I'm no expert) is that we're running a debian "session" where we'll install VeraHomeKitBridge:

-  Install the following packages from the SynoCommunity repository:
   > Python
   > Debian Chroot
-  Run Debian Chroot and wait status: Installed. If it doesn't happen, reboot your DS
-  Open Control Panel Synology and go to Terminal / SNMP. Tick SSH to it.
-  Open SSH terminal session, login with root@yourDSnameOrIP and password of your Admin account from Synology.
-  Enter the following commands via SSH session:

   /var/packages/debian-chroot/scripts/start-stop-status chroot

   (note: in case of need use nano instead of vi, vi didn't let me get back to the command line)

- This will open a new root session. Configuring Debian Chroot locales (one-time config):

aptitude update
aptitude upgrade
aptitude install locales
dpkg-reconfigure locales
  > select there whateverYourLanguageIS.UTF-8 UTF-8 (scroll with the arrow key) and go to OK (Tab key) (enter) -> I chose C.UTF-8
  dpkg-reconfigure tzdata
  > Select best option

       - Now installing common packages:

apt-get install build-essential -y
apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libudev-dev
apt-get install git
apt-get install build-essential libavahi-compat-libdnssd-dev
apt-get install python     

- In case of conflicts you can use:
  apt-get dist-upgrade
             and/or
                  aptitude full-upgrade

- I had a lot of trouble with upgrading nodejs from 0.10 to 0.12, this solved it:

git clone https://github.com/joyent/node.git
cd node
git checkout v0.12.4 (or the version you want to build)
./configure --openssl-libpath=/usr/lib/ssl
make
make install
node -v
npm -v

- You should now have this:
node -v
  v0.12.4
npm -v
  2.10.1


- Now for the VeraHomeKitBridge, which I choose to install at /home (don't know if this is ok or not):

git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
cd VeraHomeKitBridge
npm install
cd lib/HAP-NodeJS
npm install
cd -

- Edit config.json accordingly (change IP address).


- I also had to run this to resolve some errors:

npm install mdns

(tip from @dlca1) - To repair avahi-daemon, change '/etc/avahi/avahi-daemon.conf' from
  rlimit-nproc = 3
To
  #rlimit-nproc = 3

- This might help as well with avahi errors, run 'nano /etc/default/avahi-daemon' and change the line:
AVAHI_DAEMON_DETECT_LOCAL=1
to
AVAHI_DAEMON_DETECT_LOCAL=0

- If you still have issues with avahi (use 'service avahi-daemon status' to see if it's running) try this:
/etc/init.d/dbus restart
apt-get install --reinstall avahi-daemon

- Issue (need to check again if it's still an issue): after reboot I had to to repair avahi-daemon again.

- And after this it should start with:
npm run start

 - Make it run in the background with pm2 (this thing is very cool!):

  npm install pm2 -g
  cd /home/VeraHomeKitBridge/

  [Check if avahi-daemon is running:]
service avahi-daemon status

  [Start the nodejs script with:]
pm2 start app.js

  [check if the app is running:]
  pm2 show 0

  [check if the output log looks ok with:]
  tail /root/.pm2/logs/app-out-0.log

  [Done! You can close your terminal sessions, it should keep running in the background!]


- (untested, my notes to test, don't try it if you don't know what you're doing) To run it in the background and on boot, doing this on the DS's terminal shell (not chroot):
Create this file:
vi /usr/syno/etc/rc.d/S99chrootDebian.sh

(which process to kill??) Paste this script inside:

case $1 in
start)
chroot /usr/local/debian-chroot/var/chroottarget su - root -c "/home/VeraHomeKitBridge/pm2 start app.js"
;;
stop)
pkill pm2*
;;
*)
echo "Usage: $0 [start|stop]"
;;
esac

Save the file and:
chmod 755 /usr/syno/etc/rc.d/S99chrootDebian.sh






PIN code for devices: 031-45-154

Again, I added Scenes to my HomeKit "home" using the "Eve" app, that is available for free on the App store. It read the "Lights - On" & "Lights - Off" scene types as one entry only.

I have yet to understand if it runs in my native language or not (Portuguese), as I'm not finding any good replies from Siri (does anyone know where I could find HomeKit commands for other languages other than English?).

In English it does what it's meant to do just fine!

And it's awesome, thanks @Hackworth, @Albeebe, @anhman and everyone else for this! How cool is this, my old Vera 2 is actually doing something pretty neat! :D
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 09, 2015, 03:41:12 pm
Moving on to the door lock. I have a Yale lock which is seen as a lock by both the Vera and MyTouchHome. It only responds to switch commands though with Turn on and Turn off. It seems like Door.js is not active...

I checked the Vera commands available and it responds to both lock and switch commands. Somehow Siri still still sees it as a switch even though the bridge is reporting it as a lock.

It also seems like dimmers are not being recognized by Siri although they are being reported correctly by the bridge. Or maybe I am not sure how to set brightness with siri.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 09, 2015, 04:32:47 pm
If it's showing up as a lock in MyTouchHome then everything's working correctly. The syntax I've used for dimmable lights is "dim the kitchen to 20 percent"
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 09, 2015, 04:50:09 pm
Well, for the lock it isn't that siri tries. It keeps on telling me I don't have such a device. What name did you use? Changing the name on my touch home also did nothing for me. Somehow I always have to change it on the vera. Maybe I don't leave enough time in between?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 09, 2015, 08:18:53 pm
For those that want to see what this looks like, here's me turning on a scene via my wall mounted iPad from 10 or so feet away: https://youtu.be/_dSpb_GF6AY (https://youtu.be/_dSpb_GF6AY)
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 09, 2015, 09:02:37 pm
Ok, so here I my instructions to run this on a Synology DS  (mine is a DS412+). Please bear in mind that I am far, far from an expert in this, there are probably hugely better and simpler ways of doing this, but here goes:

For Synology users, I've successfully been able to run the package with the provided instructions.
So my understanding of this (I'm no expert) is that we're running a debian "session" where we'll install VeraHomeKitBridge:

-  Install the following packages from the SynoCommunity repository:
   > Python
   > Debian Chroot
-  Run Debian Chroot and wait status: Installed. If it doesn't happen, reboot your DS
-  Open Control Panel Synology and go to Terminal / SNMP. Tick SSH to it.
-  Open SSH terminal session, login with root@yourDSnameOrIP and password of your Admin account from Synology.
-  Enter the following commands via SSH session:

      /var/packages/debian-chroot/scripts/start-stop-status chroot


      (note: in case of need use nano instead of vi, vi didn't let me get back to the command line)


   - This will open a new root session. Configuring Debian Chroot locales (one-time config):

      /var/packages/debian-chroot/scripts/start-stop-status chroot
      aptitude update
      aptitude upgrade
      aptitude install locales
      dpkg-reconfigure locales
        > select there whateverYourLanguageIS.UTF-8 UTF-8 (scroll with the arrow key) and go to OK (Tab key) (enter) -> I chose C.UTF-8
       dpkg-reconfigure tzdata
        > Select best option

      apt-get install build-essential -y
      apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libudev-dev
      apt-get install git
      apt-get install build-essential libavahi-compat-libdnssd-dev
      git clone git://github.com/ry/node.git
 I'm having trouble here. The code git clone git://github.com/ry/node.git responds with node directory already exists. I tried deleting the directory and then I was successful at executing this command.
   - In case of conflicts you can use:
        apt-get upgrade --full-resolver
I get this error E: Command line option --full-resolver is not understood

   - I had a lot of trouble with upgrading nodejs from 0.10 to 0.12, this solved it:

      git clone https://github.com/joyent/node.git
fatal: destination path 'node' already exists and is not an empty directory.
      cd node
      git checkout v0.9.5 (or the version you want to build)
      ./configure --openssl-libpath=/usr/lib/ssl
/usr/bin/env: python: No such file or directory
      make
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
make: python: Command not found
python ./configure
make: python: Command not found
Makefile:53: recipe for target 'config.gypi' failed
make: *** [config.gypi] Error 127
      make install
Same error as above
      node -v
bash: node: command not found
      npm -v
bash: npm: command not found

    - You should now have this:
      node -v
        v0.12.4
      npm -v
        2.10.1

Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 09:08:15 pm
@C7Z51, two things: I guess you don't have python running, and also i left a command that shouldn't be there; that's the first git clone. Remove that one and consider only the second one (git clone https://github.com/joyent/node.git).
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 09, 2015, 09:10:49 pm
@C7Z51, two things: I guess you don't have python running, and also i left a command that shouldn't be there; that's the first git clone. Remove that one and consider only the second one (git clone https://github.com/joyent/node.git).

I have Python, Python Module and Python 3 running. I'll try a restart.
Title: Re: News about HomeKit and Vera
Post by: acn on June 09, 2015, 09:20:12 pm
Try running  "which python" to check it is running correctly, it should return the path where it is. If so maybe add it to the environ path or create a symlink ...

As for resolving conflicts I can't remember which was the correct command, but "apt-get dist-upgrade" and "aptitude full-upgrade" should suffice.
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 09, 2015, 09:34:17 pm
Here is what I get when I run which python:

DiskStation> /var/packages/debian-chroot/scripts/start-stop-status chroot
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
root@DiskStation:/# git clone https://github.com/joyent/node.git
fatal: destination path 'node' already exists and is not an empty directory.
root@DiskStation:/# cd node
root@DiskStation:/node# ./configure --openssl-libpath=/usr/lib/ssl
/usr/bin/env: python: No such file or directory
root@DiskStation:/node# which python
root@DiskStation:/node#

It just goes to the next line and is blank
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 09, 2015, 09:41:15 pm
Exiting Debian Root and running the commands worked until the configure command - see below, was this correct?

root@DiskStation:~/node# exit
exit
DiskStation> git checkout v0.9.5
fatal: Not a git repository (or any of the parent directories): .git
DiskStation> git clone https://github.com/joyent/node.git
Cloning into 'node'...
remote: Counting objects: 142510, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 142510 (delta 1), reused 0 (delta 0), pack-reused 142507
Receiving objects: 100% (142510/142510), 124.45 MiB | 7.19 MiB/s, done.
Resolving deltas: 100% (105198/105198), done.
Checking connectivity... done.
Checking out files: 100% (11994/11994), done.
DiskStation> cd node
DiskStation> git checkout v0.9.5
Checking out files: 100% (11197/11197), done.
Note: checking out 'v0.9.5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 01994e8... 2012.12.30, Version 0.9.5 (Unstable)
DiskStation> ./configure --openssl-libpath=/usr/lib/ssl
Node.js configure error: No acceptable C compiler found!

        Please make sure you have a C compiler installed on your system and/or
        consider adjusting the CC environment variable if you installed
        it in a non-standard prefix.
       
DiskStation> make
-ash: make: not found
DiskStation> make install
-ash: make: not found
DiskStation>
Title: Re: News about HomeKit and Vera
Post by: dlca1 on June 09, 2015, 11:17:04 pm
@ACN- thanks for sharing the synology install notes.

Besides the tips you shared, do you remember doing anything else to fix the avahi-daemon issues? I've tried all those tips, but am still getting similar errors you initially reported.

Thanks in advance


*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>

Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 10, 2015, 12:03:55 am
@ACN- thanks for sharing the synology install notes.

Besides the tips you shared, do you remember doing anything else to fix the avahi-daemon issues? I've tried all those tips, but am still getting similar errors you initially reported.

Thanks in advance


*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>



These are not errors. They are warnings and are normal. If it is hanging at this stage, it is because it cannot find the vera. Either your vera is off or you did not put the correct ip address of the vera in the config file.
Title: Re: News about HomeKit and Vera
Post by: dlca1 on June 10, 2015, 07:18:48 am
Finally got it working on synology 412+ using the tips shared by @acn

In case anybody else is running into crashes at launch due to some DNS/avahi errors, the following worked for me.

remove 'rlimit-nproc = 3' from /etc/avahi/avahi-daemon.conf

Found from links at
https://github.com/stephen/airsonos/issues/22
https://github.com/lxc/lxc/issues/25

Thank you @anhman, @acn, @albeebe, @hackworth and everybody else to get this working.

@ACN- thanks for sharing the synology install notes.

Besides the tips you shared, do you remember doing anything else to fix the avahi-daemon issues? I've tried all those tips, but am still getting similar errors you initially reported.

Thanks in advance


*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>



These are not errors. They are warnings and are normal. If it is hanging at this stage, it is because it cannot find the vera. Either your vera is off or you did not put the correct ip address of the vera in the config file.
Title: Re: News about HomeKit and Vera
Post by: acn on June 10, 2015, 07:49:22 am
root@DiskStation:/node# which python
root@DiskStation:/node#

It just goes to the next line and is blank

Hi, this is what you should see:

Code: [Select]
root@hive:/home/VeraHomeKitBridge# which python
/usr/bin/python

When you exit debian chroot you'll all the other modules working, but outside debian. I cannot help you with running this script on the basic Synology shell; that's what I tried at first, but after too many errors and troubles mainly with building nodejs, I found this other way of using debian chroot.

Install python on debian chroot session:
Code: [Select]
apt-get install python
Look around the web for solutions for errors that you may encounter, that's what I did.

Title: Re: News about HomeKit and Vera
Post by: acn on June 10, 2015, 08:39:16 am
Finally got it working on synology 412+ using the tips shared by @acn

In case anybody else is running into crashes at launch due to some DNS/avahi errors, the following worked for me.

remove 'rlimit-nproc = 3' from /etc/avahi/avahi-daemon.conf

Glad you got it working and that solves the avahi issue, thanks! I'll add this to the tips. I haven't spent much time on trying to make this run in the background and on boot though, if someone gets it working do share!

In the meantime, can anyone shed some light on how to user 'forever' or something else to run "npm run start" in the background? I tried 'forever start app.js' but the homekit devices weren't being recognized this way. Also, when running forever, which process should I be looking for to kill it?

Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 10, 2015, 09:59:42 am
Dimming lights work, just had to use the right sentence for Siri.
Lock also work, I verified that vera is actually responding to a lock unlock command from the bridge but somehow siri does not. I still have to use turn on, turn off the door.
Other than that it is pretty nifty.
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 10:49:18 am
Thank you Albeebe, Hackworth, Anhman and ACN

I got it working on the Synology following the updated instructions ACN posted. Does anybody else experience a delay with some lights? I have non-dimmable kitchen lights and those turn on and off instantly. The dimmable dining lights can take up to a couple of minutes for them to turn on or off.

Everything looks good code wise:

Turning on the Kitchen Lights
The Kitchen Lights has been turned on
{ characteristics: [ { aid: 1, iid: 10, value: false } ] }
Characteristics.js:NotEventEnabled
Characteristics.js:updateCharacteristicValue
Turning off the Dining Lights
{ characteristics: [ { aid: 1, iid: 9, value: false } ] }
Characteristics.js:NotEventEnabled
Characteristics.js:updateCharacteristicValue
Turning off the Kitchen Lights
The Kitchen Lights has been turned off
The Dining Lights has been turned off

I'm going to search the net and try to find a code to get this to auto-start with a Synology restart.
Title: Re: News about HomeKit and Vera
Post by: slief on June 10, 2015, 11:16:57 am
Thank you Albeebe, Hackworth, Anhman and ACN

I got it working on the Synology following the updated instructions ACN posted. Does anybody else experience a delay with some lights? I have non-dimmable kitchen lights and those turn on and off instantly. The dimmable dining lights can take up to a couple of minutes for them to turn on or off.

Everything looks good code wise:

Turning on the Kitchen Lights
The Kitchen Lights has been turned on
{ characteristics: [ { aid: 1, iid: 10, value: false } ] }
Characteristics.js:NotEventEnabled
Characteristics.js:updateCharacteristicValue
Turning off the Dining Lights
{ characteristics: [ { aid: 1, iid: 9, value: false } ] }
Characteristics.js:NotEventEnabled
Characteristics.js:updateCharacteristicValue
Turning off the Kitchen Lights
The Kitchen Lights has been turned off
The Dining Lights has been turned off

I'm going to search the net and try to find a code to get this to auto-start with a Synology restart.

Off topic but is your user name related to the Stingray? If so, I think we have something in common.
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 11:19:16 am
Off topic but is your user name related to the Stingray? If so, I think we have something in common.

Yep, I have a yellow 2015.
Title: Re: News about HomeKit and Vera
Post by: slief on June 10, 2015, 12:08:20 pm
Off topic but is your user name related to the Stingray? If so, I think we have something in common.

Yep, I have a yellow 2015.

Sweet! I have a white '14 Z51 and was really torn between the white and the yellow. I already have a yellow '68 Camaro so I opted for the white instead. Any chance you are on the Corvette forum?
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 04:13:47 pm
I was able to get the service to stay running in the background using forever and I tried forever-service but once I restart the DSM I have to reinstall Avahi (apt-get install --reinstall avahi-daemon). Therefore I don't know if forever-service works or not, have never used it before.

Code for forever
Code: [Select]
npm install forever -g
forever start -l forever.log -o out.log -e err.log app.js

To stop the service
Code: [Select]
forever stop app.js
To start the service again, you need to add the append to log character -a
Code: [Select]
forever start -a -l forever.log -o out.log -e err.log app.js
Title: Re: News about HomeKit and Vera
Post by: acn on June 10, 2015, 04:17:03 pm
I was able to get the service to stay running in the background using forever and I tried forever-service but once I restart the DSM I have to reinstall Avahi (apt-get install --reinstall avahi-daemon). Therefore I don't know if forever-service works or not, have never used it before.

Code for forever
Code: [Select]
npm install forever -g
forever start -l forever.log -o out.log -e err.log app.js

Thanks for this, I'll try it later as well. I am also trying another approach though, which is to create a Docker container for the HomeKitBridge, this way it will be manageable from the frontend.
Title: Re: News about HomeKit and Vera
Post by: acn on June 10, 2015, 04:19:55 pm
@C7Z51, did you make the change suggested by @dlca1?

Code: [Select]
- To repair avahi-daemon, change '/etc/avahi/avahi-daemon.conf' from
  rlimit-nproc = 3
To
  #rlimit-nproc = 3
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 04:23:39 pm
@C7Z51, did you make the change suggested by @dlca1?

Code: [Select]
- To repair avahi-daemon, change '/etc/avahi/avahi-daemon.conf' from
  rlimit-nproc = 3
To
  #rlimit-nproc = 3

Yes, I commented it out and I just verified again
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 05:27:20 pm
Saying "open the garage door" closes it and saying "close the garage door" opens it. Is anyone else having this problem? I have a Linear GD00Z Garage door sensor.
Title: Re: News about HomeKit and Vera
Post by: tregaron on June 10, 2015, 05:51:51 pm
Thanks all for suggesting this, and to the many people (including ACN for his instructions) I have my Synology DS215i working as a hub, which means Siri responds to commands!

Dimming and on/off for Hue and Z-Wave devices work.

Scenes work (with "Turn on <scene name>")

Hue colours - "Turn Wall Lights Blue" turns into "Turn Wall Lights custom" and just turns the lights on.

Door Locks (Yale) - Siri turns whatever I say as the action into "custom ON", which confusingly /unlocks/ the door. So that half works, but still...

I love the convenience and accuracy of Siri's recognition; it feels like the future is arriving slowly - it almost makes it worth the hours it took to get it working!

I had great difficulty with various bits, I didn't really understand what I was doing; on the plus side it shows that it's solvable by a dunce, just keep hacking at it, one error message at a time.  ::)

At one point I needed to add the line "proc /proc proc defaults 0 0" to fstab; I also ended up installing "NVM" which allowed me to specify the version to upgrade nodejs from 0.10 to 0.12.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 10, 2015, 05:53:29 pm
Saying "open the garage door" closes it and saying "close the garage door" opens it. Is anyone else having this problem? I have a Linear GD00Z Garage door sensor.

Look at my post a few posts up. I fixed it too by changing the accessory garagedoor js file.

If you are trying to make it run in the background you can use "screen". I actually prefer this as opposed to making it start at boot up. It forces me to start it manually by I can keep it running after I close my SSH session.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 10, 2015, 05:54:19 pm
@C7Z51 - Yeah, that's a known bug from earlier in this thread, I just haven't had a chance to work on it after spending several hours on the stupid garage doors. I'll fix it in the next few days, unless you want to send me a pull request on Github with a fix ;-)
Title: Re: News about HomeKit and Vera
Post by: Albeebe on June 10, 2015, 07:23:12 pm
So I'm at WWDC (apples developer conference) and I had a chance to talk to the engineers who work on HomeKit.

Basically they told me this "hack" we're using to get Siri to work with Vera won't be working for to much longer. They don't necessarily care to much that we've been able to do this since we're just messing around.

They said we won't be able to bridge Vera to homekit using software. Vera would have to officially work with apple and incorporate a security chip in order to work with HomeKit.

They don't have any plans to open up the homekit protocol at all, and there's no chance that people will be able to create homekit devices without working with Apple and incorporating this security chip.

Oh well


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 07:30:52 pm
Pull request sent
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 10, 2015, 08:05:21 pm
@C7Z51 - Thanks! Unfortunately it's not that simple. Basically locks are opposite of switches, so you have to consider the urn of the device you're sending it to. I've pushed the changes to the repo for those of you that need the fix.

If you're curious about the technical details, here's the commit:

https://github.com/Hackworth/VeraHomeKitBridge/commit/3831288839f302fe8e3c96bc7c6a9cab79fe92a7 (https://github.com/Hackworth/VeraHomeKitBridge/commit/3831288839f302fe8e3c96bc7c6a9cab79fe92a7)

Edit: I'm impressed you apparently joined GitHub just for that!
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 08:16:41 pm
Yeah i'm a noob, I just google search and try different things, i'm not a programmer at all. Figured I would try to make it as easy as possible for you to do your magic. So the Garage door is treated as a lock?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 10, 2015, 08:20:38 pm
That's okay, I have no idea what I'm doing. I've never touched JavaScript before last week. It's all black magic to me.

So, Garage Door's are SUPPOSED to be a switch, just like a light, but I have a plugin that makes it a lock in my particular setup. So, I spent probably way too much time making it happy with both lock and switch devices on the Vera side because, you know, I'm special or something.

Thanks again! :)
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 08:34:58 pm
How do I just pull and replace that one file with git? is that possible?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 10, 2015, 08:41:44 pm
Uh, why do you need to? A 'git pull' in the repo will update everything. You shouldn't need to keep track of what file changed.

Edit: If you were editing a file and need to revert the whole thing back, you can do a "git reset --hard"
Title: Re: News about HomeKit and Vera
Post by: C7Z51 on June 10, 2015, 08:48:41 pm
Uh, why do you need to? A 'git pull' in the repo will update everything. You shouldn't need to keep track of what file changed.

Edit: If you were editing a file and need to revert the whole thing back, you can do a "git reset --hard"

 ;D that was easy, no wonder I couldn't find anything online, I was searching for something stupidly simple.
Title: Re: News about HomeKit and Vera
Post by: sgruby on June 10, 2015, 10:32:22 pm
They said we won't be able to bridge Vera to homekit using software. Vera would have to officially work with apple and incorporate a security chip in order to work with HomeKit.

They don't have any plans to open up the homekit protocol at all, and there's no chance that people will be able to create homekit devices without working with Apple and incorporating this security chip.

Interesting. Did you see this Tweet from Vera? https://twitter.com/VeraLovers/status/607979550270746624

My direct question about Vera supporting HomeKit is that they are going to support it! Will it require new hardware? No idea.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 11, 2015, 12:12:36 am
@C7Z51 - Thanks! Unfortunately it's not that simple. Basically locks are opposite of switches, so you have to consider the urn of the device you're sending it to. I've pushed the changes to the repo for those of you that need the fix.

If you're curious about the technical details, here's the commit:

https://github.com/Hackworth/VeraHomeKitBridge/commit/3831288839f302fe8e3c96bc7c6a9cab79fe92a7 (https://github.com/Hackworth/VeraHomeKitBridge/commit/3831288839f302fe8e3c96bc7c6a9cab79fe92a7)

Edit: I'm impressed you apparently joined GitHub just for that!

I see what you did... So you really never wrote code before last week? This is not bad. You basically made the variable "unlocked" a configurable that switches the binary depending on the type of device from the query. I think I just took a shortcut just to make mine work. Nice job!
Title: Re: News about HomeKit and Vera
Post by: acn on June 11, 2015, 05:02:29 am
Just wanted to let you know that with iOS 9 (beta 1 at least) all device access stopped, there's no activity on the HAP server, I have removed a device to re-add it but nothing works though the server is listening.

Update:
So apparently the guys responsible for HAP-NodeJS had noticed this and have made some changes so that it will be possible to use it with iOS 9.

https://github.com/KhaosT/HAP-NodeJS/issues/69#issuecomment-110261466

Update:
I cloned HAP-NodeJS directly from github, rebuilt it and now it's working [sort of]. I had to delete and re-add devices, and also remove all the files under ./persist.
Title: Re: News about HomeKit and Vera
Post by: acn on June 11, 2015, 09:21:03 pm
@Hackworth, I've sent a pull request for an additional accessory, to control Window Covers. I used the code from the light dimmers for this. I think it's ok, but as it's my first time doing anything on github have a look at it.

Commands are:
"Turn Off ..." to close
"Turn On ..." to open
"Dim ... to ... %" to set intermediate level

Also, for reference, I have found that Siri in Portuguese is also there, but the commands are very flimsy. When I request something to be done in the Bedroom, a kind of placeholder  appears (bed_room) instead of the actual word.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 11, 2015, 09:27:48 pm
@acn,

Copying my comments on the pull request here:

So I've merged this in for now, but it looks like it's just the same urn and everything from a dimmable light, so I really don't see why you've created a separate WindowCovering.js file instead of just calling createDimmableLight(device) for category 8 devices. Can you explain the reasoning?
Title: Re: News about HomeKit and Vera
Post by: acn on June 11, 2015, 09:35:52 pm
Yeah, I guess you're right - other than specific comments and different names to commands to give it some context, it's basically the same as the dimming lights js. I guess it's ok to simplify and remove it. The main addition is case 8.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 11, 2015, 10:06:55 pm
Okay, I've implemented it the other way. Would you mind doing a git pull and testing?

Also, I'm sorry, I'm not trying to squash on your work (which I very much appreciate btw) I just value simplicity from a maintenance perspective.

Thanks!
- Jordan
Title: Re: News about HomeKit and Vera
Post by: acn on June 12, 2015, 06:44:53 am
Okay, I've implemented it the other way. Would you mind doing a git pull and testing?
Also, I'm sorry, I'm not trying to squash on your work (which I very much appreciate btw) I just value simplicity from a maintenance perspective.
Thanks!
- Jordan

No worries, really! I was messing around the js file so much that I didn't notice than in the end I got the same thing. ;)

I've tested and it's working, thanks!
Title: Re: News about HomeKit and Vera
Post by: acn on June 14, 2015, 02:21:51 pm
So, I don't know if any of you is using the "Eve" app, but a recent update popped up with a lot of new features - things like "Good Morning" / "Good night" scenes and being able to select how we want Siri to address a given accessory we're adding.

I'm not testing a lot of these things essentially because my default language is not English.

(don't forget I'm using iOS 9b1, that may also be pertinent to this)

Edit: this update is actually pretty neat, I don't know if you guys already use this or not. I basically added some actions from within Eve to these default scenes, and even though there are quirks (Eve will afterwards list these scenes with 0 actions, but in fact they are running fine), it works remarkably well.  I just say "Hey Siri, good morning." and that scene will run.
Title: Re: News about HomeKit and Vera
Post by: acn on June 14, 2015, 02:42:20 pm
Hi,

For those who followed my notes to get VeraHomeKitBridge working on Synology DS's (http://forum.micasaverde.com/index.php/topic,31716.msg237385.html#msg237385), I've been able to get it running in the background with the instructions below:

Code: [Select]
- Make it run in the background with pm2 (this thing is very cool!):

  npm install pm2 -g
  cd /home/VeraHomeKitBridge/

  [Check if avahi-daemon is running:]
service avahi-daemon status

  [Start the nodejs script with:]
pm2 start app.js

  [check if the app is running:]
  pm2 show 0

  [check if the output log looks ok with:]
  tail /root/.pm2/logs/app-out-0.log

 All done! You can close your terminal sessions, it should keep running in the background!]

I haven't tried running it from the DS, and on boot, as I still couldn't make avahi-daemon stable enough. For now it's fine like this, at least for me.

Hope this helps!
Title: Re: News about HomeKit and Vera
Post by: henkedk on June 15, 2015, 05:40:57 am
Anyone figured out a solution for Siri not being able to find lights/lamps if they are named "Light" or similar? Works like a charm if you call the device "Couch" or anything non-light related.

PS - what's up with all these security questions when trying to make a post? A captcha is one thing, but having to answer 3 additional questions??
Title: Re: News about HomeKit and Vera
Post by: dlca1 on June 16, 2015, 01:56:39 am
I know HomeKit currently only supports lights, locks and garage doors.

What would be the best way hack this to work with a TV? (be able to tell Siri to turn TV on/off)
I have an old Pioneer Kuro and am controlling it in vera using a Roomie Blaster (same as Global Cache Flex) using the GC100 plugin.

I'm on UI5 in case that matters.

Some ideas:
1) Create a virtual binary light. Create triggers that happen when the binary light is turned on/off? I got stuck when I was trying to create a new scene using my television but  there is just a big circle with a line through it. (in attached pic)

2) Create a custom light plugin? Have the on/off actions directly call lua actions that will invoke the Global Cache API.

Any suggestions?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on June 16, 2015, 02:01:22 am
Just use the version on my github. It supports scenes perfectly.
Title: Re: News about HomeKit and Vera
Post by: Talcoth on June 17, 2015, 03:36:40 am
This is as far as I have gotten (see picture) because I am a total noob when it comes to these kind of stuff. I would like "it" to run on my Synology so therefore I have tried to follow acn's guide. I easily get lost so a more kinda "step by step" guide would greatly be appreciated. Cheers
Title: Re: News about HomeKit and Vera
Post by: acn on June 17, 2015, 06:01:58 am
This is as far as I have gotten (see picture) because I am a total noob when it comes to these kind of stuff. I would like "it" to run on my Synology so therefore I have tried to follow acn's guide. I easily get lost so a more kinda "step by step" guide would greatly be appreciated. Cheers

You've just entered the debian chroot command line, that's basically the start of the tips I wrote.

And sorry, but I really can't make it any more step by step, I would say it's fine should you read along what I've written in the code box:

http://forum.micasaverde.com/index.php/topic,31716.msg237385.html#msg237385

cheers

edit: one note though: you won't need node js running as a package on the Synology Package Manager.
Title: Re: News about HomeKit and Vera
Post by: Talcoth on June 17, 2015, 07:15:04 am
Yes and the second thing I enter as a hole is.

/var/packages/debian-chroot/scripts/start-stop-status chroot
      aptitude update
      aptitude upgrade
      aptitude install locales
      dpkg-reconfigure locales

I can't seem to scroll between the languages as you describe. Using the keyboard only threes commands show.
Title: Re: News about HomeKit and Vera
Post by: acn on June 17, 2015, 07:19:41 am
@Talcoth: I'm sorry but I don't understand what you're trying to say.

What I can recommend is for you to follow the tips *one at a time*, do not copy paste huge blocks of commands without knowing what you're doing.

If you get an error after entering a specific command, search the web for a solution or ask here, but right now you're being too vague.
Title: Re: News about HomeKit and Vera
Post by: Talcoth on June 17, 2015, 01:32:57 pm
I dowloaded this git and the folder just lays on my desktop. Python and Debian Chroot is running on my Synology. I have ticked SSH and I'm able to login to my Synology with my terminal on my mac. I then run;

      /var/packages/debian-chroot/scripts/start-stop-status chroot
 
and this shows;

bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
root@NAS:/#

I'm stuck already on the first step and can't seem to follow your guide. The second step i assume, because it's the second thing on your notes, is running;

/var/packages/debian-chroot/scripts/start-stop-status chroot
      aptitude update
      aptitude upgrade
      aptitude install locales
      dpkg-reconfigure locales

But it tells me

bash: /var/packages/debian-chroot/scripts/start-stop-status: No such file or directory
root@NAS:/#
Display all 636 possibilities? (y or n)

I totally understand that you don't have time to lead me every step of the way because that's basically what I need. I got overwhelmed when I saw Albebee's video and when he wrote
   "I'm going to refine it so that everyone else can easily use it, no matter what your skill level is. I think i can make it so simple, it will take you under 2 minutes to get running."

Anyway, if a really easy to follow guide comes a long, please tell. I'm a real geek and want this to work real bad but don't have the knowledge to do so myself. Cheers



Title: Re: News about HomeKit and Vera
Post by: acn on June 18, 2015, 06:05:34 pm
@Talcoth, here are some pointers so you can check that:

bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
root@NAS:/#

This is fine. This is the debian chroot command line started by the '/var/packages/debian-chroot/scripts/start-stop-status chroot' command.
 

I'm stuck already on the first step and can't seem to follow your guide. The second step i assume, because it's the second thing on your notes, is running;

/var/packages/debian-chroot/scripts/start-stop-status chroot

You're repeating the same first command already inside debian chroot, that's why you have an error. I removed that repeated entry from my notes so it won't confuse anyone.

Run the other commands separately: in general, one command per each line. I.e.

One command is:       aptitude update
Another command is:       aptitude upgrade

And so on. Each command ends when you get the command line again as it was at first.

Cheers





Title: Re: News about HomeKit and Vera
Post by: Bertin on July 13, 2015, 02:19:19 pm
Hi,

So I struggled to get this working on my macbook pro and finally got it:

1. Install Node.Js
You can use the installer package.

2.Run This:
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
cd VeraHomeKitBridge
sudo npm install
cd lib/HAP-NodeJS
sudo npm install
cd

3. Now go edit the config file
Change the Vera IP. (You can do this using finder if you struggle wit terminal commands)

4. Run it
sudo npm run start

Download a homekit compatible app.
Add devices by entering the code manually:

031-45-154

Viola!  ;D
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 13, 2015, 02:42:43 pm
Bertin,

Thanks for confirming my instructions work perfectly. I see that you've correctly identified the pin code in the config file.

I do not, however, know why you're choosing to open your MBP to security vulnerabilities by running as root since no port it opens is between 1 and 1024.

Cheers,
Hack
Title: Re: News about HomeKit and Vera
Post by: Bertin on July 14, 2015, 01:38:04 am
Hi Hack,

No problem   :)

I ran the sudo command because during the initial phase I got errors stating that I don't have permission to edit files.
I guess its not necessary though... I messed around on my mac so much its just getting a bit confused.

Thank you all for the great work.... Now to find a way to run this on the vera itself  8)
Title: Re: News about HomeKit and Vera
Post by: Bertin on July 15, 2015, 04:19:02 am
Hi,

So I got this working on the raspberry pi as well.

The installation was quite slow but the response to SIRI commands is very snappy.

Although, when I added a device using an homekit compatible app, it failed somehow. Now trying to add it I get an error that "Home configuration has changed".
So maybe I should delete all detected devices.

How does the server create and store devices?

I don't want to re-install and compile everything again... Did I mention the PI is slow.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 15, 2015, 10:25:23 am
The persist folder, you can delete that to have it recreate devices.
Title: Re: News about HomeKit and Vera
Post by: kenray536 on July 17, 2015, 04:28:56 pm
Hi,

So I got this working on the raspberry pi as well.

The installation was quite slow but the response to SIRI commands is very snappy.

Although, when I added a device using an homekit compatible app, it failed somehow. Now trying to add it I get an error that "Home configuration has changed".
So maybe I should delete all detected devices.

How does the server create and store devices?

I don't want to re-install and compile everything again... Did I mention the PI is slow.

I'm trying to set this up on a Raspberry Pi 2 and I'm getting an error saying "-bash: npm: command not found".

Is there a called nom that should be created during the install? I don't have one in my VeraHomeKitBridge directory.

I tried to use these instructions from Hackworth's Github. Is this what you ran to set it up?

sudo apt-get install build-essential libavahi-compat-libdnssd-dev
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
cd VeraHomeKitBridge
npm install
cd lib/HAP-NodeJS
npm install
cd -
Edit config.json entering your Vera's IP address

npm run start
Title: Re: News about HomeKit and Vera
Post by: kenray536 on July 17, 2015, 05:50:06 pm
I figured out my problem I had to manually install node js as root. Ran sudo su to change to superuser first.
Title: Re: News about HomeKit and Vera
Post by: kenray536 on July 17, 2015, 11:59:30 pm
Ok heres the code to try HomeKit with your Vera!

https://www.dropbox.com/s/6cfd1q4cwy8ssof/homekit.zip?dl=0 (https://www.dropbox.com/s/6cfd1q4cwy8ssof/homekit.zip?dl=0)

You'll need to install NodeJS on your machine, and it must be on the same network as your Vera

1. Unzip the file
2. Edit the app.js file and enter the IP address of your Vera on line 11
3. Go to the command line and cd into the directory that contains the unzipped files
4. Type: npm run start

This should run the homekit bridge, connect to your vera, and expose any lights, dimmable lights, and locks to HomeKit.

Next you need to download an app that lets you manage HomeKit devices. I found an app called MyTouchHome in the app store for $1.99 that lets you add HomeKit devices on your network to your "home" that you create in the app. Once you create a "home" you need to tap on the "+ Accessory" button. If everythings working, all your Vera devices will show up in the list.

Tap on a device and you'll be prompted to enter a password.  The password is ALWAYS going to be 03145154

*notes*
1. HomeKit only allows devices that have a unique name. If you have a bunch of lights called "ceiling light" only one of the lights will show up in the list.
2. Siri is a bit finicky so you might have to experiment by saying "TURN OFF CEILING LIGHT" or "TURN CEILING LIGHT OFF". If you create a room using HomeKit and add the device to a room try saying "TURN THE BATHROOM CEILING LIGHT OFF".  You have to play around with it.
3. I didn't test unlocking/locking doors but it should work. However i think you need to say things like "TURN ON THE FRONT DOOR LOCK" or "TURN OFF THE FRONT DOOR LOCK" instead of saying unlock the front door.

Good luck, let me know if it works for you. What I made is just a very super early alpha version so no guarantees.

Are these instructions still valid?
Where do I set the IP for the Vera?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 18, 2015, 04:39:49 am
No, and seriously? You pasted the answer to that two posts ago. Stop bothering us and read.
Title: Re: News about HomeKit and Vera
Post by: Emf42783 on July 22, 2015, 01:21:05 am
I'm using MyTouchHome and it's only letting me add one device at a time.  I have to quit the server, close the app, then restart server and open app to add each one.  Using OS X 10.10 and running iOS 9.
Title: Re: News about HomeKit and Vera
Post by: kenray536 on July 22, 2015, 03:51:33 pm
No, and seriously? You pasted the answer to that two posts ago. Stop bothering us and read.

My apologies, I've actually read the thread multiple times, but didn't follow that the version you created was a modified version of the original that you cleaned up and made easier to install. Thanks for doing that by the way.

I was referencing the other instructions because I wanted to install the other version to see the differences. I noticed that the original version also added Sonos and Harmony hub devices. Would it possible to add it to your version?

Thanks Hackworth!
Title: Re: News about HomeKit and Vera
Post by: kenray536 on July 22, 2015, 03:53:48 pm
I'm using MyTouchHome and it's only letting me add one device at a time.  I have to quit the server, close the app, then restart server and open app to add each one.  Using OS X 10.10 and running iOS 9.

I have the same issue. I have also tried adding devices using the Insteon app. I have about 75 devices/scenes so the list takes long to load and sometimes only partially loads. I can't tell if it's an issue with the app or with the server. Both MyTouchHome and Insteon behave similarly though.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 22, 2015, 04:48:05 pm
I noticed that the original version also added Sonos and Harmony hub devices. Would it possible to add it to your version?

It didn't. I think you're talking about this: https://github.com/nfarina/homebridge (https://github.com/nfarina/homebridge)

You can probably run both simultaneously.
Title: Re: News about HomeKit and Vera
Post by: rweisback on July 23, 2015, 03:34:41 am
Hi Guys,

Firstly thanks to Hackworth, Albeebe plus all the other guys who have made this work, its awesome and a credit to you, secondly will you guys be adding in HVAC control into this? I can try and help if needed or send my xml data for that device.

Cheers
Title: Re: News about HomeKit and Vera
Post by: skywise on July 23, 2015, 08:39:23 am
I noticed that the original version also added Sonos and Harmony hub devices. Would it possible to add it to your version?

It didn't. I think you're talking about this: https://github.com/nfarina/homebridge (https://github.com/nfarina/homebridge)

You can probably run both simultaneously.
Unfortunately, no, can't run both at the same time.
---
Error: dns service error: name conflict
    at Error (native)
---
Probably a avahi thing, both are trying to be the same service.
(I found home bridge first, got my nest and MyQ opener going and then discovered this one)

Thanks for the great bridge!
Title: Re: News about HomeKit and Vera
Post by: angel333 on July 24, 2015, 07:43:06 pm
Hi acn,
I have Eve working great with individual devices with home kit bridge but I can figure out how to get Siri to respond to the phrase "Good Morning" via home hit.  She just keeps being snarky about the time.  I've tried naming scene's or giving siri names to devices but neither works.  Googling for documentation hasn't turned up much yet either.

So, I don't know if any of you is using the "Eve" app, but a recent update popped up with a lot of new features - things like "Good Morning" / "Good night" scenes and being able to select how we want Siri to address a given accessory we're adding.

I'm not testing a lot of these things essentially because my default language is not English.

(don't forget I'm using iOS 9b1, that may also be pertinent to this)

Edit: this update is actually pretty neat, I don't know if you guys already use this or not. I basically added some actions from within Eve to these default scenes, and even though there are quirks (Eve will afterwards list these scenes with 0 actions, but in fact they are running fine), it works remarkably well.  I just say "Hey Siri, good morning." and that scene will run.
Title: Re: News about HomeKit and Vera
Post by: Teammac on July 25, 2015, 11:11:16 pm
Hello all, I've tried (several times) everything so far to get this running on my Mac with no success. Can someone please take a look and help me? Thank you in advance...


TeammacMini:verahomekitbridge teammacmini$ npm run start

> VeraHomeKitBridge@1.0.0 start /Users/VeraHomeKitBridge
> node app.js

undefined:2
  "VeraIP": "?,
                          ^
SyntaxError: Unexpected token

    at Object.parse (native)
    at Object.<anonymous> (/Users/VeraHomeKitBridge/app.js:11:19)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/VeraHomeKitBridge/npm-debug.log
TeammacMini:verahomekitbridge teammacmini$

I also tried this....TeammacMini:verahomekitbridge teammacmini$ sudo npm run start

> VeraHomeKitBridge@1.0.0 start /Users/teammacmini/VeraHomeKitBridge
> node app.js

undefined:2
  "VeraIP": "?,
                          ^
SyntaxError: Unexpected token

    at Object.parse (native)
    at Object.<anonymous> (/Users/teammacmini/VeraHomeKitBridge/app.js:11:19)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/teammacmini/VeraHomeKitBridge/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 26, 2015, 02:34:31 am
Your config file is broken. Should look like this: https://github.com/Hackworth/VeraHomeKitBridge/blob/master/config.json
Title: News about HomeKit and Vera
Post by: Teammac on July 26, 2015, 02:41:36 am
Sorry about that Hackworth, I should've mentioned I took the IP address out for the post. I edited the config file with my Vera's address originally and still got this error every time.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 26, 2015, 02:50:59 am
That's nice. Your config file is still broken.
Title: Re: News about HomeKit and Vera
Post by: Teammac on July 26, 2015, 03:10:55 am
Heres a copy of my config file
{
  "VeraIP": "192.168.1.2",
  "PIN": "031-45-154",
  "GarageDoors":[
    "Garage Door",
    "Second Garage Door"
  ]
}

Looks the same, am I missing something?
Title: Re: News about HomeKit and Vera
Post by: Ryanoc75 on July 26, 2015, 05:51:58 pm
Need a bit of help Setting this up as a service that survives restarts on  OS X

First, a Huge thanks to all of the contributors that have brought this little project to life.  After 3 attempts on 3 different machines I finally have Siri able to control the house AND I  now have a better understanding (albeit still noob) of npm and what this bridge actually does. Late last night I saw that magical "HAP server is listening" after creating all our devices and I may have done a dance of joy lol

Google was my definitely my friend sorting through  the endless errors I encountered trying to get npm installed correctly (note to those still trying just cut and paste your errors into google and remove your user name and directory and you will find many answers)

In my searches to for using "forever" to get the server to stay running I came across a post that allows you to make the server a service in OS X that will survive restarts which is what I needed. This is what I found but I need a bit of guidance as to what to replace with what for our situation.  Perhaps someone with the knowledge could give examples from their machine where I am asking for clarification below? (Also if there is something that should be changed that I don't ask about please let me know)

From an npm forum........
If you are running OSX, then the easiest way to produce a true system process is to use launchd to launch it.

Build a plist like this, and put it into the /Library/LaunchDaemons with the name top-level-domain.your-domain.application.plist (you need to be root when placing it):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>top-level-domain.your-domain.application</string>   -- what do i need to replace this with

    <key>WorkingDirectory</key>
    <string>/your/preferred/workingdirectory</string>  -- what do I need to replace this with

    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/node</string>
        <string>your-script-file</string>    --- what do we need to put here
    </array>

    <key>RunAtLoad</key>
    <true/>

    <key>KeepAlive</key>
    <true/>

</dict>
</plist>
When done, issue this (as root):   - how do I know when I'm "as root" or how do I get there

launchctl load /Library/LaunchDaemons/top-level-domain.your-domain.application.plist
launchctl start top-level-domain.your-domain.application
and you are running.

And you will still be running after a restart.

For other options in the plist look at the man page here: https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man5/launchd.plist.5.html

Perhaps this will help others running OS X make this little npm server auto start on boot up and stay alive  (my situation is Vera is at my moms house so I'm not always around to trouble shoot or know why it isn't working the way it should)

Thanks in advance for help with my basic questions!
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 28, 2015, 05:52:34 pm
am I missing something?

So let me get this straight, you modified the only line of the error that actually matters so the ^ below it isn't pointing at anything because....192.168.0.0/16 address space is somehow important, and you want....What? I can't ssh into your box and fix it for you.
Title: News about HomeKit and Vera
Post by: Teammac on July 28, 2015, 07:46:10 pm
I'm not an expert in json, I modified it to match the example in your post. If you could explain what's wrong with it other than "it's broken" I'd appreciate it.


Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 29, 2015, 11:28:07 am
What more could I possibly do to explain this to you? I've said it several times. You've chosen to redact the only part of your error message which actually matters and beyond telling you it's the config file (of which only you have access to) there's nothing more I can discern from what you've posted. The ACTUAL error message will point you right to the issue (of which only you have access to. Since you decided to redact it. Twice.)

I'm afraid I'll be unable to help you further, as I mentioned I don't have ssh access to your computer, nor do I want it, and you've chosen to completely ignore me thus far.
Title: Re: News about HomeKit and Vera
Post by: Teammac on July 29, 2015, 11:51:08 am
What more could you do to explain this to me? Simple, "The error message you posted is incomplete, here's how to post it so I can get the info needed". Seems like that could've been your first reply. Thanks anyway, I was able to solve my issue last night by ordering an Insteon Hub.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on July 29, 2015, 01:09:58 pm
Thanks anyway, I was able to solve my issue last night by ordering an Insteon Hub.

Perfect, enjoy Insteon's paid support staff!
Title: Re: News about HomeKit and Vera
Post by: Ryanoc75 on August 03, 2015, 10:40:25 pm
Hi Hackworth,

   Thanks for all your hard work putting the bridge together and trouble shooting.  I am up and running, however I'm noticing that some scenes or devices are showing as having been created, yet they won't appear in the eve app.  I'm going to assume that this could be due to the sheer number of scenes that I have created combined with the sheer size of our network

 My question is How easy or hard would it be to be able to pick and choose which scene's and or devices that the bridge is able to read?  I am sure many people have a number of scenes or devices that either run automatically or ones you would never need Siri to control

Perhaps its too involved to impliment or maybe there is a variable that could be added during the read process that tells the bridge to include it or not, I'm kinda just thinking out loud and wondering if others might also find this helpful/useful?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on August 03, 2015, 11:00:06 pm
Glad you're up and running! Odd that you only see a subset of devices though, I wasn't aware of a limitation in HomeKit for the number of devices. Is Eve the only app you've used? Are you getting an error message on the command line?

Just for fun, you could delete the persist folder and edit app.js, the line that says
Code: [Select]
portfinder.basePort = 51826 and try lowering the port number to, I don't know, 30000, 40000? That'll give it more ports to expand to. Let me know what you find out!
Title: Re: News about HomeKit and Vera
Post by: Ryanoc75 on August 05, 2015, 01:54:39 pm
Thanks for the suggestions, I will try that on the weekend when I'm back at the house.  Giving it more ports could be a good solution as I think what its doing is kicking out devices or overwriting the ports at a certain point. 

On Vera's web dashboard I have everything we use most often/ want to monitor in "no room" at the top of the page.  The things I use least are at the bottom of the page and when I look at the exposed devices in eve, none of the devices I use regularly are there, but all the ones I don't are.   

I did also try the mytouchhome app but ran into problems once I had added most of the scenes and devices so I switched to Eve.  I also liked the Eve interface a bit better, especially the ability to edit the devices "Siri name"   I found that really helped her recognize and find devices that she was not able to find ie our kitchen light I changed to "kitchen tiffany" and she found it right away.

I'll report back once I've tested.  Thanks for the advice and your time. 
Title: Re: News about HomeKit and Vera
Post by: jayman13 on August 06, 2015, 11:02:47 am
Thanks for developing this.  I'm using it with homeseer but as I'm not smart enough to develop a platform for homeseer I have just made a ton of accessory devices.  Just curious, is there a limit to the number of devices I can create?
Title: Re: News about HomeKit and Vera
Post by: AAADiver on August 18, 2015, 01:37:15 pm
Guys - I'm a complete noob with no Linux experience but I got my Raspberry PI implementation up and running in a single weekend thanks to the awesome instruction and info in this thread and a lot of google searches and reading.

I ran into one problem I havent been able to solve. I'm using Eve and I have added about 15 devices but in the middle of adding, after entering the pin, the app returned to the main screen with no option to review and add Siri name, i.e. seems to crash. This happened twice when adding two Dimmers. I exited Eve and then restarted. The failed Dimmers disappeared from available accessories list and also was never properly added to homekit so their off in nowhere land.

Is there anyway I can find and recover these single devices without a complete restart (deletion of persist data)?
Also when I deleted persist data in the past, old names remained in Eve till I reset it as well meaning I also lost all previous pairs including dual Ecobee3 thermos (was a pain).

So net-net, is there any way to do a single device add/drop/reset?

Thanks all!
Allen
Title: Re: News about HomeKit and Vera
Post by: Emf42783 on August 20, 2015, 08:19:37 pm
Hackworth, great job on this project!  In just a few short hours I was able to setup a raspberry pi 2 and implement your VeraHomeKitBridge with Eve.  Really awesome and for the most part works great!

Few questions:

1)  I'm also experiencing the same thing AAADiver mentioned.  In Eve, when I try to add certain devices (usually a door lock or a relay switch, but sometimes regular on/off switches too) I'll click the device, then click Add to Home, then it'll take me back to the Finding accessories screen.  I've tried multiple times and sometimes I'll have luck later and other times I won't.  Any idea why Eve keeps kicking me back on certain devices? Is there a log I should be looking at besides console?

2)  Any ideas on how to make this work when I'm not on my local network (ie, when I'm away from home on LTE)?

Thanks again for all your help on this!
Title: Re: News about HomeKit and Vera
Post by: Hackworth on August 20, 2015, 10:33:26 pm
@Emf42783 - Haven't got a clue. I've got all my devices added, and I don't feel like resetting my database just because it sometimes sorta doesn't work.

As for outside your house, I believe if you have an Apple TV it's supposed to automatically do that.
Title: Re: News about HomeKit and Vera
Post by: AAADiver on August 20, 2015, 10:40:44 pm
Ya the issue I have, is when they fail to add they go into a limbo state, no longer available to add and not in my list of added devices. Any recommendations on where to look for these failed devices and how to delete them?

Thanks for your awesome work here.

Other QQ, does this all end with IOS release 9.0 in Sept?

Thanks!
Title: Re: News about HomeKit and Vera
Post by: Emf42783 on August 21, 2015, 12:23:22 am
@Hackworth, the device I'm having trouble adding is a Linear FS20Z-1 Z-Wave Relay Fixture Module (http://www.zwaveproducts.com/Zwave-Controllers/Zwave-Appliance-Control/Linear-FS20Z-1-Z-Wave-Relay-Fixture-Module.html (http://www.zwaveproducts.com/Zwave-Controllers/Zwave-Appliance-Control/Linear-FS20Z-1-Z-Wave-Relay-Fixture-Module.html)).  Does VeraHomeKitBridge support these types of devices?

Thanks for the tip on the Apple TV.  I've got one I can hook up to see if that works.

@AAADiver, I'm on iOS 9 now and it's all working with the exception of being able to add a few devices.
Title: Re: News about HomeKit and Vera
Post by: AAADiver on August 22, 2015, 02:07:44 am
 Interesting....I found you can find a missing accessory by changing it's name in Vera, then stopping and restarting bridge. It sees the new name and now you can add it. Solves the issue.... :)
Title: Re: News about HomeKit and Vera
Post by: AAADiver on August 23, 2015, 11:53:34 pm
Everything was working great, then I upgraded IOS to Beta 9.0 and suddenly the bridge stopped working. 
When I boot, I see the below. Any ideas on what's happening here?

Thanks!

> VeraHomeKitBridge@1.0.0 start /root/node/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Create accessory:  Deadbolt Back
Create accessory:  Deadbolt Front
Create accessory: Alex Night Light
Create accessory: Alex Room Light
Create accessory: Back Porch Light
Create accessory: Bedroom Light
Create accessory: Bedroom Night Light
Create accessory: Dining Porch Light
Create accessory: Dining Room Light
Create accessory: Downstairs
Create accessory: Entry Light
Create accessory: Floor Fan
Create accessory: Floor Lamp
Create accessory: Front Porch Light
Create accessory: Garage Back Light
Create accessory: Garage Lights
Create accessory: Lawn Lights
Create accessory: M1 - 2nd Flr Xmas Lites
Create accessory: M2 - Projector
Create accessory: M3 - Holiday Lights
Create accessory: M5 - Projector
Create accessory: M7
Create accessory: M8
Create accessory: Office Light
Create accessory: Upstairs
Create accessory:        Alex Lites Off
Create accessory:        Dogs Out
Create accessory:        Holiday Lights
Create accessory: FD_Lock
Create accessory: Travel Lights
Create accessory: Turn off nite lights
Create accessory: Turn on nite lights
TCP server accepting connection on port: 51826
HAP Server is listening
TCP server accepting connection on port: 51828
HAP Server is listening
TCP server accepting connection on port: 51830
HAP Server is listening
TCP server accepting connection on port: 51832
HAP Server is listening
TCP server accepting connection on port: 51834
HAP Server is listening
TCP server accepting connection on port: 51836
HAP Server is listening
TCP server accepting connection on port: 51838
HAP Server is listening
TCP server accepting connection on port: 51840
HAP Server is listening
TCP server accepting connection on port: 51842
HAP Server is listening
TCP server accepting connection on port: 51844
HAP Server is listening
TCP server accepting connection on port: 51846
HAP Server is listening
TCP server accepting connection on port: 51848
HAP Server is listening
TCP server accepting connection on port: 51850
HAP Server is listening
TCP server accepting connection on port: 51852
HAP Server is listening
TCP server accepting connection on port: 51854
HAP Server is listening
TCP server accepting connection on port: 51856
HAP Server is listening
TCP server accepting connection on port: 51858
HAP Server is listening
TCP server accepting connection on port: 51860
HAP Server is listening
TCP server accepting connection on port: 51862
HAP Server is listening
TCP server accepting connection on port: 51864
HAP Server is listening
TCP server accepting connection on port: 51866
HAP Server is listening
TCP server accepting connection on port: 51868
HAP Server is listening
TCP server accepting connection on port: 51870
HAP Server is listening
TCP server accepting connection on port: 51872
HAP Server is listening
TCP server accepting connection on port: 51874
HAP Server is listening
TCP server accepting connection on port: 51876
HAP Server is listening
TCP server accepting connection on port: 51878
HAP Server is listening
TCP server accepting connection on port: 51880
HAP Server is listening
TCP server accepting connection on port: 51882
HAP Server is listening
TCP server accepting connection on port: 51884
HAP Server is listening
TCP server accepting connection on port: 51886
HAP Server is listening
TCP server accepting connection on port: 51888
HAP Server is listening
New Session 51875
Server Connection Established 42200
New Session 51876
Start Verify M1
Verify M1 Finished
New Session 51877
New Session 51878
New Session 51879
New Session 51880
New Session 51881
New Session 51882
New Session 51883
New Session 51884
New Session 51885
Server Connection Established 44933
New Session 51886
New Session 51887
New Session 51888
Start Verify M1
Verify M1 Finished
Server Connection Established 45076
Server Connection Established 34488
Server Connection Established 56299
Server Connection Established 52842
Server Connection Established 42390
Server Connection Established 38594
Server Connection Established 47926
Server Connection Established 49983
Server Connection Established 59596
New Session 51889
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Server Connection Established 53495
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Server Connection Established 48955
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Server Connection Established 39482
Client Disconnected
Start Verify M1
Verify M1 Finished
Server Connection Established 49169
Start Verify M1
Verify M1 Finished
Start Verify M1
Verify M1 Finished
Client Disconnected
Start Verify M1
Verify M1 Finished
Client Disconnected
Client Disconnected
Client Disconnected
Client Disconnected
Client Disconnected
Client Disconnected
Client Disconnected
Server Disconnected
Client Disconnected
Client Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Client Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Client Disconnected
Client Disconnected
Client Disconnected
Server Disconnected
Server Disconnected
Server Disconnected
Title: Re: News about HomeKit and Vera
Post by: AAADiver on August 24, 2015, 10:49:45 pm
Solved the above issue but not sure it was an EVE update after upgrading to 9.0 or a complete reimage. I did both and everything is again working fine.  :)
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 11, 2015, 05:44:27 pm
I got a similar error as AAADriver but with more.  This is on a RPI 2 and using Eve as the IOS application.  I've been able to add a light to Eve and even have Siri turn it on and off, but to do so I have to move quickly after starting the process using npm run start.  it runs for a few minutes and then dies and spits out the following

Code: [Select]
Create accessory: Theater Cans On
Create accessory: Theater Off
Create accessory: Upper Level Temp AM
Create accessory: Upper Level Temp PM
Create accessory: Vol 45
Create accessory: Vol 55
Create accessory: Vol 70
Create accessory: Watch Movie
Create accessory: Watch TV
Create accessory: Water Valve Alert
Create accessory: Weather Announcement
Create accessory: Workout Start
Create accessory: Xbmc_lights_pause
Create accessory: xbmc_lights_play
Create accessory: xbmc_lights_resume
Create accessory: xbmc_stop_or_finish
TCP server accepting connection on port: 51826
HAP Server is listening
TCP server accepting connection on port: 51828
HAP Server is listening
TCP server accepting connection on port: 51830
HAP Server is listening
TCP server accepting connection on port: 51832
HAP Server is listening
TCP server accepting connection on port: 51834
HAP Server is listening
TCP server accepting connection on port: 51836
HAP Server is listening
TCP server accepting connection on port: 5

...........lots more repeating entries with different port numbers.......

Code: [Select]
TCP server accepting connection on port: 52012
HAP Server is listening
TCP server accepting connection on port: 52014
HAP Server is listening
TCP server accepting connection on port: 52016
HAP Server is listening
TCP server accepting connection on port: 52018
HAP Server is listening
TCP server accepting connection on port: 52020
HAP Server is listening
TCP server accepting connection on port: 52022
HAP Server is listening
TCP server accepting connection on port: 52024
HAP Server is listening
TCP server accepting connection on port: 52026
HAP Server is listening
TCP server accepting connection on port: 52028
HAP Server is listening
TCP server accepting connection on port: 52030
HAP Server is listening
New Session 49358
Server Connection Established 43586
Start Verify M1
Verify M1 Finished
Client Disconnected
Server Disconnected
New Session 49359
Server Connection Established 43587
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success
Client Disconnected
Server Disconnected
New Session 49360
Server Connection Established 43588
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
Characteristics.js:valueForUpdate(): called, Siri has asked for the accessory's status
New Session 49361
Server Connection Established 37977
Start Pair M1
Start Pair M3
Start Pair M5
/home/pi/VeraHomeKitBridge/node_modules/node-persist/local-storage.js:33
        if (err) throw err;
                       ^
Error: EACCES, open 'persist/C1:60:2A:32:AB:5FE4FC939E-61FC-4A29-AC67-16576EAA08F3'
    at Error (native)

npm ERR! Linux 3.18.11-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log
pi@raspberrypi ~/VeraHomeKitBridge $ ls
accessories  app.js  config.json  lib  LICENSE  node_modules  npm-debug.log  package.json  persist  README.md
pi@raspberrypi ~/VeraHomeKitBridge $ cat npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'start' ]
2 info using npm@2.11.2
3 info using node@v0.12.6
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart VeraHomeKitBridge@1.0.0
6 info start VeraHomeKitBridge@1.0.0
7 verbose unsafe-perm in lifecycle true
8 info VeraHomeKitBridge@1.0.0 Failed to exec start script
9 verbose stack Error: VeraHomeKitBridge@1.0.0 start: `node app.js`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid VeraHomeKitBridge@1.0.0
11 verbose cwd /home/pi/VeraHomeKitBridge
12 error Linux 3.18.11-v7+
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
14 error node v0.12.6
15 error npm  v2.11.2
16 error code ELIFECYCLE
17 error VeraHomeKitBridge@1.0.0 start: `node app.js`
17 error Exit status 1
18 error Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
18 error This is most likely a problem with the VeraHomeKitBridge package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node app.js
18 error You can get their info via:
18 error     npm owner ls VeraHomeKitBridge
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

Anyone have any ideas what the issue might be?  It seems to be very unstable.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on September 11, 2015, 06:35:14 pm
Do you think there's an issue since it's opening up a bunch of ports, is that the point of your first log? Because it does that by design. One port per device.

In your second log it's having issues with something in the persist folder. You can delete that whole folder and let it recreate it, maybe bad permissions?
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 11, 2015, 08:45:55 pm
I sort of figured that it was a port-per-device thing showing in the log...I was attempting to give a bit of context in terms of "it seems to be creating all the accessory entries fine and then moves on to creating ports for them, so that all seems good..."

I will delete the persist folder and try again.  Honestly, I did have a bit of trouble / trial and error getting this all installed and running and I'm not sure where I 'sudo su'-ed and where I 'sudo'-ed back to pi (running this on an RPI 2).  If I chmod 777 the whole VeraHomeBridgeKit folder and sub-folders, would that help to eliminate any permission issues between the root and pi user?  I know just enough linux to be dangerous to myself...

Also, a quick question in terms of using an IOS homekit app, if you don't mind.  Am I correct in assuming that when it asks for the key to pair an accessory that it is the 031-45-154 code it is asking for?  I see that's part of the config.json file, but I wasn't sure if that PIN gets entered for every device as well, kind of like bluetooth pairing...

Thanks
Title: Re: News about HomeKit and Vera
Post by: magimat on September 11, 2015, 08:47:13 pm
hey guys,

First of all thank you very much to all the one who have been working on this thing an publishing some info about how to set it up.

I was able to make it all work running the bridge on my macbook and it is really cool being able to control my house using siri !

But now I'd like to run the bridge on my nas (Synology DS213) and I've been following the tutorial posted here a few pages back, but when it comes to the point of compiling node, I get the following error after the make command:

#  error "Your CPU's ARM architecture is not supported yet"

I know the message is pretty clear, but I was wondering if there could be any work around for that or am I really out of luck with my ds213?  I'm asking, because there is an offocial Synology node.js package available and I was able to sucessfully install it on my nas, but for some reason, I can't compile it myself from the sources...

SO if any linux guru out there can ehlp me out, it would be great, if not.. I guess I will have to find some other place to run this thing.. may worth getting a rpi.. or just run it on my mac for a while.
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 14, 2015, 03:59:52 pm
I deleted my persist folder and started over and have had better results.  Part of my problem seems to have been starting the setup using the Eve app on one iPad and then continuing on another a bit later.  The full over-the-air homekit "database" transfer had not fully completed, I guess.  In addition, when asked to type in device pin for adding an accessory, I was typing 031-45-154 instead of just 03145154 and that seemed to crash the homekit server.

So, I have now been able to add several new devices but I still find the server process a bit unstable.  I'm using the Eve app and when I try to add a new accessory, it sometimes finds a bunch of devices and sometimes find only a handful.  Other times a device shows as unreachable in the app and Siri reports the same when I ask her to turn on the light.  Does anyone else have this problem?  Maybe it is because I'm ssh-ing to the Pi?  Perhaps the process is killed when my ssh session is terminated?  I tried using forever but that doesn't seem to work either.  Is the Eve app the problem?  Anyone using anything different that they would recommend? 

Thanks in advance. 
Title: Re: News about HomeKit and Vera
Post by: AAADiver on September 14, 2015, 05:39:06 pm
Hi CTguess -

I tried "forever" and it seemed to work well but still had issues with the system crashing or stopping every 24-36 hrs so now I setup my RPI2 to auto-run VeraHomeKitBridge on boot and a cron to reboot every night at midnight. Since then, Siri has been available 5 days straight with no gaps :-).

I'm running IOS9.1 Beta on my Iphone & Ipad mini and Debian on the RPI2.....all is good
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 14, 2015, 10:58:19 pm
AAADriver,

That sounds promising.  I have researched this topic a bit over the last few days and have found varying opinions and options on how to auto run stuff on the RPI2.  Would you mind sharing your setup?   Getting something from someone whose done exactly what I want to do in terms of server/platform, etc. would be very helpful.  Do you somehow have the pi user auto login as well? 

Thanks!
Title: Re: News about HomeKit and Vera
Post by: AAADiver on September 15, 2015, 12:45:49 am
I'm still learning but this is what I did:

To force midnight reboot, edit crontab using the below command and add the following line as shown:

root@raspberrypi:~# sudo nano /etc/crontab

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 0 * * * root reboot

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repo$
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repo$
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repo$
#


To auto run app.js. add the following command to rc.local:

sudo su - -c 'node /VeraHomeKitBridge/app.js < /dev/null &'

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sudo su - -c 'node /VeraHomeKitBridge/app.js < /dev/null &'

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

exit 0
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 15, 2015, 10:33:33 am
AAADriver, thanks so much.  I will try it tonight when I get home.

Did you have to do anything to make the pi user automatically login after the reboot or does the rc.local file supersede that and run regardless of a user login?

I also have an Amazon Echo and have been playing around with that bridge.  I'm assuming I can just add the java command to start that up as the next line in the file.  Anyone know a reason that wouldn't work? 

Again, I'll try it tonight and report back in case this helps someone else out. 
Title: Re: News about HomeKit and Vera
Post by: gregorito on September 15, 2015, 07:16:57 pm
Hi,

So I struggled to get this working on my macbook pro and finally got it:

1. Install Node.Js
You can use the installer package.

2.Run This:
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
cd VeraHomeKitBridge
sudo npm install
cd lib/HAP-NodeJS
sudo npm install
cd

3. Now go edit the config file
Change the Vera IP. (You can do this using finder if you struggle wit terminal commands)

4. Run it
sudo npm run start

Download a homekit compatible app.
Add devices by entering the code manually:

031-45-154

Viola!  ;D

Thanks for posting. I appreciate it. I followed these instructions but I still get an error.  :'( Could someone possibly help me with ideas how to correct this? Thanks
These are the errors I am getting:
"Starting Vera HomeKit Bridge...
module.js:338
    throw err;
    ^

Error: Cannot find module 'ed25519'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/***/VeraHomeKitBridge/lib/HAP-NodeJS/Server.js:6:15)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/***/VeraHomeKitBridge/npm-debug.log"
Title: Re: News about HomeKit and Vera
Post by: AAADiver on September 15, 2015, 09:59:08 pm
To auto-login under PI, I simply edited the /etc/inittab file towards the bottom to say:

1:2345:respawn:/sbin/getty --autologin pi --noclear 38400 tty1

the rest rest remain unchanged:
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 16, 2015, 09:55:27 am
@AAADriver

My attempts to have the bridge autostart have been a bit frustrating and unsuccessful up to this point.

I tried this command: sudo su - -c 'node /VeraHomeKitBridge/app.js < /dev/null &' but that didn't work.  I figured out that I had to change mine to a slightly different syntax of  sudo su --c '/usr/local/bin/node VeraHomeKitBridge/app.js < /dev/null &'  which I figure is just a slight difference in some user setup, i.e. the VeraHomeKitBridge is a directory under my pi user's home and may not be in your setup.

So, when I run that command from just the normal command prompt it works great.  But, when I put it into rc.local and reboot I get no indication that it works.  I don't see anything with 'node' or 'npm' as a process when I do a ps -ef to check for running processes.  Also, the HomeKit app I am attempting to use (MyHomeTouch) is unresponsive as if the server side is not running.

Is there a way to check to see if the process is running other than ps -ef?  I assume a background process like this would show up with that command, but my linux skills are 'beginner' at best so I might be wrong. 

As a check to see if the rc.local thing works at all, I added the java command for the echo bridge in java -jar -Dtrace.upnp=true -Dupnp.strict=true -Dvtwo.compatibility=false -Dvera.address=192.168.1.162 -Dupnp.config.address=192.168.1.19 /usr/local//habridge/ha-bridge-0.4.4.jar 2>&1 | tee /usr/local/habridge/habridge.log & and I see that after reboot.  That seems to indicate the rc.local file is setup correctly.

Any ideas?  I was researching other ways and tried to put the command in crontab but that seemed to cause some issues...I had to do a hard reset (pull the plug) to be able to ssh back into the Pi.  I see some /etc/init.d examples on the internet and may try those next.  I just can't understand why the command you gave me works from a normal prompt but does not seem to do anything inside rc.local

Title: Re: News about HomeKit and Vera
Post by: AAADiver on September 16, 2015, 11:44:11 am
Hi CTGuess -

I have to admit, I'm a complete noob as well... All of my success has been through forum and google searches.

I believe you are very close but are failing due to an error in the command directory structure. You need to be explicit and include the full directory paths. My guess is you simply need to add a "/" in front of   VeraHomeKitBridge/app.js but it depends on your specific directory structure. I was successful by first setting up PI auto login. From there, I tested the command string without changing users or directories. Get that to work and you should be golden.

Let me know how you do,
AAADiver
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 16, 2015, 11:56:09 am
advantage of a Pi....i brought the thing to work with me and hooked it up to a second monitor at my desk and was able to watch the full start up.  It was complaining about /VeraHomeKitBridge/app.js  even though when I previously put a / in front it didn't seem to like that. 

Anyways....to fix it I gave the full path of /home/pi/VeraHomeKitBridge and now it seems to work.  Of course, I blew away my persist folder last night trying to force a full "fresh" install, so it has now error-ed out since it can't find my devices on my home network.  But, at least it is starting and I see the progress.  I'm viewing this exercise as validation that the 3.5 lcd pi plate I ordered a couple days ago to be able to easily see the status of stuff is a sound investment.

Thanks for all your help...hopefully the bridge will be stable enough to stay up a full day like yours. 
Title: Re: News about HomeKit and Vera
Post by: s4nup on September 16, 2015, 01:18:58 pm
Anyone had any issues with Siri not finding any devices?? I can see the device in my touch home, but siri can't see any of my devices.

Thanjs
Title: Re: News about HomeKit and Vera
Post by: gregorito on September 16, 2015, 06:35:19 pm

Code: [Select]
Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
/home/VeraHomeKitBridge/app.js:22
            processDevices(body.devices);
                               ^
TypeError: Cannot read property 'devices' of undefined
    at Request._callback (/home/VeraHomeKitBridge/app.js:22:32)
    at self.callback (/home/VeraHomeKitBridge/node_modules/request/request.js:373:22)
    at Request.emit (events.js:107:17)
    at Request.onRequestError (/home/VeraHomeKitBridge/node_modules/request/request.js:971:8)
    at ClientRequest.emit (events.js:107:17)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

npm ERR! Linux 3.10.35
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!


Starting Vera HomeKit Bridge...
/Users/***/VeraHomeKitBridge/app.js:22
            processDevices(body.devices);
                               ^
TypeError: Cannot read property 'devices' of undefined
    at Request._callback (/Users/***/VeraHomeKitBridge/app.js:22:32)
    at self.callback (/Users/gpapiez/VeraHomeKitBridge/node_modules/request/request.js:373:22)
    at Request.emit (events.js:107:17)
    at Request.onRequestError (/Users/gpapiez/VeraHomeKitBridge/node_modules/request/request.js:971:8)
    at ClientRequest.emit (events.js:107:17)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

npm ERR! Darwin 15.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1



Getting the same error on MacOSX. Could anyone help please?
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 16, 2015, 11:06:46 pm
@gregorito

It would seem to me that you have not set the Vera IP address properly.  It can't find your devices and the only devices it can look for are those setup in your Vera.   Verify the IP address correct.  I don't know if this could be causing problems, but also make sure your Vera is not secured, meaning local access is blocked. 
Title: Re: News about HomeKit and Vera
Post by: gregorito on September 16, 2015, 11:18:28 pm
@ctguess
Thanks for trying to help me with troubleshooting. I double checked Vera's IP in the config.json file and it's correct. its 10.0.1.17. I am able to see vera if I point my browser to that IP address, so I am assuming its address is not secured/blocked.
Any other thoughts?
Title: Re: News about HomeKit and Vera
Post by: boojew on September 17, 2015, 07:08:34 pm
I guess what I meant was instead of relying on Vera (the company) to build a better UI or a better app or relying on 3rd party developers that have a Vera to build better Vera apps or cool things for people to use... With homekit (at least for us iOS users) you have the potential for a developer that has for example a SmartThings hub or a wink hub to build some awesome tools or apps that can be used by people that have a Vera or a Homeseer hub. 

I think what's possible here is that you could take all your scenes and logic out of Vera and instead put it into a homekit app.

Just to clarify my view on home automation, I have sensors and scenes and logic that automated everything without me having to do anything. However there's times when I'm in bed and I want to adjust the fan or I'm on the couch and want to dim the lights. Being able to tell Siri, turn the fan to 50% is so simple and easy vs using an app or getting up and going to a switch.


Sent from my iPhone using Tapatalk


Yea this is what I'm after. Has anyone found a way to get siri to trigger a Vera scene? Would a virtual switch work?
Title: Re: News about HomeKit and Vera
Post by: MDoc on September 19, 2015, 04:35:22 pm
Got the Server Installed and Running... but when I run either Eve or MyTouchHome I get "iCloud Data Sync in currently progress.  Please try again later... "
and does not let me proceed.  Tried resetting the phone, iCloud, Keychain..ETC   but nothing has helped.
Has anyone else experienced this?
Title: Re: News about HomeKit and Vera
Post by: AAADiver on September 19, 2015, 04:48:33 pm
Yes - check to ensure your "Home Name"  hasn't changed. Mine had in EVE.
Title: Re: News about HomeKit and Vera
Post by: Bertin on September 20, 2015, 07:36:28 am
The persist folder, you can delete that to have it recreate devices.

Thank you!

I used
Code: [Select]
rm -rf persist to delete the folder inside the installation directory.

Since the official iOs9 I'm back into getting this working.
Did anyone get this working over iCloud with or without an Apple TV?
Title: Re: News about HomeKit and Vera
Post by: nallan on September 20, 2015, 08:13:43 am
Hi all
I'm having an issue with getting my iPhone 6 ios 9 release using either eve or my touch home to find devices. I'm running on a rp2, avahi daemon is running and Ham server is listening, I see a list of my scenes show up and its opened the ports. But eve and my touch home just sit there searching for accessories. both the iPhone and rp2 are on the same subnet.
Any suggestions on what I've missed?
 
Title: Re: News about HomeKit and Vera
Post by: markwestcott on September 20, 2015, 02:36:44 pm
Hi I am trying to get this to work on OS X 10.10.5 Yosemite following these directions:

Quote
1. Install Node.Js
You can use the installer package.

2.Run This:
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
cd VeraHomeKitBridge
sudo npm install
cd lib/HAP-NodeJS
sudo npm install
cd

3. Now go edit the config file
Change the Vera IP. (You can do this using finder if you struggle wit terminal commands)

4. Run it
sudo npm run start

Download a homekit compatible app.
Add devices by entering the code manually:

031-45-154

But I keep getting error messages

Quote

module.js:338
    throw err;
    ^

Error: Cannot find module './build/Release/curve'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/akcserver/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/curve25519/index.js:1:77)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.1.0
npm ERR! npm  v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/akcserver/VeraHomeKitBridge/npm-debug.log

Seems its looking for curve25519 module. This shows in error when trying to run sudo npm install on lib/HAP-NodeJS. ED25519 is there but no curve. I think this is what's causing issues for some others as this then causes the script to fail since the coding is looking for the wrong curvature quote (curve25519 vs ed25519)....

How can I fix this?
Title: Re: News about HomeKit and Vera
Post by: fiveredcars on September 21, 2015, 06:53:57 am
Hello
Nallan I will suggest to reinstall the verahomekit package with the latest HAP-NodeJS from Hackworth. This solved the issue for me
Title: Re: News about HomeKit and Vera
Post by: nallan on September 26, 2015, 07:44:26 am
Hi
tried building from scratch with the same result. Created a Ubuntu virtual machine in VMware and did the exact same steps and it works fine, so must be something with my base raspbian image. Are people using Raspbian. I've got 4.1.6-v7+ installed.
Title: Re: News about HomeKit and Vera
Post by: ctguess on September 26, 2015, 01:04:40 pm
I had trouble on Raspian too, but eventually got it working.  If you follow the link to go to Hackworth's git page and look and look at the Readme, you will notice these two lines before the main instructions that have been posted and followed many times

Code: [Select]
sudo apt-get install build-essential libavahi-compat-libdnssd-dev git
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -

I can't say I know exactly what they do, but running those then trying the rest of the instructions, all with the sudo command got it working for me on Raspian.

Another tip...I kept sshing into my Pi and starting the process and it kept dying after awhile, even with a & after the command.  Install 'screen' and follow the instructions non the web to create a detached screen session and start the bridge in that session.  Mine has been up and running for 3 days now. 
Title: Re: News about HomeKit and Vera
Post by: goldriver on September 27, 2015, 07:55:20 am
Following Aechelon instructions on installing on a windows machine and besin a complete neophyte in this, I firt had an error about the "node-persit module not find, i then did a nmp install node-persiti, then I had a message about mission srp module, I tried to do the same "nmp install srp" but I have the following error trying to start the process, can anyone help please:


C:\Users\serveur\Downloads\homebridge-vera-win32\homebridge-vera-win32>npm insta
ll srp
npm WARN package.json VeraHomeKitBridge@0.0.0 No repository field.
-
> bignum@0.6.1 install C:\Users\serveur\Downloads\homebridge-vera-win32\homebrid
ge-vera-win32\node_modules\srp\node_modules\bignum
> node-gyp configure build


C:\Users\serveur\Downloads\homebridge-vera-win32\homebridge-vera-win32\node_modu
les\srp\node_modules\bignum>node "C:\Program Files (x86)\nodejs\node_modules\npm
\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build

G?n?ration des projets individuellement dans cette solution. Pour activer la g?n
?ration en parall?le, ajoutez le commutateur "/m".
MSBUILD : error MSB3428: Impossible de charger le composant Visual C++ "VCBuild
.exe". Pour corriger le probl?me, vous devez 1) installer le Kit de d?veloppeme
nt .NET Framework 2.0 SDK, 2) installer Microsoft Visual Studio 2005 ou 3) ajou
ter l'emplacement du composant au chemin d'acc?s syst?me, s'il est install? ail
leurs.  [C:\Users\serveur\Downloads\homebridge-vera-win32\homebridge-vera-win32
\node_modules\srp\node_modules\bignum\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod
e_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\serveur\Downloads\homebridge-vera-win32\homebridge-vera-wi
n32\node_modules\srp\node_modules\bignum
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! bignum@0.6.1 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.6.1 install script.
npm ERR! This is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "srp"
npm ERR! cwd C:\Users\serveur\Downloads\homebridge-vera-win32\homebridge-vera-wi
n32
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Title: Re: News about HomeKit and Vera
Post by: damianxd on October 16, 2015, 05:23:34 pm
First of all, sorry in advance Albeebe for posting this, I do it with all respect for your work.

Here is an updated version of the base code, it should work for everyone on iOS 9.x
https://www.dropbox.com/s/23zx1lxjocdmqbf/Vera-HAP.zip?dl=0 (https://www.dropbox.com/s/23zx1lxjocdmqbf/Vera-HAP.zip?dl=0)

The steps to install it are the same as the original package:
- Install node.js, npm, node-gyp and other things we need:
Code: [Select]
sudo apt-get update
sudo apt-get install nodejs npm git-core libnss-mdns libavahi-compat-libdnssd-dev
sudo npm config set registry http://registry.npmjs.org/
sudo npm install -g node-gyp

- Create an empty folder and Unzip the content of Vera-HAP.zip inside
- Execute the following
Code: [Select]
npm install
cd lib/HAP-NodeJS
npm install
- Edit the file app.js and change it with your Vera's device IP address
- Run the program with the following command in the main folder
Code: [Select]
node app.js- Add your devices to iOS with an app, I recommend this one: https://itunes.apple.com/us/app/mytouchhome/id965142360?mt=8 (https://itunes.apple.com/us/app/mytouchhome/id965142360?mt=8)
- Use the password 03145153 whenever you add a new device to your iOS device.

If you want to use it as a service, you can run it with forever
https://github.com/foreverjs/forever (https://github.com/foreverjs/forever)
** Note: Forever may crash after some days, because of the multiple console.log calls this script has. In a future version I will add a debug option to hide those messages.

Again, all credits are for Albeebe.
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 18, 2015, 07:33:52 pm
First of all, sorry in advance Albeebe for posting this, I do it with all respect for your work.

Here is an updated version of the base code, it should work for everyone on iOS 9.x
https://www.dropbox.com/s/23zx1lxjocdmqbf/Vera-HAP.zip?dl=0 (https://www.dropbox.com/s/23zx1lxjocdmqbf/Vera-HAP.zip?dl=0)

The steps to install it are the same as the original package:
- Install node.js, npm, node-gyp and other things we need:
Code: [Select]
sudo apt-get update
sudo apt-get install nodejs npm git-core libnss-mdns libavahi-compat-libdnssd-dev
sudo npm config set registry http://registry.npmjs.org/
sudo npm install -g node-gyp

- Create an empty folder and Unzip the content of Vera-HAP.zip inside
- Execute the following
Code: [Select]
npm install
cd lib/HAP-NodeJS
npm install
- Run the program with the following command in the main folder
Code: [Select]
node app.js
If you want to use it as a service, you can run it with forever
https://github.com/foreverjs/forever (https://github.com/foreverjs/forever)
** Note: Forever may crash after some days, because of the multiple console.log calls this script has. In a future version I will add a debug option to hide those messages.

Again, all credits are for Albeebe.

Thanks for these instructions.  I followed them and when I run homebridge, it finds all of my devices and it shows them in the Insteon App, however when I go add them and enter the 8 digit code, I get an error popup in the app: "Authentication, Unable to authenticate device communication".  In the console, homebridge gives this error:

Invalid Signature
Client Disconnected
Server Disconnected

Has anybody seen this?

Thanks!
Title: Re: News about HomeKit and Vera
Post by: damianxd on October 18, 2015, 09:52:40 pm
The password is 03145154, it's the same for any device
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 18, 2015, 11:23:46 pm
The password is 03145154, it's the same for any device

Yeah, this happens after I enter that code...
Title: Re: News about HomeKit and Vera
Post by: gregorito on October 21, 2015, 02:50:20 pm
The password is 03145154, it's the same for any device

Yeah, this happens after I enter that code...
Having the same issue on my Mac. Same errors. Have you been able to figure out what's causing the failure?
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 21, 2015, 02:51:52 pm
Nope, it's still broken for me....
Title: Re: News about HomeKit and Vera
Post by: damianxd on October 21, 2015, 03:07:41 pm
I haven't tried this software on mac. I've made the changes on the script with a mac, but the actual software is running on a linux server. I don't even think this can work on mac because it requieres several libraries and I don't know if all of them can be added by using ports.

Maybe you should consider trying this on a vmware with Ubuntu on it and later with a rapsberry pi for a final working setup.
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 21, 2015, 03:13:15 pm
Mine is running on linux on a Raspberry Pi, running Raspbian.  I had it working with an older version of the script, but then it started making me re-add all of my devices to the app every time I restarted the script, so I tried out this latest posted version and am stuck on adding devices...
Title: Re: News about HomeKit and Vera
Post by: damianxd on October 21, 2015, 04:02:46 pm
Can you send me your version with all the node files included?
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 22, 2015, 12:12:10 am
Done.  I sent you a link to download a zip file of my files, along with the output from the console and a screenshot of the Insteon iOS app after I try to add a device.

I tried it a few times just to make sure I wasn't missing a step, but had the same result each time.

I was using the code correctly, 03145154 as written in the app.js file.

I'm running iOS 9.02.  I see that 9.1 is available now so I'll try with that as soon as I get it installed.
The Insteon app is version 1.1.0, Build 67.

I also tried adding with the MyTouchHome app and have the same result though.

Thanks so much for any help.

Title: Re: News about HomeKit and Vera
Post by: gregorito on October 22, 2015, 08:18:15 pm
@ jasonkhonlaw and @ damianxd

I got this running on Mac, but just as jasonkhonlaw, I am getting the same errors. Everything is running. I can see all my devices in MyTouchHome app but adding them manually and entering the code I get the "Authentication, Unable to authenticate device communication". At the same time homebrige server gives these errors in the terminal window : "Invalid Signature, Client Disconnected, Server Disconnected"

If you guys get it working, please share the knowledge!
Thanks!
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on October 24, 2015, 09:22:26 am
Quick question, in order for this to work i need a webserver? or a computer on all the time?
I have the veralite working with my android device and its all good, i'm going to move to a new apartment and I want all light switches be controlled by siri also on the other hand I have an ipad and I want to control my veralite thru the ipad because it's easier to say "hey siri" instead go to my galaxy and unlock it and say the command, thanks
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 24, 2015, 10:26:42 am
Quick question, in order for this to work i need a webserver? or a computer on all the time?
I have the veralite working with my android device and its all good, i'm going to move to a new apartment and I want all light switches be controlled by siri also on the other hand I have an ipad and I want to control my veralite thru the ipad because it's easier to say "hey siri" instead go to my galaxy and unlock it and say the command, thanks

Yes, you'll need a server running all of the time.  A Raspberry Pi is great for this.  I put mine in a case and it just sits in my network panel.  It uses little power and it is silent.
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on October 24, 2015, 04:00:36 pm
Any of you have the steps to installed in a raspberry pie2?
Title: Re: News about HomeKit and Vera
Post by: aleco on October 26, 2015, 11:25:27 am
Hi all,

I am using the HomeBridge Version provided by Hackworth. Everything works fine. The only thing I don't see appearing in my EVE app is the following device:
- Danfoss LC-13 Thermostat Valve.

from Vera's dcoumentation this should be a device of category 5. Unfortunately there is no js file for it. Some other projects have been made to support such devices on Z-Way. Here is a link for that:
https://github.com/nfarina/homebridge/issues/193

If someone can help creating a thermostat.js file for HackWorth's bridge, that would be awesome.
Here is a snippet of the GET replay from my VeraEdge, exposing this device's cpapbilities (in my case I named it "Themostat"):

, { "name": "Thermostat", "altid": "16", "id": 120, "category": 5, "subcategory": 2, "room": 5, "parent": 1, "mode": "HeatOn", "status": "1", "commands": "heater_setpoint", "batterylevel": "89", "setpoint": "14.50", "heat": "14.50", "cool": "14.50", "state": -1, "comment": "" },


Any help is appeciated
Title: Re: News about HomeKit and Vera
Post by: PeterAquino on October 26, 2015, 06:13:57 pm
After tinkering a bit, I was finally able to get this running on a Raspberry Pi 2 (running Raspbian).  As markwestcott mentioned a few posts back, there seems to be a problem with the curve25519 module that is currently linked in the installation package.  During the installation process, this module fails and so the directory "curve25519" is not created. I was able to work around this by pointing to a different version of curve25519.

Note: I performed these steps on my Macbook connected to the RPi2 via SSH. You will likely have to modify them slightly if you're performing this directly on the RPi2.

1. SSH into the RPi2

2. Run the following command to install the dependent Avahi package
Code: [Select]
sudo apt-get install build-essential libavahi-compat-libdnssd-dev git
3. Run the following command to install Node.js
Code: [Select]
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
4. Run the following command to pull down the VeraHomeKitBridge files
Code: [Select]
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
5. Run the following commands to install the bridge
Code: [Select]
cd VeraHomeKitBridge
npm install

6. Now, here's where we have to make the first change.  We need to SCP the following file to your local machine
Quote
~/VeraHomeKitBridge/lib/HAP-NodeJS/package.json

7. Open the package.json file from step 6 and locate the github reference for "curve25519".  This should be around line 8 of the file and will look like this
Code: [Select]
"curve25519": "git://github.com/thejh/node-curve25519",
8. Change the line to read as follows
Code: [Select]
"curve25519": "git://github.com/volschin/node-curve25519",
9. Save and SCP the package.json file back to the RPi2 into the directory form which it came
Quote
~/VeraHomeKitBridge/lib/HAP-NodeJS/

10. Now we can install the node modules by running the following commands
Code: [Select]
cd lib/HAP-NodeJS
npm install

11. Once the installation completes, if you navigate to "~/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules", you will notice that there is a directory for curve25519, but it is named "curve25519_n"

12. Run the following command to rename the directory from "curve25519_n" to "curve25519"
Code: [Select]
mv ~/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/curve25519_n/ ~/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/curve25519
13. At this point, all of the files are in place and you just need to change a few configuration settings specific to your environment.  SCP the following file to your local machine
Quote
~/VeraHomeKitBridge/config.json
14. Modify config.json with your Vera's IP address and update the device name(s) for your garage doors, if applicable

15. Save and SCP the config.json file back to the RPi2 into the directory
Quote
~/VeraHomeKitBridge/

16. Finally, run the following command, from within directory "~/VeraHomeKitBridge/", to start the bridge
Code: [Select]
npm run start
17. At this point, there should be no errors and you are ready to add devices as mentioned in previous posts.
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on October 26, 2015, 11:33:30 pm
IT WORKS!!

Thank you!!!  Followed these instructions exactly and it works great!
Title: Re: News about HomeKit and Vera
Post by: syyid on November 01, 2015, 12:13:27 am
I'm able to install it correctly, it connects with Vera and gets a list of the devices.

When I open MyTouchHome and attempt to add an accessory it pulls up the list but the server crashes immediately afterwards.

Server Connection Established 48048
Start Verify M1
Segmentation fault (core dumped)

It also gives an Exit Status 139.

Edit:
It turns out it has to do with pairing, when I first attempted to do a pairing it crashed and then everytime I retried it was crashing as soon as it got the list of accessories.
I then renamed the accessory (light switch) I was adding and it loaded up the list fine, as soon as I went to add/pair, entered the code and it crashed again.

The app is somehow remembering the prior add's and I think trying to reconnect, reinstalling it isn't fixing that, only renaming the device itself does.

so any suggestions on why pairing and then adding the code 03145154 would cause a crash?
I'm Getting the following , which seems like the pairing itself is causing a reset after which everything goes haywire.

Start Pair M1
Start Pair M3
Start Pair M5
Client Disconnected
Server Disconnected
New Session 49587
Server Connection Established 48906
Segmentation Fault (Core dumped)
Title: Re: News about HomeKit and Vera
Post by: Hackworth on November 01, 2015, 02:47:42 am
I've finally figured out how to fix Siri not finding devices when you know she should. If you use Eve (I don't see a way to do this in MyTouchHome) go to Edit, hit the gear icon next to a device, go to Features -> Used for and select the light bulb icon instead of the three circle square thing under other.

Happy to say this still works swimmingly under iOS 9.1, other than HomeKit being somewhat half baked and you having to reset it and delete the persist folder if something goes caddywompus.

Cheers!
Title: Re: News about HomeKit and Vera
Post by: dalhoj on November 01, 2015, 05:02:16 am
Hi, i got the verahomebridge to work on my Raspberry pi. But i cant add all my devices using Eve.

I have one fibaro dimmer in the living room that dosnt show up in the list, but i have added an other fibaro dimmer that works great.

Is there a way to force it to add a device?

Also some devives shows up in the list in Eve, but when I try to add the , and enter the password. It then fails, and the device cant be added!
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 01, 2015, 06:30:34 am
Can someone help me to set this up please I'm new at this and im really want to integrate my Vera with Siri, I got a rp2 last week but I'm lost.
Thanks


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on November 01, 2015, 11:19:47 am
rmadrid - Please read PeterAquino's post.  I have a Raspberry Pi 2 and followed his instructions exactly to get it to work.  Just post any questions you have.
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 01, 2015, 04:01:08 pm
how i do the step 6? edit the file?
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on November 01, 2015, 04:08:47 pm
Can you send me your version with all the node files included?

Exactly.  I just use WinSCP to log in and modify files.
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 01, 2015, 05:20:20 pm
i got this error so far

> VeraHomeKitBridge@1.0.0 start /home/pi/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Create accessory: Door Lock
Create accessory: J Night Stand
Create accessory: Door
/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^

Error: dns service error: name conflict
    at Error (native)
    at new Advertisement (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
    at Object.startAdvertising (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/Advertiser.js:7:28)
    at Object.publishAccessory (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/Accessory.js:10:29)
    at /home/pi/VeraHomeKitBridge/app.js:160:15
    at Server.onListen (/home/pi/VeraHomeKitBridge/node_modules/portfinder/lib/portfinder.js:49:5)
    at Server.g (events.js:260:16)
    at emitNone (events.js:67:13)
    at Server.emit (events.js:166:7)

npm ERR! Linux 4.1.7-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on November 01, 2015, 08:46:28 pm
Do you have multiple devices named the same in Vera?  Not sure if that's the problem, but they'll need to be unique.
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 02, 2015, 09:18:48 am
No I only have the door lock and the thermostat, something its going on
Title: Re: News about HomeKit and Vera
Post by: PeterAquino on November 02, 2015, 11:31:10 am
@rmadrid20 - Were you able to successfully process each of the installation steps I posted?  Did you skip/have issues with some?
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 03, 2015, 01:41:09 pm
Ok thanks I'll post my issue when I get back home


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 03, 2015, 08:30:07 pm
@PeterAquino @jasonkhonlaw

Congrats for having this working. I tried and tried on the iMac and I was getting the same errors as jasonkhonlaw. So, after seeing him finally getting this work on RPi2, I decided to buy it. I followed your instructions to the letter, but I still get the same error on Raspberry Pi2 as I do on my Mac. Could you guys help. PLEASE!
Here is what it tells me :

npm run start

> VeraHomeKitBridge@1.0.0 start /home/pi/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
/home/pi/VeraHomeKitBridge/app.js:22
            processDevices(body.devices);
                               ^
TypeError: Cannot read property 'devices' of undefined
    at Request._callback (/home/pi/VeraHomeKitBridge/app.js:22:32)
    at self.callback (/home/pi/VeraHomeKitBridge/node_modules/request/request.js:373:22)
    at Request.emit (events.js:107:17)
    at Request.onRequestError (/home/pi/VeraHomeKitBridge/node_modules/request/request.js:971:8)
    at ClientRequest.emit (events.js:107:17)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

npm ERR! Linux 4.1.7-v7+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: PeterAquino on November 04, 2015, 11:47:32 am
Focusing on this line of the error message:
Quote
TypeError: Cannot read property 'devices' of undefined

It's unable to read the Vera's "devices", which would appear that either:
1. The IP address that you needed to enter (into 'config.json') is incorrect
or
2. You did enter the correct IP, but the RPi2 can't find it

The application attempts to pull a list of devices from the Vera.  You can confirm whether or not this works, pretty easily, by opening a web browser on the RPi2 and entering this URL (replace only the X's with your Vera's IP address):
http://x.x.x.x:3480/data_request?id=lu_sdata

What you should get is something that looks similar to this:
Code: [Select]
{ "name": "Front Room", "id": 6, "section": 1 }, { "name": "Garage", "id": 8, "section": 1 },{ "name": "Hallway", "id": 9, "section": 1 },{ "name": "Kitchen", "id": 10, "section": 1 },
{ "name": "Living Room", "id": 11, "section": 1 }, { "name": "Master Bedroom", "id": 4, "section": 1 },{ "name": "Office", "id": 5, "section": 1 }

That URL is what the application is calling in order to retrieve your Vera devices so you should start your troubleshooting there.
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 04, 2015, 02:46:28 pm
@PeterAquino

Thank you for trying to help with troubleshooting. YES, I double checked and IP address of Vera is correct. In my case is 10.0.1.17. so I did what you suggested and yes, I can see that it pulls the devices from the Vera hub. Here is what I get:

Do you have any suggestion for next step in troubleshooting? and AGAIN, thank you so much for at least responding!!!


{ "full": 1, "version": "*1.5.622*", "model": "MiCasaVerde VeraLite", "zwave_heal": 1, "temperature": "F", "serial_number": "35002427\n", "fwd1": "fwd5.mios.com", "fwd2": "fwd6.mios.com", "sections": [ { "name": "My Home", "id": 1 } ], "rooms": [ { "name": "Basement", "id": 2, "section": 1 }, { "name": "Bedroom", "id": 3, "section": 1 }, { "name": "Controllers", "id": 1, "section": 1 }, { "name": "Front Room", "id": 4, "section": 1 }, { "name": "Garage", "id": 7, "section": 1 }, { "name": "Hallway", "id": 8, "section": 1 }, { "name": "Kitchen", "id": 6, "section": 1 }, { "name": "Office", "id": 5, "section": 1 }, { "name": "Outdoor", "id": 9, "section": 1 } ], "scenes": [ { "active": 0, "name": "Day Climate", "id": 4, "room": 0 }, { "active": 0, "name": "Night Climate", "id": 3, "room": 0 }, { "active": 0, "name": "Night Lights OFF", "id": 2, "room": 0, "state": -1, "comment": "" }, { "name": "Night Lights ON", "id": 1, "room": 0, "active": 0 }, { "active": 0, "name": "X-mas OFF", "id": 6, "room": 0, "state": -1, "comment": "" }, { "active": 0, "name": "X-max ON", "id": 5, "room": 0, "state": -1, "comment": "" } ], "devices": [ { "name": "Basement Hue", "altid": "3", "id": 17, "category": 2, "subcategory": 0, "room": 2, "parent": 14, "level": "0", "status": "0" }, { "name": "Basement Hue", "altid": "c3", "id": 18, "category": 0, "subcategory": -1, "room": 1, "parent": 14 }, { "name": "Basement Tall Nightlight ", "altid": "12", "id": 40, "category": 2, "subcategory": 0, "room": 2, "parent": 1, "level": "0", "status": "0", "state": -1, "comment": "" }, { "name": "Bedroom - CO2", "altid": "70:ee:50:02:4d:22-CO2", "id": 33, "category": 12, "subcategory": 0, "room": 0, "parent": 28, "light": "1500" }, { "name": "Bedroom - Humidity", "altid": "70:ee:50:02:4d:22-Humidity", "id": 32, "category": 16, "subcategory": 0, "room": 0, "parent": 28, "humidity": "66" }, { "name": "Bedroom - Noise", "altid": "70:ee:50:02:4d:22-Noise", "id": 35, "category": 12, "subcategory": 0, "room": 0, "parent": 28, "light": "36" }, { "name": "Bedroom - Pressure", "altid": "70:ee:50:02:4d:22-Pressure", "id": 34, "category": 12, "subcategory": 0, "room": 0, "parent": 28, "light": "1021.6" }, { "name": "Bedroom - Temperature", "altid": "70:ee:50:02:4d:22-Temperature", "id": 31, "category": 17, "subcategory": 0, "room": 0, "parent": 28, "temperature": "69.3" }, { "name": "Bedroom Hue", "altid": "2", "id": 19, "category": 2, "subcategory": 0, "room": 3, "parent": 14, "level": "0", "status": "0" }, { "name": "Bedroom Hue", "altid": "c2", "id": 20, "category": 0, "subcategory": -1, "room": 1, "parent": 14 }, { "name": "Bedroom LightStrips", "altid": "5", "id": 21, "category": 2, "subcategory": 0, "room": 3, "parent": 14, "level": "0", "status": "0" }, { "name": "Bedroom LightStrips", "altid": "c5", "id": 22, "category": 0, "subcategory": -1, "room": 1, "parent": 14 }, { "name": "Front Lamp Hue", "altid": "1", "id": 15, "category": 2, "subcategory": 0, "room": 4, "parent": 14, "level": "0", "status": "0" }, { "name": "Front Lamp Hue", "altid": "c1", "id": 16, "category": 0, "subcategory": -1, "room": 1, "parent": 14 }, { "name": "Front LightStrips ", "altid": "4", "id": 23, "category": 2, "subcategory": 0, "room": 4, "parent": 14, "level": "0", "status": "0" }, { "name": "Front LightStrips ", "altid": "c4", "id": 24, "category": 0, "subcategory": -1, "room": 1, "parent": 14 }, { "name": "Front Room Deadbolt", "altid": "34", "id": 27, "category": 7, "subcategory": 0, "room": 4, "parent": 1, "pincodes": "<VERSION=3>10\t1,1,2014-11-15 18:02:43,,1029,Household;\t2,0;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t", "status": "1", "batterylevel": "12", "locked": "0" }, { "name": "Front Spotlights", "altid": "19", "id": 9, "category": 2, "subcategory": 0, "room": 4, "parent": 1, "status": "0", "level": "0", "state": -1, "comment": "" }, { "name": "Netatmo", "altid": "", "id": 28, "category": 0, "subcategory": -1, "room": 1, "parent": 0 }, { "name": "Outdoor - Humidity", "altid": "02:00:00:02:7c:50-Humidity", "id": 30, "category": 16, "subcategory": 0, "room": 0, "parent": 28, "humidity": "92" }, { "name": "Outdoor - Temperature", "altid": "02:00:00:02:7c:50-Temperature", "id": 29, "category": 17, "subcategory": 0, "room": 0, "parent": 28, "temperature": "55.0" }, { "name": "Outdoor Gazebo\/X", "altid": "5", "id": 36, "category": 3, "subcategory": 0, "room": 9, "parent": 1, "status": "0", "state": -1, "comment": "" }, { "name": "Philips Hue Controller", "altid": "", "id": 14, "category": 0, "subcategory": -1, "room": 1, "parent": 0, "ip": "10.0.1.3" }, { "name": "Reading Lamp", "altid": "30", "id": 39, "category": 2, "subcategory": 0, "room": 2, "parent": 1, "status": "1", "level": "50", "state": -1, "comment": "" }, { "name": "Scene Controller", "altid": "17", "id": 7, "category": 14, "subcategory": 0, "room": 1, "parent": 1 }, { "name": "Side Door Deadbolt", "altid": "33", "id": 25, "category": 7, "subcategory": 0, "room": 8, "parent": 1, "pincodes": "<VERSION=3>15\t1,1,2014-11-15 18:01:40,2015-08-02 17:22:24,1029,Household;\t2,1,2015-08-03 17:07:23,,5555,temp;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t", "batterylevel": "2", "status": "1", "state": -1, "comment": "", "locked": "0" }, { "name": "Spotlights-Books", "altid": "2", "id": 3, "category": 2, "subcategory": 0, "room": 5, "parent": 1, "status": "0", "level": "0", "state": -1, "comment": "" }, { "name": "X-mas Tree", "altid": "24", "id": 38, "category": 3, "subcategory": 0, "room": 4, "parent": 1, "status": "0", "state": -1, "comment": "" }, { "name": "X-Max Kitchen Star", "altid": "22", "id": 37, "category": 2, "subcategory": 0, "room": 6, "parent": 1, "status": "0", "level": "0", "state": -1, "comment": "" } ], "categories": [ { "name": "Dimmable Light", "id": 2 }, { "name": "Switch", "id": 3 }, { "name": "Door lock", "id": 7 }, { "name": "Generic Sensor", "id": 12 }, { "name": "Scene Controller", "id": 14 }, { "name": "Humidity Sensor", "id": 16 }, { "name": "Temperature Sensor", "id": 17 } ], "ir": 0, "irtx": "", "loadtime": 1446361228, "dataversion": 361235801, "state": 1, "comment": "Netatmo[28]: Running Lua Startup" }
Title: Re: News about HomeKit and Vera
Post by: Bertin on November 05, 2015, 03:42:26 am
Hi, 

Here is what I did for my RPI B+ I think so not the latest version :-\

Start off with a clean wheezy image.
Set time zones and expand file system.

Code: [Select]
sudo su
Code: [Select]
apt-get update && apt-get upgrade
Code: [Select]
apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev -y

Get nodjs from here:
http://node-arm.herokuapp.com/node_archive_armhf.deb (WinSCP into pi to copy it )
It's not the latest but from my understanding the latest stable version for PI and HAP-NodeJS.

Code: [Select]
dpkg -i node_archive_armhf.deb
Code: [Select]
node -v should yield 12.6
Code: [Select]
npm -v
Now this will take some time:
Code: [Select]
npm install -g node-gyp

REBOOT!

From here all should be good to support VeraHomeKitBridge.

Code: [Select]
git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git
Code: [Select]
cd VeraHomeKitBridge
Code: [Select]
npm install
Code: [Select]
cd lib/HAP-NodeJS
Code: [Select]
npm install
REMEMBER! Set Vera IP or you'll get stuck at:

> VeraHomeKitBridge@1.0.0 start /home/pi/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 05, 2015, 05:40:38 pm
@Bertin

Thanks for your effort and willingness to help. I appreciate it!
I formatted RPi2 and followed step by step. Unfortunately, it did not work :(
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 06, 2015, 04:51:56 pm
I got this error again

/home/pi/VeraHomeKitBridge$ npm run start

> VeraHomeKitBridge@1.0.0 start /home/pi/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
          ^
Error: Module version mismatch. Expected 14, got 46.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

npm ERR! Linux 4.1.7-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 06, 2015, 09:38:11 pm
Ok I think I got it working but now I tell siri to open the door and she answer me with "no device found"
Title: Re: News about HomeKit and Vera
Post by: PeterAquino on November 06, 2015, 11:38:09 pm
Siri's pretty temperamental about when she wants to work. What type of device are you trying to trigger?

I am able to open my garage door by saying: "Open the garage door" (but this only works because I defined the name of the garage door in the config.json file)

I can also turn on/off lights and outlets by saying "Turn on <name of device>" or "Turn <name of device> on", but I've found that it's much more reliable when I use the "Turn on <device>" command.  For example, I can say "Turn on Rope Lights" or "Turn on Whole House Fan"
Title: Re: News about HomeKit and Vera
Post by: bkmar1192 on November 07, 2015, 06:21:10 am
OK I think I am getting closer to getting this to work again...

Through a lot of comments and individual installs of nodes I have got it to run except for two lines:

var srp = require("srp"); in server JS
and
var curve25519 = require("curve25519"); in Encryption.js

If I comment both of those out it will start the server but error as soon as I try to add a device.

I am unable to reinstall sip - I get the following:

> bignum@0.6.1 install /usr/local/lib/node_modules/srp/node_modules/bignum
> node-gyp configure build

  CXX(target) Release/obj.target/bignum/bignum.o
../bignum.cc:172:16: error: expected class name
class BigNum : ObjectWrap {
               ^
../bignum.cc:189:34: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> New(const Arguments& args);
                                 ^~~~~~~~~
                                 v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:190:39: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> ToString(const Arguments& args);
                                      ^~~~~~~~~
                                      v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:191:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Badd(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:192:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Bsub(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:193:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Bmul(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:194:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Bdiv(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:195:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Uadd(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:196:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Usub(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:197:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Umul(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:198:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Udiv(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:199:40: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Umul_2exp(const Arguments& args);
                                       ^~~~~~~~~
                                       v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:200:40: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Udiv_2exp(const Arguments& args);
                                       ^~~~~~~~~
                                       v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:201:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Babs(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:202:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Bneg(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:203:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Bmod(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:204:35: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Umod(const Arguments& args);
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:205:36: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Bpowm(const Arguments& args);
                                   ^~~~~~~~~
                                   v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../bignum.cc:206:36: error: unknown type name 'Arguments'; did you mean
      'v8::internal::Arguments'?
  static Handle<Value> Upowm(const Arguments& args);
                                   ^~~~~~~~~
                                   v8::internal::Arguments
/Users/bertmartin/.node-gyp/4.2.2/include/node/v8.h:139:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/bignum/bignum.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/srp/node_modules/bignum
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "srp" "-g"
npm ERR! node v4.2.2
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! bignum@0.6.1 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.6.1 install script 'node-gyp configure build'.
npm ERR! This is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/bertmartin/Applications/homekit-2/lib/HAP-NodeJS/npm-debug.log
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 07, 2015, 10:01:34 am
@PeterAquino yesterday I tried @Bertin solution and i was able to add the devices and was working (not that well) and all the sudden the server disconnected and I ran the script again and got hanged on SERVER LISTENING didn't move from there, this morning i'm going to format my rbp2 and do it again and see if it works again, I hope someone it's online to help by then
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 07, 2015, 11:33:07 am
Got it working !!!!!!!!!!!!!!!!!!! FINALLYYYYYY !!!!!!!!!!!!!!
Now if I have a front door why i have to tell siri TURN ON FRONT DOOR in order for her to open the door?
Can i change it siri OPEN THE DOOR?
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 07, 2015, 12:06:49 pm
@Bertin

Thanks for your effort and willingness to help. I appreciate it!
I formatted RPi2 and followed step by step. Unfortunately, it did not work :(
One interesting thing I tried was to change IP of Vera to a random IP, just to see what would happen... It gave me the SAME error about not being able to process devices "/home/pi/VeraHomeKitBridge/app.js:22 processDevices(body.devices);" which makes me believe that it does not even get to the point when it reads devices since putting a wrong IP I get the same error.
I am not sure how to troubleshoot it as I don't know programming to be able to figure out when it breaks. I am so frustrated. I guess I am the only one who can't get this to work :(

Also, I can get it to work with the instructions that @damanxd provided! I can see all devices on my iPhone but once I try to add them, enter the password, it shows Authentication, Unable to authenticate device communication".  In the console, homebridge gives this error:Invalid Signature, Client Disconnected, Server Disconnected". Somehow authentication fails. Any thoughts on that?

Thanks everyone contributing to this...
Title: Re: News about HomeKit and Vera
Post by: bkmar1192 on November 09, 2015, 02:53:03 am
Finally got it working my Mac thanks to the recent instructions by damianxd. 

Another question thought - I tried running it via Forever but Forever just says it is preparing the app but don't actually seem to do anything.

Any help would be great!
Title: Re: News about HomeKit and Vera
Post by: simol on November 09, 2015, 03:43:06 am
Hi,
I have installed the home kit on a centos machine, the application start ok:

Quote
[root@server VeraHomeKitBridge]# npm run start

> VeraHomeKitBridge@1.0.0 start /root/VeraHomeKitBridge
> node app.js

Starting Vera HomeKit Bridge...
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Create accessory: Harmony Control
Create accessory: HRM: LUCI
Create accessory: Luce Balcone
Create accessory: Tapparella 1
Create accessory: Tapparella 2
Create accessory: Tapparella 3
Create accessory: Allarme ON chiudi tapparelle
Create accessory: Allarme in corso
Create accessory: Ant. OFF Giorno Tapparelle
Create accessory: Ant. OFF Mattino tapparelle
Create accessory: Ant. OFF Sera Tapparelle
Create accessory: Luce Balcone Alba
Create accessory: Luce Balcone Tramonto
TCP server accepting connection on port: 51826
HAP Server is listening
TCP server accepting connection on port: 51828
HAP Server is listening
TCP server accepting connection on port: 51830
HAP Server is listening
TCP server accepting connection on port: 51832
HAP Server is listening
TCP server accepting connection on port: 51834
HAP Server is listening
TCP server accepting connection on port: 51836
HAP Server is listening
TCP server accepting connection on port: 51838
HAP Server is listening
TCP server accepting connection on port: 51840
HAP Server is listening
TCP server accepting connection on port: 51842
HAP Server is listening
TCP server accepting connection on port: 51844
HAP Server is listening
TCP server accepting connection on port: 51846
HAP Server is listening
TCP server accepting connection on port: 51848
HAP Server is listening
TCP server accepting connection on port: 51850
HAP Server is listening
New Session 61009
Server Connection Established 44638
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success
New Session 63723
Server Connection Established 39174
Start Pair M1
Start Pair M3
Start Pair M5
Client Disconnected
Server Disconnected
New Session 63724
Server Connection Established 38427
Identify!
Identify!
Start Pair M1
Start Pair M3
Start Pair M5
Client Disconnected
Server Disconnected
New Session 63745
Server Connection Established 50098
Start Pair M1
Start Pair M3
Start Pair M5
Client Disconnected
Server Disconnected


But I'm not able to connect through the app that says "Connection Failed" or "Object not found" (the list of all accessories is ok).
Please help me!

Thanks
Title: Re: News about HomeKit and Vera
Post by: bkmar1192 on November 10, 2015, 01:24:08 am
Is anyone else having issues with Accessories being lost after a crash or restart of the system?  I end up having to delete and re-add.  I have tried three different iOS apps all with the same result.

Thanks for any help...
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 11, 2015, 04:56:39 pm
YAY! After numerous trials and weeks of frustrations, I have this working on my iMac using some of @damanxd instructions. THANKS!!! I can't get it to work on RPi2 even if I follow these instructions as adding accessories always fails.

This is a step-by-step guide for complete novices like myself... enjoy.

All credits to @damianxd and everyone who wrote these files and countless lines of code... without you guys, it would never be possible. Big THANKS!

1. Install NodeJS 5.0.0 using installer from their website:
2. Open Terminal app, in Teminal you can type: 'node -v' and should get: 'v5.0.0' and then type: 'npm -v' and should get: '3.3.6'
3. type 'sudo npm config set registry http://registry.npmjs.org/' and press enter
4. type 'sudo npm install -g node-gyp' and press enter
5. Using Safari download: 'https://www.dropbox.com/s/23zx1lxjocdmqbf/Vera-HAP.zip?dl=0'. It will create folder named 'Vera-HAP' in your downloads
6. copy that folder: 'Vera-HAP' to your home directory.
7. Go back to Terminal and type: 'cd Vera-HAP' and press enter, then type 'npm install' and press enter
8. type: 'cd lib/HAP-NodeJS' and press enter
9. type: 'npm install' and press enter
10. Change directory back to Vera-HAP in your home folder (you can type 'cd ..' press enter and then one more time 'cd ..' and press enter).  Make sure it's your Vera-HAP folder in your home directory!
11. type "open ." Folder will open and you will see its contents in the Finder
12. Now you must edit app.js file. Do not use Textedit! use something like TextWrangler , you can download from (http://www.barebones.com/products/textwrangler/)
13. If using TextWrangler, open app.js file and navigate to line 10. Now change your Vera IP address. Do not alter any other symbols !
14. Save the file
15. Go back to Terminal
16. Make sure you are in your Vera-HAP folder in your home directory!
17. Enter 'node app.js' and press enter
18. You should see something like this: "Starting Vera HomeKit Bridge...Create accessory: name of your accessory, TCP server accepting connection on port: 51826, HAP Server is listening
19. Open your iPhone app: I use Elgato Eve but there are others...
20. Click settings, add accessory, chose your accessory, add, add anyway, enter the code manually by typing '031 45 154', you will get a message: 'accessory added'. Do NOT use 031-45-153 as in previous posts, it will FAIL!
21. Repeat step 20 for each accessory you want to add
22. Ask Siri to control an accessory. For example, you can say: "Turn on the Basement Light"
Title: Re: News about HomeKit and Vera
Post by: bkmar1192 on November 14, 2015, 03:51:34 pm
I finally got it working on my Mac as well.  However, after 2 - 5 minutes I get a "Client Disconnect" and a "Server Disconnect" in my console and after that none of the devices that I previously added will show up.  I have to delete them and re-add.  Are you having this issue?

-Bert

YAY! After numerous trials and weeks of frustrations, I have this working on my iMac using some of @damanxd instructions. THANKS!!! I can't get it to work on RPi2 even if I follow these instructions as adding accessories always fails.

This is a step-by-step guide for complete novices like myself... enjoy.

All credits to @damianxd and everyone who wrote these files and countless lines of code... without you guys, it would never be possible. Big THANKS!

1. Install NodeJS 5.0.0 using installer from their website:
2. Open Terminal app, in Teminal you can type: 'node -v' and should get: 'v5.0.0' and then type: 'npm -v' and should get: '3.3.6'
3. type 'sudo npm config set registry http://registry.npmjs.org/' and press enter
4. type 'sudo npm install -g node-gyp' and press enter
5. Using Safari download: 'https://www.dropbox.com/s/23zx1lxjocdmqbf/Vera-HAP.zip?dl=0'. It will create folder named 'Vera-HAP' in your downloads
6. copy that folder: 'Vera-HAP' to your home directory.
7. Go back to Terminal and type: 'cd Vera-HAP' and press enter, then type 'npm install' and press enter
8. type: 'cd lib/HAP-NodeJS' and press enter
9. type: 'npm install' and press enter
10. Change directory back to Vera-HAP in your home folder (you can type 'cd ..' press enter and then one more time 'cd ..' and press enter).  Make sure it's your Vera-HAP folder in your home directory!
11. type "open ." Folder will open and you will see its contents in the Finder
12. Now you must edit app.js file. Do not use Textedit! use something like TextWrangler , you can download from (http://www.barebones.com/products/textwrangler/)
13. If using TextWrangler, open app.js file and navigate to line 10. Now change your Vera IP address. Do not alter any other symbols !
14. Save the file
15. Go back to Terminal
16. Make sure you are in your Vera-HAP folder in your home directory!
17. Enter 'node app.js' and press enter
18. You should see something like this: "Starting Vera HomeKit Bridge...Create accessory: name of your accessory, TCP server accepting connection on port: 51826, HAP Server is listening
19. Open your iPhone app: I use Elgato Eve but there are others...
20. Click settings, add accessory, chose your accessory, add, add anyway, enter the code manually by typing '031 45 154', you will get a message: 'accessory added'. Do NOT use 031-45-153 as in previous posts, it will FAIL!
21. Repeat step 20 for each accessory you want to add
22. Ask Siri to control an accessory. For example, you can say: "Turn on the Basement Light"
Title: Re: News about HomeKit and Vera
Post by: tahitibub on November 14, 2015, 04:23:15 pm
Hi,

First I want to thank you for this great piece of software. It's a very good begining.

I also succeeded in getting this app running on my iMac, but I encounter some issues like Bert (bkmar1192).

Also, when I launch the software again, it seems to work but, when I ask something Siri says something like "Sorry, I did not receive any answer by the system" (translated from French).

When I look at the "Eve" application on my iPhone, all elements are stamped "unreachable".

Please, can you advise about that ?

Regards
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on November 15, 2015, 05:59:13 am
Arrrrggh!

What am I doing wrong?

I have all of my lights working perfectly with Siri. I have a garage door called "Garage Door". I can add the Garage Door accessory to the database using Eve but Eve adds it as a light...is that correct? I suspect not.

My garage door uses the D_DimmableLight1.xml device file...should it? My config.json has Garage Door declared.

If I say "open the garage door" Siri responds that she cannot find any doors.

I'm pretty sure that I am doing something stupid but what?
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on November 16, 2015, 09:54:29 am
Never mind - Sorted it!

Just needed to delete my persists folder and it seems to have unstuck whatever was sticking!
Title: Re: News about HomeKit and Vera
Post by: Timon on November 16, 2015, 12:20:51 pm
Homekit is very new and I expect things will change over time. Once Apple figures out that people are not going to buy a bunch of WiFi light bulbs to put all over their home and people are not going to replace their existing lighting controls they will open up what the bridge can do.

As far as opening locks I can understand Apple wanting to be very carful so they don't get sued due to a security breach.
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 18, 2015, 04:56:35 pm
@bkmar1192
@tahitibub

Guys, I hear your frustrations. Turns out, even though I was able to figure out how to instal it (and you were able to follow the instructions) I am having the same issue: after a few minutes, it stops responding and I need to reset...
After many more trials, I was able to pinpoint where it fails. I was able to come up with a solution to have this working on my iMac and RPi2. I tested it and it works! It's been working for > 3 days now. So here is my contribution with the updated instructions. Credits to everyone who wrote the code. THANKS!

bkmar1192 and tahitibub, you can skip #1-4 as you already have it working.... but if anyone new, trying to install, needs to follow all steps... it's for complete novices, there are other ways to do it, but I wanted to make it as simple as possible..

1. Install NodeJS 5.0.0 using installer from their website:
2. Open Terminal app, in Teminal you can type: 'node -v' and should get: 'v5.0.0' and then type: 'npm -v' and should get: '3.3.6'
3. type 'sudo npm config set registry http://registry.npmjs.org/' and press enter
4. type 'sudo npm install -g node-gyp' and press enter
5. Open terminal and type 'git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git' and press enter
6. Type 'cd VeraHomeKitBridge' and press enter
7. Type 'npm install' and press enter
8. Type: 'cd lib/HAP-NodeJS' and press enter
9. Type "open ." Folder will open and you will see its contents in the Finder. Do not quit terminal
10. Now you must edit 'package.json' file. Do not use Textedit! use something like TextWrangler , you can download from (http://www.barebones.com/products/textwrangler/)
13. If using TextWrangler, open 'package.json' file and navigate to line 7. Now erase the whole line and type: "curve25519": "git://github.com/volschin/node-curve25519" and save. everyhing, including "" must be there, best to just copy from here and paste. Do NOT alter anything else!
14. Go back to terminal, make sure you are still in the right directory (VeraHomeKitBridge/lib/HAP-NodeJS) type 'npm install' and press enter. You will see the names of the packages that were installed at the very end but, curve255519 is will still be missing
15. Type 'npm install curve25519' and it will be installed (for some reason, it won't work without step #13)
16. Type 'cd node_modules' and press enter
17. Type 'open .' and finder window will open
18. Rename the folder 'curve25519-n' to 'curve25519'
18. Go back to Terminal. Change directory back to VeraHomeKitBridge in your home folder (you can type 'cd ..' press enter and then one more time 'cd ..' and press enter and then type 'cd ..' and press enter).
19. Make sure you are in ' VeraHomeKitBridge' folder and type 'open .'. Finder will open this folder
20. Use TextWrangler to open and edit 'config.json', edit line 2 and change Ip address in the "" to your Vera IP address. Do not alter any other symbols!!! Save the file. DO NOT use, TextEdit, it will alter the file and will not run!
21. Go back to Terminal, Make sure you are in ' VeraHomeKitBridge' directory and type 'npm run start' and press enter
22. You should see something like this: "Starting Vera HomeKit Bridge...Create accessory: name of your accessory, TCP server accepting connection on port: 51826, HAP Server is listening
23. Open your iPhone app: I use Elgato Eve but there are others...
24. Click settings, add accessory, chose your accessory, add, add anyway, enter the code manually by typing '031 45 154', you will get a message: 'accessory added'.
25. Repeat step 24 for each accessory you want to add
26. Ask Siri to control an accessory. For example, you can say: "Turn on the Basement Light"

Let me know if you got this working! Enjoy!
Title: Re: News about HomeKit and Vera
Post by: rmadrid20 on November 18, 2015, 05:10:39 pm
What about thermostats and door locks?
I need that if I can't get that I might have to go back to android
Title: Re: News about HomeKit and Vera
Post by: Timon on November 19, 2015, 01:52:42 pm
Not sure you really need home kit since I believe, although I could be wrong, that Apple was going to allow Siri to send commands to non-apple APPs.
Title: Re: News about HomeKit and Vera
Post by: tahitibub on November 20, 2015, 03:16:49 pm
@gregorito

Thank you very much, your solution did the trick on the iMac  : I've been running it for 4 hours without any problem.

(For the beginners, address of the NodeJS site is : https://nodejs.org/en/ (https://nodejs.org/en/) )

I'll try to install it in a Docker container. Here (http://www.cachem.fr/docker-revolution-conteneur/) is an overview (in French) of this emulation system.

Does anybody has already tried to do it ?

Regards

@bkmar1192
@tahitibub

Guys, I hear your frustrations. Turns out, even though I was able to figure out how to instal it (and you were able to follow the instructions) I am having the same issue: after a few minutes, it stops responding and I need to reset...
After many more trials, I was able to pinpoint where it fails. I was able to come up with a solution to have this working on my iMac and RPi2. I tested it and it works! It's been working for > 3 days now. So here is my contribution with the updated instructions. Credits to everyone who wrote the code. THANKS!

bkmar1192 and tahitibub, you can skip #1-4 as you already have it working.... but if anyone new, trying to install, needs to follow all steps... it's for complete novices, there are other ways to do it, but I wanted to make it as simple as possible..

1. Install NodeJS 5.0.0 using installer from their website:
2. Open Terminal app, in Teminal you can type: 'node -v' and should get: 'v5.0.0' and then type: 'npm -v' and should get: '3.3.6'
3. type 'sudo npm config set registry http://registry.npmjs.org/' and press enter
4. type 'sudo npm install -g node-gyp' and press enter
5. Open terminal and type 'git clone --recursive https://github.com/Hackworth/VeraHomeKitBridge.git' and press enter
6. Type 'cd VeraHomeKitBridge' and press enter
7. Type 'npm install' and press enter
8. Type: 'cd lib/HAP-NodeJS' and press enter
9. Type "open ." Folder will open and you will see its contents in the Finder. Do not quit terminal
10. Now you must edit 'package.json' file. Do not use Textedit! use something like TextWrangler , you can download from (http://www.barebones.com/products/textwrangler/)
13. If using TextWrangler, open 'package.json' file and navigate to line 7. Now erase the whole line and type: "curve25519": "git://github.com/volschin/node-curve25519" and save. everyhing, including "" must be there, best to just copy from here and paste. Do NOT alter anything else!
14. Go back to terminal, make sure you are still in the right directory (VeraHomeKitBridge/lib/HAP-NodeJS) type 'npm install' and press enter. You will see the names of the packages that were installed at the very end but, curve255519 is will still be missing
15. Type 'npm install curve25519' and it will be installed (for some reason, it won't work without step #13)
16. Type 'cd node_modules' and press enter
17. Type 'open .' and finder window will open
18. Rename the folder 'curve25519-n' to 'curve25519'
18. Go back to Terminal. Change directory back to VeraHomeKitBridge in your home folder (you can type 'cd ..' press enter and then one more time 'cd ..' and press enter and then type 'cd ..' and press enter).
19. Make sure you are in ' VeraHomeKitBridge' folder and type 'open .'. Finder will open this folder
20. Use TextWrangler to open and edit 'config.json', edit line 2 and change Ip address in the "" to your Vera IP address. Do not alter any other symbols!!! Save the file. DO NOT use, TextEdit, it will alter the file and will not run!
21. Go back to Terminal, Make sure you are in ' VeraHomeKitBridge' directory and type 'npm run start' and press enter
22. You should see something like this: "Starting Vera HomeKit Bridge...Create accessory: name of your accessory, TCP server accepting connection on port: 51826, HAP Server is listening
23. Open your iPhone app: I use Elgato Eve but there are others...
24. Click settings, add accessory, chose your accessory, add, add anyway, enter the code manually by typing '031 45 154', you will get a message: 'accessory added'.
25. Repeat step 24 for each accessory you want to add
26. Ask Siri to control an accessory. For example, you can say: "Turn on the Basement Light"

Let me know if you got this working! Enjoy!
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 20, 2015, 04:58:37 pm
@gregorito

Thank you very much, your solution did the trick on the iMac  : I've been running it for 4 hours without any problem.

(For the beginners, address of the NodeJS site is : https://nodejs.org/en/ (https://nodejs.org/en/) )

I'll try to install it in a Docker container. Here (http://www.cachem.fr/docker-revolution-conteneur/) is an overview (in French) of this emulation system.

Does anybody has already tried to do it ?

Regards


You're welcome! It's so frustrating when no one is willing to help. I don't know anything about docker. I decided to buy RPi2 and it's running the server on it. I think it's totally worth $35

BTW. This solution DOES work remotely as well!
I can issue a command to SIRI being outside my home.
I have an  Appletv 3. I logged in to iCloud on it, then in iPhone preferences I allowed remote connection under Homekit  preferences.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on November 20, 2015, 05:58:22 pm
By the way you do not need to use the latest node.js. 5.10 actually gave me some trouble because it was incompatible with some other programs I was running. 12.7 would work just fine.
Title: Re: News about HomeKit and Vera
Post by: tahitibub on November 22, 2015, 01:57:21 pm
@gregorito,

FYI, I didn't manage to use the system outside my home (Siri says it didn't receive any answer from the system).

I have an iMac (OS X 10.11), an Apple TV4 and a VERA 3.

Is there a specific setting to check anywhere else than on the iPhone and the ATV ?

Regards


You're welcome! It's so frustrating when no one is willing to help. I don't know anything about docker. I decided to buy RPi2 and it's running the server on it. I think it's totally worth $35

BTW. This solution DOES work remotely as well!
I can issue a command to SIRI being outside my home.
I have an  Appletv 3. I logged in to iCloud on it, then in iPhone preferences I allowed remote connection under Homekit  preferences.
Title: Re: News about HomeKit and Vera
Post by: gregorito on November 23, 2015, 12:35:01 am
Did you set the HomeKit preferences in iPhone? You go to Settings/HomeKit/Name of your home/Allow Remote Access
I use AT3, don't know the menu of ATV4 but you must be signed into iCloud using the same log in as for for iPhone iCloud. Also ATV has to be on. So in the settings for sleep, chose: Never

Let me know if that helps


@gregorito,

FYI, I didn't manage to use the system outside my home (Siri says it didn't receive any answer from the system).

I have an iMac (OS X 10.11), an Apple TV4 and a VERA 3.

Is there a specific setting to check anywhere else than on the iPhone and the ATV ?

Regards


You're welcome! It's so frustrating when no one is willing to help. I don't know anything about docker. I decided to buy RPi2 and it's running the server on it. I think it's totally worth $35

BTW. This solution DOES work remotely as well!
I can issue a command to SIRI being outside my home.
I have an  Appletv 3. I logged in to iCloud on it, then in iPhone preferences I allowed remote connection under Homekit  preferences.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on November 23, 2015, 04:15:52 pm
I have had my bridge working on node.js 0.12.5 for quite a few months and just recently had to reset and start from scratch I am suspecting due to iOS9.
I took advantage to update node.js to 0.12.7. There is no need to goof with any of the curve and registry if you use 0.12.7. Just git clone the folder, run the 2 npm installs, edit the config with the vera ip address and you can get going.

What I have observed however is a random failure when adding a device through the eve or the mytouchhome app. The annoying part of it is once it fails, HomeKit won't let you add it again. It will keep popping a device not found message forcing you to either rename the device on the vera or start the config from scratch. With the number of devices I have, It is a time consuming ordeal.
I have been trying to find out what is causing this random failure by monitoring what the bridge is doing and how it communicates with HomeKit. I have a lot of iOS devices on my account, 3 iPads, 1 iPhone, 3 aTV.
What I have observed is that every pairing failure occurred when some other communication to the bridge occurred during the pairing process which in turn either interrupts HomeKit or the Bridge.
My workaround has been the following:
1. Disable communication to all iOS devices except for the one I intend on using to add the Vera devices to HomeKit by putting them in Airplane mode. To disable the aTVs, after I created the house, I would just go to the settings for HomeKit and disable Remote Access.
2. Monitor the status of the bridge: Before starting the pairing of each device, I make sure that the pairing for the previous is completed and it isn't doing something else. The last line from the bridge should be M3: Verify success. It sometimes says something else it is busy establishing communication with HomeKit either for a device or to finishing a pairing. When you pick a device to pair and start the pairing and before you input the code the bridge should say "start pairing M1". If it says something else, abort and try again. Do not input the code! I added over 25 devices this way which was not possible before as I would always end up failing a few randomly if I did not monitor the status.
3. Turn off airplane mode on the iOS devices one by one verifying each time that the HomeKit configuration has been transmitted to each device (which on its own is a whole other mysterious topic) before moving to the next one.
4. If desired enable Remote Access.


So far, it seems to work.

@Hackworth: Seems like the Garage door logic showing on HomeKit is still reversed as reported in Eve or mytouchome although the commands seem to work just fine...
Title: Re: News about HomeKit and Vera
Post by: willyha on November 27, 2015, 12:32:40 pm
Hi Guys,

It is working for me, using Pi2 (Raspbian). I used the instructions of PeterAquino's post.
Thank you PeterAquino

There is just one thing that I would like to config but I did not find any post to help. How to start the " npm run start " at Raspbian boot.

For information only, It's working all devices only with turn on and off (lights, locks and scenes), and It's working with Brazilian Portuquese well.




Title: Re: News about HomeKit and Vera
Post by: wezzix on November 28, 2015, 11:21:50 am
@Hackworth: I think one good point why you would want a dedicated device type for window covering is to not have to use the awkward grammar of "Turn on the window coverings/shades/blinds" but instead say "Open the window coverings/shades/blinds".

Maybe the WINDOW_COVERING_STYPE would make this work? I'm however not sure how to implement this because there seem to be a set of different variables other than dimmable light (WINDOW_COVERING_TARGET_POSITION_CTYPE).

(Great work btw! Finally got it working on Windows 7 using VMPlayer hosting OS X. I tried the windows suggestion from this thread, but there were a bunch of errors of missing .h files I couldn't get past.)

@acn,

Copying my comments on the pull request here:

So I've merged this in for now, but it looks like it's just the same urn and everything from a dimmable light, so I really don't see why you've created a separate WindowCovering.js file instead of just calling createDimmableLight(device) for category 8 devices. Can you explain the reasoning?
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 06, 2015, 08:55:27 am
Hello Everyone

Sorry for the late update, I'd been too busy with my own work to make something new on this, until yesterday when I've finally made what I was hopping for. This is a complete new version of what Albeebe started a while back, but this time it is my own code with almost nothing from the original release.

You can have all the devices connected by room, you can change the password, it should remember all the devices upon restart, set the debug system and add temperature sensors. It should be easier to install too, so I hope less issues on that matter.

Currently dimmer lights are not working since I don't have a way to test those, but I hope to update that during next week (I'm attending to a wedding next Saturday so it may not happen, it will depend of how drunk I will get).

To get the full set of instructions and the lastest version of it, go to this link:
https://github.com/damianxd/VeraLink/ (https://github.com/damianxd/VeraLink/)

If you want to support me on this and allow me to get a dimmer light to test it, you can help me out with a donation here:
https://pledgie.com/campaigns/30716 (https://pledgie.com/campaigns/30716)
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 06, 2015, 08:42:48 pm
Hello Everyone

Sorry for the late update, I'd been too busy with my own work to make something new on this, until yesterday when I've finally made what I was hopping for. This is a complete new version of what Albeebe started a while back, but this time it is my own code with almost nothing from the original release.

You can have all the devices connected by room, you can change the password, it should remember all the devices upon restart, set the debug system and add temperature sensors. It should be easier to install too, so I hope less issues on that matter.

Currently dimmer lights are not working since I don't have a way to test those, but I hope to update that during next week (I'm attending to a wedding next Saturday so it may not happen, it will depend of how drunk I will get).

To get the full set of instructions and the lastest version of it, go to this link:
https://github.com/damianxd/VeraLink/ (https://github.com/damianxd/VeraLink/)

If you want to support me on this and allow me to get a dimmer light to test it, you can help me out with a donation here:
https://pledgie.com/campaigns/30716 (https://pledgie.com/campaigns/30716)

I have this installed on Ubuntu 14.04.  Trying to use Eve to set things up.  We have a fair number of Schlage window-sensors on the system.  This seems to think they're all temperature sensors, and the server crashes as soon as any room with one gets added or once added, gets opened.
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 06, 2015, 08:58:35 pm
Check the config.js file, you can set the sensors or the bridge mode off by changing the value from true to false. The bridge mode is the one that can mix all the devices into one server for each room, if you set that one to false, each device will have a server.

Please check and read the config.js file, most problems can be solved by setting the proper things. Currently I don't have all the setups or devices that are out there, but at least I did it with that in mind.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 06, 2015, 10:24:38 pm
Check the config.js file, you can set the sensors or the bridge mode off by changing the value from true to false. The bridge mode is the one that can mix all the devices into one server for each room, if you set that one to false, each device will have a server.

Please check and read the config.js file, most problems can be solved by setting the proper things. Currently I don't have all the setups or devices that are out there, but at least I did it with that in mind.

That helped a fair amount, in that the server stays up.  Using the Eve app, I can turn things on and off, but it doesn't show the state of devices that were on without its involvement correctly--everything shows "off".  Is that expected?

Have not yet had Siri respond to any requests with anything other than "I didn't quite get that--did you want me to turn all of the [outlets|lights] [on|off]?"  Depending on the request.  So it is recognizing that the thing I am asking for is a light or an outlet.  And is echoing my request back faithfully on the iPhone screen, and knows whether I am asking for on or off.  But seems befuddled beyond that point.

Still, I am impressed that this much works.

--Richard
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 07, 2015, 04:56:16 am
The status is a problem right now, because I know how to get the data from the Vera API but the real problem is the HAP-Nodejs part because I'm using the get callback, but it isn't being trigger when the homekit ask for a status change. Maybe I'm missing something on the documentation, so for now this script is remembering only its own action and not seeing what you manually do with the actual switch. I will try to fix this on a next release.

I forgot to change the description on each device to be the name of the Vera accessory, so all the items will be called the same for Siri. It wasn't intended to be like that, so I will fix that sometime today, but for now, you should use "Insteon+" and use the "Edit device" option, there you can change the name Siri use to control each item. The name need to be all in lowercase and write it exactly like you would tell Siri to start it, like if you would say "Turn on the small office light".
Fixed
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 07, 2015, 10:41:41 am
The status is a problem right now, because I know how to get the data from the Vera API but the real problem is the HAP-Nodejs part because I'm using the get callback, but it isn't being trigger when the homekit ask for a status change. Maybe I'm missing something on the documentation, so for now this script is remembering only its own action and not seeing what you manually do with the actual switch. I will try to fix this on a next release.

I forgot to change the description on each device to be the name of the Vera accessory, so all the items will be called the same for Siri. It wasn't intended to be like that, so I will fix that sometime today, but for now, you should use "Insteon+" and use the "Edit device" option, there you can change the name Siri use to control each item. The name need to be all in lowercase and write it exactly like you would tell Siri to start it, like if you would say "Turn on the small office light".
Fixed

And to install the fix, re-git and start over?

--Richard
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 07, 2015, 10:45:58 am
Forgot to mention--I have several Leviton incandescent dimmer switches sitting around--the kind that go into the wall.  PM me with shipping address if you'd like me to ship you one as my donation to your cause.

--Richard
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 07, 2015, 10:48:24 am
Stop the program, go to the VeraLink folder and do a
Code: [Select]
git pull and restart the script again.
I think you may have troubles with the config.js file, because it will ask to commit the changes on that file. I will rename the config.js file on GIT to config.default.js so next time you can update the code without commiting.

For now I recommend you to save your config.js file, delete the whole folder and clone it again. I've changed the setup instructions with this.

Title: Re: News about HomeKit and Vera
Post by: damianxd on December 07, 2015, 10:50:40 am
Forgot to mention--I have several Leviton incandescent dimmer switches sitting around--the kind that go into the wall.  PM me with shipping address if you'd like me to ship you one as my donation to your cause.

--Richard
That would be awesome! I don't have any dimmer lights to test it right now, but if you want I could add an untested version for you to try for now.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 07, 2015, 09:43:06 pm
Rather large update on https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)

Follow the update instructions, shouldn't have any more weirdness adding devices, it will report back the correct on/off dimmable states, thanks to Adrum for the Pull Requests.

@damianxd Wut. Seriously?

@wezzix I think you're right about that. I don't have a window covering, though, so it would be hard for me to implement this for you.
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 08, 2015, 03:11:24 am
:O I didn't know someone else was working on this beside Albeebe and me, but that code on your github looks exactly like Albeebe's so I'm assuming you are him.

Thanks for starting this, but since there were not so many updates on your code, I did my own version, but without using any of your original work to respect your license. Mine does things a little different and should be easier to install, upgrade and add new future devices, so it can be more of a long term solution.

If you want, I could give you access to my git and we could work together on this.
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 08, 2015, 05:22:42 am
@rlmalisz The dimmer light test is live now, to try it, please do a git pull and change your config file like this:
module.exports = {
    veraIP:  '10.0.1.5',
    happort: 6200,
    cardinality: 0, //Add +1 to this in case you find any trouble while adding your device, all the other devices will have to be re-added too
    bridged: true, //Set to false to use single server for each device instead of one for each room
    includesensor: true, //Include temp sensors on the devices list
    pincode: '031-45-154', //Keep the format ###-##-### and use complex numbers, eg 111-11-111 or 123-45-678 are invalid
    dimmertest: true, //Set this to true to test test a dimmer device
    mainHNpath: './node_modules/hap-nodejs' // Do not edit unless you know what you're doing
};

The status is now working for all the devices :) It took me a while to get what was wrong and why I didn't catch the callback, but now it's fine. It does a pull of the status of all the devices upon start and then it check each one individually on each request from iOS.

For the future of this project, I would like to make more accessories to work, so if anyone has something you want to be working with this, feel free to tell me. It even doesn't need to be a Vera related device, it can be for instance the Phillips Hue lights, Nest, shades rollers or anything you like. You just need to test it for me.

@Hackworth: I just realized that you were working to fix all the issues on Albeebe first release, sorry to disturb you with my version. I truly didn't know, but I hope you can give a look to my code and check how it is.

https://github.com/damianxd/VeraLink (https://github.com/damianxd/VeraLink)
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 08, 2015, 09:22:47 am
@damianxd No. I'm not. And it's Apache licensed. The community doesn't need two of these, it needs one rock solid one which means it needs every nodejs developer interested to help out, not fracture and solicit for donations. Go away.
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 08, 2015, 11:14:53 am
Go away? is that your answer for this?. I mean, you first talk about a rock solid one and instead you throw me away?. I was asking for donations to truly get a dimmer, but since rlmalisz offered to test the dimmer itself, I took that instead.

I bet you didn't even saw my code, but instead you just attacked me. I've been working on this since May this year and you can check it because I did a reply on the second page of this post. I may have been working on this alone, but that doesn't mean it is poorly written, it even uses the latest version of HAP-NodeJS and Tian Zhang allowed me to make my own implementation with it (he added the license today).

I will keep pushing updates and releasing what I think it's better, the community can decide whether or not to keep my own version or yours, but it is my own decision so go away yourself.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 08, 2015, 11:25:23 am
Okay, I will. I don't have the patience or time for a self-righteous blowhard on the interweb. I, you know, like it when my home automation automates, saving me time.
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 08, 2015, 01:03:45 pm
Okay, I will. I don't have the patience or time for a self-righteous blowhard on the interweb. I, you know, like it when my home automation automates, saving me time.
In that, we can agree on.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 08, 2015, 03:22:22 pm
If anyone else feels like re-implementing this, I would strongly encourage you to do it as a https://github.com/nfarina/homebridge (https://github.com/nfarina/homebridge) plugin. In fact, if you do send me a PM and I'd be happy to help out.

For the rest of you, feel free to check out some of the homebridge plugins, you don't need damianxd to add non-Vera related devices https://www.npmjs.com/browse/keyword/homebridge-plugin (https://www.npmjs.com/browse/keyword/homebridge-plugin)
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 08, 2015, 07:08:40 pm
If anyone else feels like re-implementing this, I would strongly encourage you to do it as a https://github.com/nfarina/homebridge (https://github.com/nfarina/homebridge) plugin. In fact, if you do send me a PM and I'd be happy to help out.

For the rest of you, feel free to check out some of the homebridge plugins, you don't need damianxd to add non-Vera related devices https://www.npmjs.com/browse/keyword/homebridge-plugin (https://www.npmjs.com/browse/keyword/homebridge-plugin)

I have been looking at home bridge. It does need a vera plugin though so in the meantime your bridge works.
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 08, 2015, 08:44:18 pm
If anyone else feels like re-implementing this, I would strongly encourage you to do it as a https://github.com/nfarina/homebridge (https://github.com/nfarina/homebridge) plugin. In fact, if you do send me a PM and I'd be happy to help out.

For the rest of you, feel free to check out some of the homebridge plugins, you don't need damianxd to add non-Vera related devices https://www.npmjs.com/browse/keyword/homebridge-plugin (https://www.npmjs.com/browse/keyword/homebridge-plugin)
That's actually a great idea! I didn't know how many plugins are already out for homebrige right now. What do you say if instead of an internet fight, we do this plugin and release it as one GIT?
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 09, 2015, 09:06:59 am
Yes of course  ;D Would you like to take the lead on getting it started? I have a horrific work schedule this month, but I think I can squeeze in some pull requests.
Title: Re: News about HomeKit and Vera
Post by: wezzix on December 09, 2015, 11:52:49 am
How do I upgrade to the latest release?
I'm running Hackworth on OS X which I installed a month back or so, but the repo has changed since then.
I tried
Code: [Select]
git pull
npm install
in the same directory. I get this message:

Error: Cannot find module './lib/HAP-NodeJS/lib/Accessory.js'

I then tried:
Code: [Select]
cd lib/HAP-NodeJS
npm install
- curve25519-n@1.1.0 node_modules/curve25519

But the error is still there.
How do you do this properly?
Thanks,
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 09, 2015, 12:02:30 pm
Have you tried following the instructions in the readme? https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)
Title: Re: News about HomeKit and Vera
Post by: wezzix on December 09, 2015, 01:00:44 pm
No. I see, since I didn't upgrade iOS, I didn't think it applied ("Periodic updates of HAP-NodeJS are required for new versions of iOS"). Will give it a try. I'm sure it will work. It's a pity you have to re add all the devices, it's about 30-60 minutes of work getting all that right.
Thanks for the info, and great work btw!
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 09, 2015, 01:26:54 pm
Ah, gotcha! I'm sorry my wording was confusing. Realistically you don't have to reset HomeKit for *every* upgrade of HAP-NodeJS, but in this particular instance you will. One of the reasons I'd rather this be a homebridge plugin, we can just worry about the Vera side of the integration and not have to worry about HomeKit itself. Thanks!
Title: Re: News about HomeKit and Vera
Post by: damianxd on December 09, 2015, 04:18:02 pm
Yes of course  ;D Would you like to take the lead on getting it started? I have a horrific work schedule this month, but I think I can squeeze in some pull requests.
I'm out for a wedding this week, but I'll start on monday next week :)
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 09, 2015, 09:01:15 pm
I updated my bridge to act as an actual bridge, so you can add one device and it imports everything rather than having to add each individual device, which sucks. Bonus, those random times HomeKit devices to choke on adding a device forcing you to do an entire reset should be eliminated. Follow the full update instructions, including deleting the persist folder and resetting homekit. https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 10, 2015, 05:18:26 am
I updated my bridge to act as an actual bridge, so you can add one device and it imports everything rather than having to add each individual device, which sucks. Bonus, those random times HomeKit devices to choke on adding a device forcing you to do an entire reset should be eliminated. Follow the full update instructions, including deleting the persist folder and resetting homekit. https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)

Hackworth, that is brilliant. Just installed and this last update takes all of the pain away. Very impressive. Thanks man.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 10, 2015, 09:10:48 am
@JuniorJedi Thank you! Glad it's working!  ;D
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 10, 2015, 09:21:27 am
I updated my bridge to act as an actual bridge, so you can add one device and it imports everything rather than having to add each individual device, which sucks. Bonus, those random times HomeKit devices to choke on adding a device forcing you to do an entire reset should be eliminated. Follow the full update instructions, including deleting the persist folder and resetting homekit. https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)

I am probably doing something dumb.  The bridge starts fine and enumerates a boatload of devices (we have many).  Eve finds the bridge, but nothing else.  The little "searching" icon just keeps twirling.  Attempting to pair the bridge itself fails.

I haven't installed the garage door plugin, so I emptied the array of garage door names for now.  But did not delete it.  No sure this should matter, but thought I'd mention it.  I don't see anything troubling in the output of the bridge, nor does it crash.  I just can't get Eve on board with it.

Hints?

--Richard
 
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 10, 2015, 09:47:28 am
Yeah, the garage doors shouldn't mater. I would try resetting everything, stop the bridge, delete the persist folder, reset HomeKit on your iOS device, restart your device, then start the bridge, start Eve and try to pair with the bridge.
Title: Re: News about HomeKit and Vera
Post by: PeterAquino on December 10, 2015, 12:16:53 pm
@Hackworth - great job on the updates sir!

Prior to the recent update, I was attempting to install on an RPi2 and had some issues (as detailed in one of my previous posts).  For this update, I first downgraded Node to v0.12.9 (from v4.2.1) then performed a clean installation of the bridge via the instructions at https://github.com/Hackworth/VeraHomeKitBridge and had NO issues at all.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 10, 2015, 12:22:09 pm
@PeterAquino - Thank you! That's very encouraging to hear! I really need to pull out my Pi and install it there so I can have rock-solid instructions...

@damianxd I gave you push access to my repo  ;)
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 10, 2015, 01:53:13 pm
Just FYI, I am running it on NodeJS 5.1.1 so the downgrade is not mandatory. It just needs to be rebuilt (issue the command "npm rebuild") after NodeJS is upgraded.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 10, 2015, 02:17:28 pm
@anhman - Yep. You're right, I just updated my install/update instructions. For those of you who want to update nodejs to 5.x, run
Code: [Select]
npm update under the root of VeraHomeKitBridge and the lib/HAP-NodeJS folders.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 10, 2015, 09:47:58 pm
Yeah, the garage doors shouldn't mater. I would try resetting everything, stop the bridge, delete the persist folder, reset HomeKit on your iOS device, restart your device, then start the bridge, start Eve and try to pair with the bridge.

No luck.  I still get "Adding Failed Could not connect to accessory".

What's a bit weird is I was (previously) able to get Damian's devices to load and pair.

Should the bridge be producing any chatter on failed connect/pair attempts?  Is there a way to crank up debug chatter?

--Richard
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 10, 2015, 09:55:12 pm
How annoying.

DEBUG=* npm run start
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 11, 2015, 03:22:16 pm
Hackworth, I found a problem if the lock.

It is recognized as a lock correctly in the homekit management apps but somehow the commands it responds to are all power switch:
Eve even uses a power switch logo for it even though the information says it is a lock... it is calling out the correct accessory .js file it seems.

It wasn't bothering me until I found out that the logic has been reversed compared to what it was before: turn on now locks and turn off unlocks.
Is there anyway to make homekit recognize it as an actual door lock just like the garage door?
I will be looking at the lock.js on github.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 11, 2015, 04:05:26 pm
@anhman - Are you saying this used to work correctly and now doesn't? Adrum made some changes to the lock accessory file, I can take a look at the changes but I don't have any locks myself.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 11, 2015, 04:39:10 pm
I think I found the problem. I will test make a push on git.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 11, 2015, 04:46:17 pm
Yeah, it looks like he reversed the logic of this for...I don't know why? I'm sorry, I should have looked at it closer before merging it in, I don't have a lock so it was not on my mind.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 11, 2015, 04:53:43 pm
Okay. Do a git pull and test, please :)
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 11, 2015, 04:59:34 pm
Ok other problem is that it is seen as a switch, not a lock because there is an error in the device definition. I will get this changed too.
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 11, 2015, 10:22:51 pm
Alright after pulling my hair a bit I found out that the version before your edit had the correct logic if the lock device was recognized by homekit as a lock. As it is, it is broadcasted as a light switch which causes the need to invert the logic.

I have it working correctly as a door as seen by Eve (and I assume homekit) with a modified Lock.js but siri does not see any door lock. I assume this was the reason why this accessory used the trick to be disclosed as a power switch. Not sure what else to do as siri clearly knows to look for a door lock.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 11, 2015, 10:28:34 pm
How annoying.

DEBUG=* npm run start

So starting from scratch (rm -rf persist) on the server and killing Eve and resetting the HomeKit on my phone with the iPad on Airplane Mode, I get this sequence:

....
Create accessory: Toggle center door
Create accessory: Toggle north door
Create accessory: Toggle south door
Create accessory: W Greenhouse Door Opened
  EventedHTTPServer Server listening on port 51826 +0ms
  EventedHTTPServer [::ffff:192.168.1.28] New connection from client +14s
  EventedHTTPServer [::ffff:192.168.1.28] HTTP server listening on port 54826 +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /pair-setup +4ms
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-setup +0ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair step 1/5 +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +16ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /pair-setup +10s
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-setup +0ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair step 2/5 +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +21ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /pair-setup +15ms
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-setup +0ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair step 3/5 +1ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair step 4/5 +10ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair step 5/5 +2ms
  Accessory [Vera Bridge] Paired with client 21897FE4-D83E-494E-B387-D5C6B362CCF4 +2ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +9ms
  EventedHTTPServer [::ffff:192.168.1.28] Client connection closed +69ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP connection was closed +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP server was closed +0ms
  EventedHTTPServer [::ffff:192.168.1.28] New connection from client +1s
  EventedHTTPServer [::ffff:192.168.1.28] HTTP server listening on port 54826 +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /pair-verify +2ms
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /pair-verify +23ms
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:22:3D:E3:CE:F6] Pair verify step 2/2 +1ms
  HAPServer [CC:22:3D:E3:CE:F6] Client 21897FE4-D83E-494E-B387-D5C6B362CCF4 verification complete +2ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /accessories +42ms
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +11ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP request: /pairings +405ms
  HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pairings +0ms
  HAPServer [CC:22:3D:E3:CE:F6] Removing pairing info for client +1ms
  Accessory [Vera Bridge] Unpairing with client 21897FE4-D83E-494E-B387-D5C6B362CCF4 +0ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP Repsonse is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.28] Client connection closed +112ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP connection was closed +0ms
  EventedHTTPServer [::ffff:192.168.1.28] HTTP server was closed +1ms

At this point, I have the "adding failed" message on my phone.  It looks from the above like all went well, but I guess not.

The server is running Ubuntu 14.04.  "node -v" gives "v5.2.0".  I made sure the firewall was disabled, had no effect.

FWIW, I have uninstalled Eve and reinstalled, in case it was hanging on to some bad state.  Made no difference.

--Richard
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 11, 2015, 11:35:25 pm
Hackworth, I figured it out. I have a fully working lock accessory I am pulling on your repo. Please merge!
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 12, 2015, 10:47:15 am
Hmmmm...everything was fine until some time early this morning when Vera stopped responding to Siri.

Now when I nam run start I see the accessories created and then this:

Create accessory: Welcome Home Light
/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^
Error: dns service error: name conflict
    at Error (native)
    at new Advertisement (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
    at Advertiser.startAdvertising (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/Advertiser.js:43:30)
    at Bridge.Accessory._onListening (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/Accessory.js:352:20)
    at HAPServer.emit (events.js:104:17)
    at HAPServer._onListening (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/HAPServer.js:159:8)
    at EventedHTTPServer.emit (events.js:104:17)
    at EventedHTTPServer.<anonymous> (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/util/eventedhttp.js:62:10)
    at Server.emit (events.js:104:17)

npm ERR! Linux 3.18.11+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log


What does it mean? There couldn't possibly be a machine name conflict on my LAN.


Any ideas anyone?

Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 12, 2015, 10:53:04 am
Are you sure you are not running multiple instances of the bridge with the same name? Did you make sure your first instance was killed before trying a new one?
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 12, 2015, 11:58:23 am
Are you sure you are not running multiple instances of the bridge with the same name? Did you make sure your first instance was killed before trying a new one?

Two questions so two answers:

No

No

All sorted - thank you @anhman  :-[
Title: Re: News about HomeKit and Vera
Post by: Kalapa on December 13, 2015, 12:21:09 am
@Hackworth - Great Job.
Just installed VeraHomeKitBridge on Linux Mint system and working great via MyTouchHome app.
Title: Re: News about HomeKit and Vera
Post by: Kalapa on December 14, 2015, 01:19:06 am
Hmmm .. when I tried the same on "ubuntu container" (Intel Synology)  i get the following error.. it was working fine my Linux Mint box.

npm run start failed with followng msg

Error : dns service error : unknown

Any hints?


 
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 14, 2015, 09:58:27 am
@rlmalisz - I don't know what's going on, it's something particular to your setup.

@Kalapa - Do an npm rebuild in both VeraHomeKitBridge and VeraHomeKitBridge/lib/HAP-NodeJS
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 14, 2015, 12:00:04 pm
Understood.  Could you be so good as to post the "DEBUG=* npm start run" chatter for a non-problem launch and connect?  I can try to drill down on this on my own.  But it would be good to see what success looks like.

--Richard
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 14, 2015, 01:23:14 pm
@rlmalisz Absolutely, once I'm home. In the meantime, I've been poking around for other people with the issue and they're suggesting one of your devices is causing it to die. I've got two ideas, one you could look at your http://IPADDRESS:51826/accessories file (after running it through a json formatter service) and see if anything looks wrong, for instance a value is outside a min or max value. The second is you could git checkout 15d263 which is the commit right before I converted this to bridge mode, then go add *every* device individually and note which fails to add.

Also, do you have window coverings or garage doors?
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 14, 2015, 02:04:30 pm
@rlmalisz Absolutely, once I'm home. In the meantime, I've been poking around for other people with the issue and they're suggesting one of your devices is causing it to die. I've got two ideas, one you could look at your http://IPADDRESS:51826/accessories file (after running it through a json formatter service) and see if anything looks wrong, for instance a value is outside a min or max value. The second is you could git checkout 15d263 which is the commit right before I converted this to bridge mode, then go add *every* device individually and note which fails to add.

Also, do you have window coverings or garage doors?

Can do, it may be a day or two before I get it done.

Yes on garage doors, using the garage door plugin.  And yes on window coverings, but they're being controlled as dimmable lights via a plugin I wrote myself.  They're Hunter Douglas, so they actually report position and can have position set explicitly, so the window covering Vera interface was underwhelming.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 14, 2015, 02:13:14 pm
You might want to poke at those two first, especially the window covering. I too am using the garage door plugin, so I'm reasonably sure that's not causing the issue. I don't have any window coverings, so I'm less sure about that.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 14, 2015, 04:30:47 pm
BTW, I am still on UI5 (early version) Vera 2.  Hope to migrate over the Christmas break to the V3 that's been sitting in a drawer for a year+.

I would hope that would make no difference.  But it's worth mentioning.

--Richard
Title: Re: News about HomeKit and Vera
Post by: hollicgn on December 15, 2015, 02:38:40 am
I'm using VeraHomeKitBridge (latest updates) on my Raspberry (newest Desbian Jessie lite OS) and everything works fine so far  :D

But I have 2 questions:

1)
I start the HomeKitBridge in the appropriate directory with "nmp run start" but I'd like to start the Bridge automatically during the booting process of my raspberry.  I've tried to realize that with "Forever" and "PM2" but it doesn't work. Maybe I'm to stupid for that  ???
Can anybody explain me how I can realize the autostart of VeraHomeKitBridge, maybe with a script or something?

2)
I use several roller shutters (window coverings), controlled by Vera. In EVE or mytouchhome they were shown as dimmers. So I have to say ON or OF to Siri instead of OPEN or CLOSE. I know that Apple HomeKit actually supports no roller shutters. But is there a workaround? I found something in this forum to use it as a door lock  ???

Sorry in advance if these are stupid questions, but I'm a beginner  :-\
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 15, 2015, 10:15:19 pm
@rlmalisz Absolutely, once I'm home. In the meantime, I've been poking around for other people with the issue and they're suggesting one of your devices is causing it to die. I've got two ideas, one you could look at your http://IPADDRESS:51826/accessories file (after running it through a json formatter service) and see if anything looks wrong, for instance a value is outside a min or max value. The second is you could git checkout 15d263 which is the commit right before I converted this to bridge mode, then go add *every* device individually and note which fails to add.

Also, do you have window coverings or garage doors?

So the formatted json from "accessories" for our system is just shy of 23K lines.  This is going to take some time.  Is there any chance that we're blowing out the end of some conservatively sized data structure?

--Richard

Can do, it may be a day or two before I get it done.

Yes on garage doors, using the garage door plugin.  And yes on window coverings, but they're being controlled as dimmable lights via a plugin I wrote myself.  They're Hunter Douglas, so they actually report position and can have position set explicitly, so the window covering Vera interface was underwhelming.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 15, 2015, 10:19:57 pm
@rlmalisz Absolutely, once I'm home. In the meantime, I've been poking around for other people with the issue and they're suggesting one of your devices is causing it to die. I've got two ideas, one you could look at your http://IPADDRESS:51826/accessories file (after running it through a json formatter service) and see if anything looks wrong, for instance a value is outside a min or max value. The second is you could git checkout 15d263 which is the commit right before I converted this to bridge mode, then go add *every* device individually and note which fails to add.

Also, do you have window coverings or garage doors?

So the formatted json from "accessories" for our system is just shy of 23K lines.  This is going to take some time.  Is there any chance that we're blowing out the end of some conservatively sized data structure?

--Richard

Can do, it may be a day or two before I get it done.

Yes on garage doors, using the garage door plugin.  And yes on window coverings, but they're being controlled as dimmable lights via a plugin I wrote myself.  They're Hunter Douglas, so they actually report position and can have position set explicitly, so the window covering Vera interface was underwhelming.

So I am seeing some entries in the accessories file where the description is "BlaBla":

Code: [Select]
                  {

                     "iid": 9,

                     "type": "0000000E-0000-1000-8000-0026BB765291",

                     "perms": [

                        "pr",

                        "ev"

                     ],

                     "format": "int",

                     "value": 0,

                     "description": "BlaBla",

                     "maxValue": 4,

                     "minValue": 0,

                     "minStep": 1

                  },

Is this odd, or what?
Title: Re: News about HomeKit and Vera
Post by: guest20975 on December 16, 2015, 10:38:44 am
 Have 2 Vera edges covering my home. I want to use VeraHomeKitBridge to control both Vera's, how do I do this?(I have successfully set up for one Vera)
Title: Re: News about HomeKit and Vera
Post by: rafale77 on December 16, 2015, 12:17:26 pm
You can setup two bridges on different ports of the same computer or use two computers each with its own bridge. You would also have to look into the code to find where the bridge port is defined and change it manually. If I remember correctly it is in app.js towards the end.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 16, 2015, 02:12:30 pm
@rlmalisz -  ;D Or What. That's actually in the HAP-NodeJS Garage Door accessory template.

@dsroberts1945 - You can't run it twice on the same box since it has to register a name in Bonjour. You could run it in a bridged VM or run it on a separate box.
Title: Re: News about HomeKit and Vera
Post by: simol on December 17, 2015, 04:48:40 pm
Hi,
I have the same issue of rlmalisz (or similar):

Code: [Select]
VeraLink ------ Temp sensor Added: Allarme in corso +0ms
  VeraLink ------ Temp sensor Added: Antincendio +11ms
  VeraLink ------ Switch Added: Luce Balcone +10ms
  VeraLink ------ Switch Added: Luce Cucina +3ms
  VeraLink ------ Switch Added: Luce Mobile +2ms
  VeraLink ------ Switch Added: Luci Natale +1ms
  VeraLink ------ Switch Added: Multimedia +3ms
  VeraLink ------ Temp sensor Added: Radar Balcone +1ms
  VeraLink ------ Temp sensor Added: Stato Allarme +2ms
  Accessory [Allarme in corso] Creating new AccessoryInfo for our HAP server +3ms
  Accessory [Allarme in corso] Creating new IdentifierCache +10ms
  Accessory [Antincendio] Creating new AccessoryInfo for our HAP server +15ms
  Accessory [Antincendio] Creating new IdentifierCache +1ms
  Accessory [Luce Balcone] Creating new AccessoryInfo for our HAP server +3ms
  Accessory [Luce Balcone] Creating new IdentifierCache +1ms
  Accessory [Luce Cucina] Creating new AccessoryInfo for our HAP server +2ms
  Accessory [Luce Cucina] Creating new IdentifierCache +1ms
  Accessory [Luce Mobile] Creating new AccessoryInfo for our HAP server +1ms
  Accessory [Luce Mobile] Creating new IdentifierCache +1ms
  Accessory [Luci Natale] Creating new AccessoryInfo for our HAP server +3ms
  Accessory [Luci Natale] Creating new IdentifierCache +1ms
  Accessory [Multimedia] Creating new AccessoryInfo for our HAP server +2ms
  Accessory [Multimedia] Creating new IdentifierCache +1ms
  Accessory [Radar Balcone] Creating new AccessoryInfo for our HAP server +2ms
  Accessory [Radar Balcone] Creating new IdentifierCache +0ms
  Accessory [Stato Allarme] Creating new AccessoryInfo for our HAP server +3ms
  Accessory [Stato Allarme] Creating new IdentifierCache +11ms
  EventedHTTPServer Server listening on port 5228 +12ms
  EventedHTTPServer Server listening on port 5336 +9ms
  EventedHTTPServer Server listening on port 5442 +8ms
  EventedHTTPServer Server listening on port 5446 +5ms
  EventedHTTPServer Server listening on port 5450 +5ms
  EventedHTTPServer Server listening on port 5406 +5ms
  EventedHTTPServer Server listening on port 5230 +5ms
  EventedHTTPServer Server listening on port 5212 +5ms
  EventedHTTPServer Server listening on port 5226 +4ms
  EventedHTTPServer [10.0.0.72] New connection from client +18s
  EventedHTTPServer [10.0.0.72] HTTP server listening on port 54826 +1ms
  EventedHTTPServer [10.0.0.72] HTTP request: /pair-setup +12ms
  HAPServer [D0:98:17:15:05:55] HAP Request: POST /pair-setup +1ms
  HAPServer [D0:98:17:15:05:55] Pair step 1/5 +3ms
  EventedHTTPServer [10.0.0.72] HTTP Repsonse is finished +36ms
  EventedHTTPServer [10.0.0.72] HTTP request: /pair-setup +6s
  HAPServer [D0:98:17:15:05:55] HAP Request: POST /pair-setup +0ms
  HAPServer [D0:98:17:15:05:55] Pair step 2/5 +2ms
  EventedHTTPServer [10.0.0.72] HTTP Repsonse is finished +24ms
  EventedHTTPServer [10.0.0.72] HTTP request: /pair-setup +9ms
  HAPServer [D0:98:17:15:05:55] HAP Request: POST /pair-setup +0ms
  HAPServer [D0:98:17:15:05:55] Pair step 3/5 +2ms
  HAPServer [D0:98:17:15:05:55] Pair step 4/5 +10ms
  HAPServer [D0:98:17:15:05:55] Pair step 5/5 +2ms
  Accessory [Luce Balcone] Paired with client 41A2BADC-E0E1-4141-BFA0-29093C7CCC48 +5ms
  EventedHTTPServer [10.0.0.72] HTTP Repsonse is finished +6ms
  EventedHTTPServer [10.0.0.72] Client connection closed +51ms
  EventedHTTPServer [10.0.0.72] HTTP connection was closed +2ms
  EventedHTTPServer [10.0.0.72] HTTP server was closed +1ms

On the client (Insteon, EVE, ecc) the error is "Unable to comunicate with the device".

As attached the accessories list.

Thanks for the support
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 18, 2015, 11:01:45 am
You might want to poke at those two first, especially the window covering. I too am using the garage door plugin, so I'm reasonably sure that's not causing the issue. I don't have any window coverings, so I'm less sure about that.

Have finally gotten around to doing this.  Partially.  Have reverted to the non-bridge version, and started adding things onesies.  Once it failed to add one of three identical garage doors, but on a second pass (after blowing everything away and starting over), that went fine.  Have added all of my hand-written dimmers, virtual switches, etc.  All added successfully.  Have not added all of the z-wave devices yet, but will be surprised if they are an issue.  So thus far, nothing has shown up as suspect.

I have a ton of scenes, none of which are the nice "turn blah on"/"turn blah off" genre.  I have to wonder if the scene aggregation logic you've got in the bridge version is falling down a flight of stairs on that.  But starting up the bridge seems to get through device enumeration just fine.  Dunno.

Anyway, I'll try to finish adding the z-wave devices over the weekend, but am not expecting much by way of enlightenment.

--Richard
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 18, 2015, 12:57:21 pm
@rlmalisz The scenes are fine. I thought of another way you could troubleshoot. On the current commit, in app.js there's some case statements for each category of device, you could comment out categories one by one to single out which category is causing the issue.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 18, 2015, 09:56:48 pm
@rlmalisz The scenes are fine. I thought of another way you could troubleshoot. On the current commit, in app.js there's some case statements for each category of device, you could comment out categories one by one to single out which category is causing the issue.

Good hint.  I went through this methodically, and commented everything out but switches, and things came up.  But I was annoyed at the enormous number of "switches" for scenes (how do you invoke those using Siri, anyway?), so I commented out the "processScenes" line in app.js.  Added things back in onesies.  Worked every time.  Finally uncommented out the scene processing.  Breaks.

So there's something odd going on here.  It appears having scenes processed with just the light switches works.  But having them processed with everything else enabled breaks.  I can try to do a binary search this weekend to see which thing + scenes breaks the pairing.  But it's odd.  For now, I am happy to leave the scenes commented out and have something to play with.

--Richard
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 20, 2015, 08:15:56 pm
One more question about scene-pair conversion.  From the code and from your github instructions, it looks like the only time a pair of scenes would get converted to a virtual device/accessory is when the pair is exactly of the form:

whatever - on
whatever - off

Is that the case, or is it more general than that?

In either case, what happens if "whatever" is a real device and you create a "whatever" virtual device/accessory from the pair of scenes?  Do both get exposed with the same name?  I can see where HomeKit would refuse to accept that as a valid response, and cause Eve tp drop the connection.

If the regular expression matching is as strict as it appears, this isn't what's happening to me.  But it may be something to look at.

--Richard
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 22, 2015, 11:32:50 am
@Hackworth, @Albeebe and others - Thank you for your time on this project. I posted a video of it working on the Apple Watch, you can see it on YouTube here: https://youtu.be/T5kibmQiTuM (https://youtu.be/T5kibmQiTuM)

With WatchOS 2 I don't have any of the Siri handoff issues people where reporting before. It works great and is very responsive.

For those just looking to set this up, don't use the instructions on the first post. Use @Hackworth's repo on github and the instructions there.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 22, 2015, 04:24:19 pm
@Chris H. - Thanks so much! Glad it's working for you :) I too have an Apple Watch it works well on, I would however like an Apple TV so it's functional when I'm not on my local wifi.

@rlmalisz - Scenes have to match " - On" or " - Off" its all in the code. It won't create a duplicate named device, it'll log it to the console. Again, all in the code.
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 22, 2015, 04:51:24 pm
@Hackworth, yeah I just read today that I can use the AppleTV to allow me to control it out of the house, I plan on trying that out tonight when I get home.

Another question, this works great on my iPhone and Apple Watch but I went to install it on my Wife's iPhone and Apple Watch but when I opened the Elgato Eve app on her phone and tried to add the VeraHomeKitBridge to her app it never found it. Can this only be paired to one iPhone at a time? Do I need to setup another Raspberry Pi with VeraHomeKitBridge on the network just for her iPhone?

I didn't get mine up and running til about 2am so I may have missed something, I'll try again this evening, but was just wondering if anyone else had multiple iPhones pared to the same VeraHomeKitBridge.
Title: Re: News about HomeKit and Vera
Post by: Hackworth on December 22, 2015, 05:01:42 pm
@Chris H. - So HomeKit lets you share your house to other iCloud members, no need to pair her phone separately.
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 23, 2015, 05:13:06 am
@Chris  H

In Eve app...settings cog / Guest Access / Invite People.

Apple TV support outside of the LAN only allows the primary icloud account remote access. Unless your wifes iphone is using your account she will not get remote access to Homekit.

Also "guests" do not need Eve installed to have Siri do their bidding.

HTH
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 23, 2015, 12:09:51 pm
OK, I went into Settings->HomeKit->Home and invited my wife using her AppleID Email and everything worked great, she can now control everything I setup with Siri on her Apple Watch. The wife was happy... Happy Wife, Happy Life.

Spent all night trying to get Remote Access working with my AppleTV 3 but no luck.
1) Made sure I had the latest update on AppleTV,
2) Made sure I had "Allow Remote Access" enabled in Settings->HomeKit->Home,
3) Signed out and back in to my iCloud Account on my AppleTV,
4) Toggled "Allow Remote Access" off and back on, Signed back out and back in on AppleTV,
5) Reset HomeKit and repeated steps 2 & 3.

Am I missing something here? Did anyone else get Remote Access working with the AppleTV 3?

From what I was reading it looks like with iOS9 you shouldn't need the AppleTV to talk to the HomeKit Bridge remotely:
Quote
Starting with Apple's iOS 9 update, your iPhone can securely chat with your HomeKit bridges and accessories even while out of the house. It can do so because of the new HomeKit Accessory Protocol (HAP), which uses secure networking over iCloud to talk to your connected HomeKit accessories. HAP doesn't work with prior versions of Apple's mobile operating system; as such, if you're still using iOS 8, you'll still need to use and set up an Apple TV for controlling your house outside your local Wi-Fi network.
source: http://www.imore.com/everything-you-need-know-about-apple-tv-and-homekit (http://www.imore.com/everything-you-need-know-about-apple-tv-and-homekit)

Can anyone else out there that is using HomeKit Remotely chime in and give us more input.
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 23, 2015, 02:31:59 pm
Hmmm mine works remotely but I've done nothing different than you have.

When I was on AppleTV 3 it just worked...I struggled on ATV4 but it just seemed to start working on it's own eventually.
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 23, 2015, 03:12:32 pm
I wonder if I'm having some sort Sync issue. The Eve app my iPad Air worked until I reset HomeKit and set it up again, now the Eve app on the iPad won't get the settings from my iPhone. If I click Add Accessory it tells me I set it up on my iPhone 6 wait for it to be synced but never does now.

I'll try to mess with it again this evening. Would love to get it to work remotely. I normally don't remember to turn off the lights until I pull out of the drive way and I'm off wifi.

/** UPDATE - 12.23.15 **/
I was able to get Eve to work on my iPad and mirror my iPhone settings by signing out of iCloud on the iPad and back in.

I also changed my username in the app.js file to see if maybe it needed a unique ID for this field, then Reset HomeKit on my iPhone, Re added the VeraBridge then signed out of iCloud on my iPhone and back in and then Signed Out of iCloud on the AppleTV and back in and still no change.
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 23, 2015, 08:11:58 pm
@JuniorJedi - what app are you using on you iPhone for HomeKit? I am wondering if it is an issue with Eve. Also are you using the repo from @Hackworth?
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 24, 2015, 05:24:59 am
@JuniorJedi - what app are you using on you iPhone for HomeKit? I am wondering if it is an issue with Eve. Also are you using the repo from @Hackworth?

Nope, I'm using Eve and @Hackworth repo.
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 24, 2015, 12:51:29 pm
Got a reply from @KhaosT on his github page.

Quote
Apple TV 3 had lots of problems with HomeKit Remote Access due to the old iOS (8.3), if you have 2-Step Authentication enabled for your iCloud account, disable that may help.

If it still won't work, I'd suggest consider getting an ATV 4😅

I checked and I don't have 2-Step Authentication enabled so that's not it. I have an older AppleTV 2 on my network, I wonder if that may be a problem. I may try to remove it this evening and see if that makes a difference.
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on December 25, 2015, 06:52:06 am
@ Chris H.

You have the ATV logged into your account and not your wife's right?


See if there's anything here that may help http://www.imore.com/everything-you-need-know-about-apple-tv-and-homekit


I have an ATV 2 on the same LAN - no ill effect.

The one thing that comes to mind - Do you have UPNP on your router?  If so try toggling it off for testing.

Title: Re: News about HomeKit and Vera
Post by: rlmalisz on December 28, 2015, 07:00:45 pm
So this had been working pretty well.  The SSD on the Ubuntu NUC that had been running this (and a lot of other stuff) died two days back, and I've just gotten it all pretty much reassembled.

Eve pairs the bridge fine.  I can use Eve to actuate devices.  But now Siri says something akin to "Sorry Richard, I couldn't find any devices"...sometimes with "at this time" tacked on at the end.

I'll futz with it some more as time permits, but was curious if anyone had seen this behavior?

--Richard
Title: Re: News about HomeKit and Vera
Post by: Chris H. on December 28, 2015, 11:45:47 pm
@JuniorJedi turning off UPNP on the router didn't help, still no access over cellular.
Title: Re: News about HomeKit and Vera
Post by: guest20975 on December 30, 2015, 09:33:32 am
have 2 vera's running my home and have set up 2 VeraHomeKitBridges on separate raspberry pi 2s to run with homekit. Unfortunately i get the following error on the 2nd Pi
"> VeraHomeKitBridge@1.0.0 start /home/pi/VeraHomeKitBridge
> node app.js

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Starting Vera HomeKit Bridge...
Create accessory: Coffee_Pot
Create accessory: ConsHeat
Create accessory: ConsHeatOff
Create accessory: ConsHeatOn
/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^
Error: dns service error: name conflict
    at Error (native)
    at new Advertisement (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
    at Advertiser.startAdvertising (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/Advertiser.js:43:30)
    at Bridge.Accessory._onListening (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/Accessory.js:352:20)
    at HAPServer.emit (events.js:104:17)
    at HAPServer._onListening (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/HAPServer.js:159:8)
    at EventedHTTPServer.emit (events.js:104:17)
    at EventedHTTPServer.<anonymous> (/home/pi/VeraHomeKitBridge/lib/HAP-NodeJS/lib/util/eventedhttp.js:62:10)
    at Server.emit (events.js:104:17)

npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log"

all my pi's have different names so not sure what problem is, anyone out there can help?
Title: Re: News about HomeKit and Vera
Post by: hellovn on January 01, 2016, 10:32:14 pm
Hi All,

I could control my devices with Siri now. It took me 0.5 hours to install Verahomekitbridge and Eve. I love my vera and home automation more and more  :D :D
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on January 02, 2016, 11:37:41 am
Does anyone have this working so that HomeBridge reads the current status of devices?  The device state in HomeKit is always what I last changed it to using HomeKit.

If I turn something in via Vera or by using the wall switch, HomeKit doesn't know anything about it...
Title: Re: News about HomeKit and Vera
Post by: Hackworth on January 02, 2016, 01:25:32 pm
@jasonkhonlaw - Yes, of course. https://github.com/Hackworth/VeraHomeKitBridge
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on January 02, 2016, 01:44:49 pm
Yeah, that's what I'm using.  It works to control everything, but HomeKit doesn't give me current state of the devices (unless I changed the state through HomeKit)
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on January 02, 2016, 02:31:04 pm
I guess I can try updating the code, mine is from a couple of months back...
Title: Re: News about HomeKit and Vera
Post by: jasonkhonlaw on January 02, 2016, 03:46:51 pm
Updating fixed it, awesome!!  My garage doors work now too (they didn't before)
Title: Re: News about HomeKit and Vera
Post by: davemedlin on January 02, 2016, 06:33:32 pm
Hi Everyone,

For those of you who want to try this out on Windows, I've merged the sources, recompiled and packaged them against Node.js v0.10.33 (http://nodejs.org/dist/v0.10.33/node-v0.10.33-x86.msi) as part of this SourceForge project (https://sourceforge.net/projects/homebridgeverawin32/files/published/).
The current version incorporates all the suggestions from earlier in this thread (e.g. fix the hard-coded vera IP address.)


Here is a set of updated instructions based on Albeebe's post (http://forum.micasaverde.com/index.php/topic,31716.msg229780.html#msg229780) from 4/11:

1. If you have a version of Node.js other than v0.10.33 installed you will probably have to uninstall it.
2. Download and install the x86 version of Node.js v0.10.33 (http://nodejs.org/dist/v0.10.33/node-v0.10.33-x86.msi).   
3. Download and extract file homebridge-vera-win32.zip from SourceForge (https://sourceforge.net/projects/homebridgeverawin32/files/published/)
4. Edit the app.js file and enter the IP address of your Vera on line 11
5. Open a Node.js Command prompt
6. cd to the directory where you extracted the sources
7. Type: npm run start

This should run the homekit bridge, connect to your vera, and expose any lights, dimmable lights, and locks to HomeKit.


I've tried this and several other suggestions from this thread trying to run on Windows, I get this error right when it tries to start the script. Any ideas?

Starting Vera HomeKit Bridge...
Unexpected result while probing for avahi: { [Error: dns service error: unknown
error code] errorCode: -65563 }

C:\HomeBridge\lib\HAP-NodeJS\node_modules\mdns\lib\avahi.js:28
  dns_sd.DNSServiceRefDeallocate(sr);
         ^
Error: DNSServiceRef is not initialized
    at supportsInterfaceIndexLocalOnly (C:\HomeBridge\lib\HAP-NodeJS\node_module
s\mdns\lib\avahi.js:28:10)
    at Object.<anonymous> (C:\HomeBridge\lib\HAP-NodeJS\node_modules\mdns\lib\av
ahi.js:32:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\HomeBridge\lib\HAP-NodeJS\node_modules\mdns\lib\md
ns.js:31:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
Title: Re: News about HomeKit and Vera
Post by: davemedlin on January 02, 2016, 07:00:15 pm


I've tried this and several other suggestions from this thread trying to run on Windows, I get this error right when it tries to start the script. Any ideas?

Starting Vera HomeKit Bridge...
Unexpected result while probing for avahi: { [Error: dns service error: unknown
error code] errorCode: -65563 }

C:\HomeBridge\lib\HAP-NodeJS\node_modules\mdns\lib\avahi.js:28
  dns_sd.DNSServiceRefDeallocate(sr);
         ^
Error: DNSServiceRef is not initialized
    at supportsInterfaceIndexLocalOnly (C:\HomeBridge\lib\HAP-NodeJS\node_module
s\mdns\lib\avahi.js:28:10)
    at Object.<anonymous> (C:\HomeBridge\lib\HAP-NodeJS\node_modules\mdns\lib\av
ahi.js:32:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\HomeBridge\lib\HAP-NodeJS\node_modules\mdns\lib\md
ns.js:31:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

Okay, saw something about needing bounjour service in Windows so made sure it was running and the previous error went away but now it hangs on this one. Any ideas??

Starting Vera HomeKit Bridge...

module.js:356
  Module._extensions[extension](this, filename);
                               ^
Error: The specified module could not be found.
C:\HomeBridge\lib\HAP-NodeJS\node_modules\srp\node_modules\bignum\build\Release\
bignum.node
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at new require (module.js:380:17)
    at Object.<anonymous> (C:\HomeBridge\lib\HAP-NodeJS\node_modules\srp\node_mo
dules\bignum\index.js:4:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\HomeBridge\lib\HAP-NodeJS\node_modules\srp\lib\srp
.js:2:16)

npm ERR! VeraHomeKitBridge@0.0.0 start: `node app.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@0.0.0 start script.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
npm ERR! cwd C:\HomeBridge
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\HomeBridge\npm-debug.log
npm ERR! not ok code 0
Title: Re: News about HomeKit and Vera
Post by: airigami on January 02, 2016, 11:13:42 pm
Like others, I followed the instructions and all worked perfectly. Thank you to all those that have put time into the software and answering questions here to make it easy for those of us that can't do it ourselves. I used the bridge or a few days without a problem. Then suddenly, it just stopped working.

My Vera works. I can control everything exactly as expected the old ways and all of my timed/automated scenes are behaving properly. Now when I try to issue a command with Eve, it tells me all of my devices are unreachable. At first when this happened, I discovered the IP address of Vera changed. No idea why, but I fixed that in my router's IP reservations so that shouldn't happen again. Immediately after correcting that, everything worked for about an hour. Then it stopped. I've rebooted all of the devices involved just for good measure (iphone, vera, Mac Mini, Airport Extreme), removed persist, and restarted the bridge. Everything starts up. I see it creating devices. Then I go to Eve and it tells me that the devices are all unreachable. The npm-debug.log shows no new entries. Config.json is identical to the distribution except for the correct IP address for my Vera.

Can anyone tell me what I'm missing? Other things to try?

Thanks.


Title: Re: News about HomeKit and Vera
Post by: Glen Koenig on January 03, 2016, 10:35:12 am
...Then suddenly, it just stopped working.

...Can anyone tell me what I'm missing? Other things to try?

Thanks.
Maybe, maybe not.

I've had struggles with stability. My first attempt, with mixed results, was a week ago.  I installed Raspbian from the Noobs at raspberry pi web site. I then installed HomeBridge and got it to work. However, it would always crash after a few hours. Then I upgraded and updated Raspbian build, and it suddenly wouldn't run at all.

Note: I have a Lutron Smart Bridge Pro and Philips Hue Bridge, and both were integrated with Siri. With HomeBridge running I had dupe entries in Eve, and Siri would respond that some devices seemed uninterested. At the time of the first attempt it had not occurred to me to disable those in HomeKit (privacy) and use the Vera for all Siri integration.

I'm now running the out of the box Raspbian from the latest Noobs download without doing any updates other than what Hackworth suggests at his Github page. The only thing I've installed otherwise is screens. It seems to run perfectly now, but it has only been running for a little over a day since the last restart. The good news is that it appears to be stable, and hasn't crashed once. As noted above, I don't allow Lutron or Philips Hue to integrate with Siri, and Siri controls everything fine.

I can also use Siri over cellular connection via Apple TV 3 over a Wifi connection. When ATV had a wired connection it just would't work for me.
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 02:38:28 am
I'm getting an Error on the iPhone:

Reached maximum limit of objects for requested type.

This is when I try to add the bridge, any thoughts how to fix I assume I have way to many devices.I slimmed down my rooms to a few but devices I have alot!

Yep it looks like @ 109 devices it just stops, no errors on the server side. I setup a openLuup Vera and it works but I have no devices to control because its just a fake Veras! any Ideas how to add more Devices than 109?
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 05, 2016, 06:20:18 am
Hackworth, I'm done with the homebridge plugin. I did it based on my previous code, so the thing should work as both: standalone and plugin for homebridge.

To try it use the usual:
Code: [Select]
npm install -g homebridge

npm install -g homebridge-vera

You are part of the collaborators on the github project so go ahead and change it anyway you want :)

PS: Sorry for the long waiting, my job has been throwing me a lot of challenges lately
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on January 05, 2016, 07:30:53 am
Hackworth, I'm done with the homebridge plugin. I did it based on my previous code, so the thing should work as both: standalone and plugin for homebridge.


This is exciting stuff...can't wait to try.
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 12:14:06 pm
Hackworth, I'm done with the homebridge plugin. I did it based on my previous code, so the thing should work as both: standalone and plugin for homebridge.

To try it use the usual:
Code: [Select]
npm install -g homebridge

npm install -g homebridge-veralink

You are part of the collaborators on the github project so go ahead and change it anyway you want :)

PS: Sorry for the long waiting, my job has been throwing me a lot of challenges lately

So is this just a Platform I can add to homebridge because I can add it but it doesn't want to configure from homebridge JSON or where it says it wants the config file. So can it just be added as a platform?

this is my config:

Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30",
"veraIP": "192.168.0.228"

},
"platforms": [{
"platform": "PhilipsHue",
"name": "Philips Hue",
"ip_address": "192.168.0.209",
"username": "theuser"
}, {
"platform": "VeraLink ",
"name": "VeraLink",
"veraIP": "192.168.0.228"
}],

"accessories": [{
"accessory": "Applescript",
"name": "",
"on": "tell application '''' to activate",
"off": "quit application ''''"
},

{
"accessory": "Http",
"name": "Downstairs Heater",
"switchHandling": "yes",
"http_method": "GET",
"on_url": "https://",
"off_url": "https://",
"status_url": "https://"
}
]
}
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 05, 2016, 12:58:34 pm
Yes!, sorry... I forgot to add that on the readme:


Code: [Select]
"platforms": [
        {
            "platform" : "Vera",
            "name" : "Vera"
        }
    ]

In your case it would be:
Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30",
"veraIP": "192.168.0.228"

},
"platforms": [{
"platform": "PhilipsHue",
"name": "Philips Hue",
"ip_address": "192.168.0.209",
"username": "theuser"
}, {
            "platform" : "Vera",
            "name" : "Vera"
        }],

"accessories": [{
"accessory": "Applescript",
"name": "",
"on": "tell application '''' to activate",
"off": "quit application ''''"
},

{
"accessory": "Http",
"name": "Downstairs Heater",
"switchHandling": "yes",
"http_method": "GET",
"on_url": "https://",
"off_url": "https://",
"status_url": "https://"
}
]
}

For the moment the configuration of the VeraIP is external and it goes on this folder:
Code: [Select]
/home/<name>/.veralink/config.jsWhen you start the homebridge app you will notice the config file listed on the output like this

Quote
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Please add your configuration file to /home/damian/.veralink/config.js
Loaded plugin: homebridge-veralink
VeraLink initializing
Registering platform 'homebridge-veralink.Vera'
---
Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[Vera] Initializing Vera platform...
/home/damian/nikai/test/index.js:27

I will add the configuration on from homebridge config.js in the next update.
Title: Re: News about HomeKit and Vera
Post by: K-Rock on January 05, 2016, 01:23:21 pm


I've tried this and several other suggestions from this thread trying to run on Windows, I get this error right when it tries to start the script. Any ideas?


Any luck on getting this to run on Windows?


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: wnurmi on January 05, 2016, 03:19:21 pm
Mac guinea pig for damianxd's fresh homebridge-veralink plugin signing in!

First and foremost big big thank you @Albeebe, @Hackworth and @damianxd and all the others for making this possible! I was so excited to find out that someone has finally cracked this!!

I read the thread through and decided to give homebridge the homebridge plugin my first shot since leveraging homebridge sounds like the way to go here.

I'm on macbook pro OsX 10.11.2 and iPhone 6 iOS 9.2 with the Eve app (which I just found thanks to this thread!). The installation went smoothly with the readmes and example config files in https://github.com/nfarina/homebridge and https://github.com/damianxd/VeraLink/ (with the config addition damianxd just posted) . In just one hour (after reading through the thread) I got homebridge up and running, my devices recogniced, paired with Eve and seen by Siri :-).

Some findings:
1) VeraLink seems to require the same config.js file both in the install dir (/usr/local/lib/node_modules/homebridge-veralink/config.js for me) and in the user directory (/Users/wnurmi/.veralink/config.js for me). If I lack either, I get
Code: [Select]
TypeError: Cannot read property 'veraIP' of undefined.2) For some reason pairing homebridge to Eve times out 9 out of 10 times. I tried clearing the persist folder, but it didn't help (most times at least).
3) None of my scenes are recognised yet, only devices are. Not sure if I'm just missing some configs or if scenes are not supported yet by the plugin. Will look into it.
4) I'm having similar trouble as reported by others where homekit looses connection to homebridge after just a minute or so. I'm confident there is a fix for that posted already, will look into it next.

After I get things running properly I'm planning to buy RPi2 and set this up permanently on that :-). Again thanks everyone for the awesome thread, I'll keep you posted on my progress.

- William
PS. has anyone here given https://github.com/Be2daErtin/homebridge-VeraLite a poke?

EDIT: readability
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 05, 2016, 03:53:58 pm
there was another plugin for homebridge?! damn... I'm always late on everything -.- the code for that github project seems like it will work fine
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 04:24:13 pm
Cool Thanks for the heads up of where to place the config file for the mac in both places that worked!
Now I'm having the same issue of it dieing after a minute or so like you.

Quote
4) I'm having similar trouble as reported by others where homekit looses connection to homebridge after just a minute or so. I'm confident there is a fix for that posted already, will look into it next.

Did you figure this out yet? Is there an advantage to use on the Pi besides power efficiency?

Thanks
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 04:25:12 pm
Yes!, sorry... I forgot to add that on the readme:


Code: [Select]
"platforms": [
        {
            "platform" : "Vera",
            "name" : "Vera"
        }
    ]

In your case it would be:
Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30",
"veraIP": "192.168.0.228"

},
"platforms": [{
"platform": "PhilipsHue",
"name": "Philips Hue",
"ip_address": "192.168.0.209",
"username": "theuser"
}, {
            "platform" : "Vera",
            "name" : "Vera"
        }],

"accessories": [{
"accessory": "Applescript",
"name": "",
"on": "tell application '''' to activate",
"off": "quit application ''''"
},

{
"accessory": "Http",
"name": "Downstairs Heater",
"switchHandling": "yes",
"http_method": "GET",
"on_url": "https://",
"off_url": "https://",
"status_url": "https://"
}
]
}

For the moment the configuration of the VeraIP is external and it goes on this folder:
Code: [Select]
/home/<name>/.veralink/config.jsWhen you start the homebridge app you will notice the config file listed on the output like this

Quote
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Please add your configuration file to /home/damian/.veralink/config.js
Loaded plugin: homebridge-veralink
VeraLink initializing
Registering platform 'homebridge-veralink.Vera'
---
Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[Vera] Initializing Vera platform...
/home/damian/nikai/test/index.js:27

I will add the configuration on from homebridge config.js in the next update.

All that worked so far, Thanks  ;D
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 05, 2016, 04:35:46 pm
about the scenes, I will add that on the next release. If anyone has troubles with homebridge, you could try to run VeraLink as the standalone version, maybe it will be more stable.

Code: [Select]
npm install homebrige-veralink
node VeraLink.js
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 04:37:13 pm
Ok This is the error I get after using Siri to control the lights, I assume it has something to do with not being able to handle request of status.

Code: [Select]
/usr/local/lib/node_modules/homebridge-veralink/node_modules/sync-request/index.js:31
    throw new Error(response.error.message || response.error || response);
    ^

Error: socket hang up
    at Object.doRequest [as request] (/usr/local/lib/node_modules/homebridge-veralink/node_modules/sync-request/index.js:31:11)
    at Object.Switch.getStatus (/usr/local/lib/node_modules/homebridge-veralink/lib/types/switch.js:43:31)
    at null.<anonymous> (/usr/local/lib/node_modules/homebridge-veralink/lib/types/switch.js:99:38)
    at emitTwo (events.js:87:13)
    at emit (events.js:172:7)
    at Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:120:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:438:20)
    at Array.forEach (native)
    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:410:8)
    at emitThree (events.js:97:13)
Any thoughts on how to correct this problem so Homebridge can continue to run?

Code: [Select]
npm install homebrige-veralink
node VeraLink.js

The npm is not registered yet? getting a 404

Code: [Select]
$ npm install homebrige-veralink
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "homebrige-veralink"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/homebrige-veralink
npm ERR! 404
npm ERR! 404 'homebrige-veralink' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Jeff/.homebridge/npm-debug.log

You just spelled it wrong on the last post! lol
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 05, 2016, 04:46:56 pm
maybe I wrote that down with some misspell, please copy it from my previous post and remove the -g option from the command. I'm currently traveling so I'm writing this over my phone
Title: Re: News about HomeKit and Vera
Post by: sebby on January 05, 2016, 05:44:16 pm
Forgive my ignorance, but can someone tell me what the difference between all these implementations are?    From reading this thread i see:

Title: Re: News about HomeKit and Vera
Post by: wnurmi on January 05, 2016, 06:24:52 pm
Did you figure this out yet? Is there an advantage to use on the Pi besides power efficiency?

I followed the thorough steps originally posted by gregorito on November 18 and modified them for homebridbe-veralite. I think I solved the issue with where the connectivity is lost at least partly (I've still lost connection to the devices for short whiles though).

Updated steps for running homebridbe-veralite on mac:
1. Install NodeJS 5.1.0 using installer from their website https://nodejs.org/en/download/package-manager/
2. Open Terminal app, in Teminal you can type: 'node -v' and should get: 'v5.1.0' and then type: 'npm -v' and should get: '3.X.X'
3. Type 'sudo npm install -g homebridge'
4. Type 'sudo npm install -g homebridge-veralink'
5. Type 'sudo npm config set registry http://registry.npmjs.org/' and press enter
6. Type 'sudo npm install -g node-gyp' and press enter
7. cd to homebridge-veralink install dir (you can see it in step 4 output, for me it was /usr/local/lib/node_modules/homebridge-veralink/)
8. Type 'npm install' and press enter
9. Type "open ." Folder will open and you will see its contents in the Finder. Do not quit terminal
10. Now you must edit 'package.json' file. Do not use Textedit! use something like TextWrangler , you can download from (http://www.barebones.com/products/textwrangler/)
11. If using TextWrangler, open 'package.json' file and add the following line to the "dependencies":
Code: [Select]
"curve25519": "git://github.com/volschin/node-curve25519", Everyhing, including "" must be there, best to just copy from here and paste. Do NOT alter anything else!
12. Go back to terminal, make sure you are still in the right directory (homebridge-veralink) type 'npm install' and press enter. You will see the names of the packages that were installed at the very end but, curve255519 is will still be missing
13. Type 'npm install curve25519' and it will be installed (for some reason, it won't work without step #13)
14. Type: 'cd node_modules' and press enter
15. Type 'open .' and finder window will open
16. Rename the folder 'curve25519-n' to 'curve25519'
17. Create/edit config.js in both homebridge-veralink/ install dir and ~/.veralite/. Change pin, veraIP for yourself. Mine:
Code: [Select]
module.exports = {
    veraIP:  '10.0.0.11',
    includesensor: false,
    dimmertest: true,
    cardinality: 0,
    happort: 6200,
    bridged: true,
    pincode: '358-62-952',
    mainHNpath: './node_modules/hap-nodejs'
};
18. Create/edit config.json (as instructed in https://github.com/nfarina/homebridge). Again, change at least ip. Mine:
Code: [Select]
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "pin": "358-62-952",
        "veraIP": "10.0.0.11"
    },

    "platforms": [
        {
            "platform" : "Vera",
            "name" : "Vera"
        }
    ]
}

19. Start running by by typing 'homebridge'
20. If you get errors, google them and search this thread.
21. Open your iPhone app: I use Elgato Eve but there are others...
22. Click settings, add accessory, chose your accessory, add, add anyway, enter the code manually by typing your pin (from config files), you will get a message: 'accessory added'.
23. If adding the homebridge accessory times out (you see homebridge on the phone but don't get to input the pin), try clearing the persistency folder ~/.homebridge/persist reboot all devices and try again a few times.
24. Ask Siri to control a device.

Not all steps are probably needed though. The curve hack seemed to fix the most sever connectivity issues.

As for why RPi... My macbook pro is often sleeping or at work, so I need something that's on all the time. If anyone know how to run this on Vera Lite, let me know!
Title: Re: News about HomeKit and Vera
Post by: Hackworth on January 05, 2016, 06:26:54 pm
@sebby - That's a wonderful question. Here:

If you want something that just works, use https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)

If you want to alpha test what might eventually replace the above, https://github.com/damianxd/VeraLink (https://github.com/damianxd/VeraLink) is for you. It doesn't have feature parity with the above, it's an alpha, so if you don't want to dick around with it then don't use it.

Anything else listed in this thread is either unrelated or old and depreciated.

@damianxd - Sweet! Might I recommend you rename the repo and npm package to homebridge-vera?
Title: Re: News about HomeKit and Vera
Post by: wnurmi on January 05, 2016, 06:31:19 pm
about the scenes, I will add that on the next release. If anyone has troubles with homebridge, you could try to run VeraLink as the standalone version, maybe it will be more stable.

Thanks! I've added Eve scenes in addition to my Vera scenes, but they aren't as flexible. Have you experienced lost connection to the homebridged devices? If not, maybe it's mac specific?
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 06:43:38 pm
If you want something that just works, use https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)


I'm really trying to get this to work here is my current problem:

Code: [Select]
$ tail -f npm-debug.log
17 error Exit status 1
18 error Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
18 error This is most likely a problem with the VeraHomeKitBridge package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node app.js
18 error You can get their info via:
18 error     npm owner ls VeraHomeKitBridge
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

It loads the stops before completion. Any thoughts to why?
Thanks
Title: Re: News about HomeKit and Vera
Post by: Hackworth on January 05, 2016, 06:53:58 pm
@Jeff - Maybe I could help you if you included the actual error.
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 05, 2016, 07:26:17 pm
@Hackworth here is what is in the command line ;D :

Code: [Select]
$ npm run start

> VeraHomeKitBridge@1.0.0 start /Users/Jeff/VeraHomeKitBridge
> node app.js

/Users/Jeff/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
    ^

Error: Module version mismatch. Expected 46, got 47.
    at Error (native)
    at Object.Module._extensions..node (module.js:460:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/Jeff/VeraHomeKitBridge/lib/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)

npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Jeff/VeraHomeKitBridge/npm-debug.log

Hopefully this is what you nedded to see so I can get this working! Thanks!
It appears to stop loading @ 109th device is their a cap of number of devices?
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on January 05, 2016, 09:27:13 pm
So this had been working pretty well.  The SSD on the Ubuntu NUC that had been running this (and a lot of other stuff) died two days back, and I've just gotten it all pretty much reassembled.

Eve pairs the bridge fine.  I can use Eve to actuate devices.  But now Siri says something akin to "Sorry Richard, I couldn't find any devices"...sometimes with "at this time" tacked on at the end.

I'll futz with it some more as time permits, but was curious if anyone had seen this behavior?

--Richard

About a week on, and still haven't sorted out what's going on here.  Has anyone else seen this?  Eve pairs with VeraHomeBridge fine, gets correct status and can set values and such, but Siri consistently say "can't find any devices"?  I have tried the obvious--reseting the iPad's HomeKit stuff, blowing away "persist" and restarting the bridge.  Nothing seems to make any difference.  What's really annoying is this worked two weeks ago.  We have had a new ATV4 join the house somewhere around this time, but it seems to have no obvious settings WRT HomeKit.  But I guess I should check that again...

--Richard
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 06, 2016, 02:28:49 am
maybe I wrote that down with some misspell, please copy it from my previous post and remove the -g option from the command. I'm currently traveling so I'm writing this over my phone

Ok Got your plugin running, my only problem is when using HOME app https://itunes.apple.com/us/app/home-smart-home-automation/id995994352?mt=8 (https://itunes.apple.com/us/app/home-smart-home-automation/id995994352?mt=8) on phone and scrolling I get crashing of server. I also tried the Eve app same problem.

Code: [Select]
/usr/local/lib/node_modules/homebridge-veralink/node_modules/sync-request/index.js:31
    throw new Error(response.error.message || response.error || response);
    ^

Error: socket hang up
    at Object.doRequest [as request] (/usr/local/lib/node_modules/homebridge-veralink/node_modules/sync-request/index.js:31:11)
    at Object.Switch.getStatus (/usr/local/lib/node_modules/homebridge-veralink/lib/types/switch.js:43:31)
    at null.<anonymous> (/usr/local/lib/node_modules/homebridge-veralink/lib/types/switch.js:99:38)
    at emitTwo (events.js:87:13)
    at emit (events.js:172:7)
    at Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:120:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:438:20)
    at Array.forEach (native)
    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:410:8)
    at emitThree (events.js:97:13)
I think this is a problem with home bridge holding open ports??
Can I add:
Code: [Select]
cardinality: 1,//default 0 //Add +1 to this in case you find any trouble while adding your device, all the other devices will have to be re-added too and
Code: [Select]
bridged: false, //default true //Set to false to use single server for each device instead of one for each roomto the Homebridge config file??
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 06, 2016, 08:27:50 am
@damianxd - Sweet! Might I recommend you rename the repo and npm package to homebridge-vera?
github and npm now have new names:

Code: [Select]
npm install -g homebridge
npm install -g homebridge-vera

and the git url is https://github.com/damianxd/homebridge-vera (https://github.com/damianxd/homebridge-vera)
Title: Re: News about HomeKit and Vera
Post by: sebby on January 06, 2016, 08:38:03 am
@sebby - That's a wonderful question. Here:

If you want something that just works, use https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge)

If you want to alpha test what might eventually replace the above, https://github.com/damianxd/VeraLink (https://github.com/damianxd/VeraLink) is for you. It doesn't have feature parity with the above, it's an alpha, so if you don't want to dick around with it then don't use it.

Anything else listed in this thread is either unrelated or old and depreciated.

@damianxd - Sweet! Might I recommend you rename the repo and npm package to homebridge-vera?

Thanks for the info Hackworth, most helpful.  i will stick with the VeraHomeKitBridge until veraLink develops further. 
Title: Re: News about HomeKit and Vera
Post by: Hackworth on January 06, 2016, 10:35:48 am
@Jeff - You installed libavahi-compat-libdnssd-dev right? I would just delete the folder and start from scratch.
Title: Re: News about HomeKit and Vera
Post by: Jeff on January 06, 2016, 10:43:45 am
@Jeff - You installed libavahi-compat-libdnssd-dev right? I would just delete the folder and start from scratch.
Yes I have installed libavahi-compat-libdnssd-dev and successfully got Homebridge running fine. I wil try a fresh install from scratch. Thanks for the help  :) I will post results.
Title: Re: News about HomeKit and Vera
Post by: Miamijerry on January 06, 2016, 10:46:08 am
@Jeff - You installed libavahi-compat-libdnssd-dev right? I would just delete the folder and start from scratch.
Yes I have installed libavahi-compat-libdnssd-dev and successfully got Homebridge running fine. I wil try a fresh install from scratch. Thanks for the help  :) I will post results.

Jeff, would you be so kind as to give us a walk thru of your re-install.

I would like to attempt this but find it confusing, Thanks
Title: Re: News about HomeKit and Vera
Post by: Hackworth on January 06, 2016, 11:46:51 am
@Miamijerry Why? The instructions are on https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge) are you expecting him to copy and paste it?
Title: Re: News about HomeKit and Vera
Post by: Miamijerry on January 06, 2016, 11:52:18 am
@Miamijerry Why? The instructions are on https://github.com/Hackworth/VeraHomeKitBridge (https://github.com/Hackworth/VeraHomeKitBridge) are you expecting him to copy and paste it?

What hardware? What OS?
Sorry I don't intend to bother you.
Title: Re: News about HomeKit and Vera
Post by: sebby on January 06, 2016, 03:28:40 pm
Is there a way to do thermostats?  right now all i see are my locks, lights, and scenes.  It would also be awesome to be able to tie this in to the sonos plugin.  I would love to be able to tell Siri to play music...

I'd be happy to try to contribute to this, but would need some pointers to where the integration documentation is located.   Can anyone point me to that?
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 07, 2016, 06:05:24 am
Has anyone been able to get this running on a windows 64 machine ? If so could you help me by giving me some hints on the steps to be done


I tried aechelon method but I always have errors when starting npm

thanks
Title: Re: News about HomeKit and Vera
Post by: johnnboy on January 07, 2016, 05:46:34 pm
@damianxd  Trying to install this for the first time and I'm getting a version mismatch error since the Homebridge version is newer than what the plugin is looking for.  Is this something that you need to update or can I change something on my side?

ERROR LOADING PLUGIN homebridge-vera:
Error: Plugin /usr/lib/node_modules/homebridge-vera requires a HomeBridge version of 0.2.13 which does not satisfy the current HomeBridge version of 0.2.15. You may need to upgrade your installation of HomeBridge.


BTW, thanks for all your efforts on this!

~John
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 08, 2016, 03:43:54 pm
@damianxd  Trying to install this for the first time and I'm getting a version mismatch error since the Homebridge version is newer than what the plugin is looking for.  Is this something that you need to update or can I change something on my side?

ERROR LOADING PLUGIN homebridge-vera:
Error: Plugin /usr/lib/node_modules/homebridge-vera requires a HomeBridge version of 0.2.13 which does not satisfy the current HomeBridge version of 0.2.15. You may need to upgrade your installation of HomeBridge.


BTW, thanks for all your efforts on this!

~John

John, you need to uninstall homebridge "npm uninstall -g homebridge" and re-install the corresponding version "npm install -g homebridge@0.2.13"

I'm still diging to complete the installation and I was stuck at the same place as you and just been able to past this step, now I have a new message "TypeError: Cannot read property 'veraIP' of undefined"

I'm continuing my research
Title: Re: News about HomeKit and Vera
Post by: ceefin on January 08, 2016, 04:50:36 pm

About a week on, and still haven't sorted out what's going on here.  Has anyone else seen this?  Eve pairs with VeraHomeBridge fine, gets correct status and can set values and such, but Siri consistently say "can't find any devices"?  I have tried the obvious--reseting the iPad's HomeKit stuff, blowing away "persist" and restarting the bridge.  Nothing seems to make any difference.  What's really annoying is this worked two weeks ago.  We have had a new ATV4 join the house somewhere around this time, but it seems to have no obvious settings WRT HomeKit.  But I guess I should check that again...

--Richard

Hi Richard,

I've been running a setup of all this for about a month now, and one thing I've noticed is that Siri seems to be pretty particular about how the commands are phrased.

I forget which form works as I've been away from home for a couple days and I usually have to try a couple times, but I've noticed myself that I get a "not found" error when I say something like "Turn on the plant lamp" vs "Turn the plant lamp on". Semantically it makes no sense that there is a difference, but for some strange reason, it changes whether or not the plant lamp actually get turned on.

I'm not sure if this is related to your problem, but it sounded like it on a quick reading and I wanted to throw it your way just in case it could help.

-Chris
Title: Re: News about HomeKit and Vera
Post by: johnnboy on January 08, 2016, 07:43:04 pm
@goldriver : Thanks!  For that error msg you're getting, you might have to also copy config.js to /usr/local/lib/node_modules/homebridge-veralink/config.js. See wnurmi's post here: http://forum.micasaverde.com/index.php/topic,31716.msg263237.html#msg263237.
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 09, 2016, 07:47:37 am
Finally I have homebridge-vera running on windows 10, here are my steps in any case in could help someone:

1- I followed by the letter Nfarina instructions found here:
https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-Windows:-New-version-(with-Plugin)

BUT BEFORE STARTING THE RUNNING HOMEBRIDGE SECTION do all the followings :

2- Once everything installed, I had to install the c++ package from Visual Studio Community

3- Had to modify the unistd.h file created in Nfarina, all #include were not defined so i modified the file to add:
#include <stdlib.h>
#include <io.h>
#include <getopt.h>
#include <process.h>
#include <direct.h>

4- created two files a config.json AND config.js identical with the microsoft visual editor to make sure I can see if there were mistakes in the files

{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154",
    "veraIP": "xxx.xxx.xxx.xxx"  /replace with your vera ip adress
  },
  "platforms": [
    {
      "platform": "Vera",
      "name": "Vera",
      "veraIP": "xxx.xxx.xxx.xxx" /replace with your vera ip adress
    }
  ]
}

5- copied config.json to C:\Users\XXX\.homebridge directory
6- copied config.json to C:\Users\XXX\AppData\Roaming\npm\node_modules\homebridge
7- copied config.js to C:\Users\XXX\.veralink directory
8- copied config.js to C:\Users\XXX\AppData\Roaming\npm\node_modules\homebridge-vera

I'm quite sure theses config files are not ALL required but with this setup I've been able to get homebrige running

You can now start the RUNNING HOMEBRIGE section on Nfrina steps
**************************************************************************************
Important, at line 2 of the "Running Homebridge" section make sure, at least until the vera plugin is repackage with the correct homebridge version, to type "npm install -g homebridge@0.2.13", otherwise you will have messages saying there is a version error

Right after running the "npm install -g homebridge@0.2.13 make sure to also run npm install -g homebridge-vera wich will install the vera plugin part to homebridge
**************************************************************************************
Title: Re: News about HomeKit and Vera
Post by: simonclark on January 11, 2016, 07:57:18 am
I have been hoping to be able to get this running for a long time but always thought it was beyond me. On spur of moment I decided to buy a raspberry pi2 on Friday and in 3 hours I had minibian installed and set up remotely via putty as I have no USB keyboard.
I followed Hackworth 's github.com instructions and all is good. I see the devices recognised, and then via a iPhone app and see them being turned on on the putty session when I use Siri to turn them on.
However when I disconnect putty it seems to stop the bridge from running and so I have to log back in and restart it. What am I doing wrong? Is it possibly to run this as a background service?
Thanks and great work everyone.
Title: Re: News about HomeKit and Vera
Post by: simonclark on January 11, 2016, 04:59:16 pm
For anyone else trying to keep homebridge running, not sure if this is the best way but was very easy.

https://github.com/cflurin/homebridge-shims/wiki/Startup-Homebridge-on-a-Raspberry-Pi-using-PM2
 (https://github.com/cflurin/homebridge-shims/wiki/Startup-Homebridge-on-a-Raspberry-Pi-using-PM2)

Title: Re: News about HomeKit and Vera
Post by: ctguess on January 11, 2016, 05:17:13 pm
Here's another way to start the HomeKitBridge and have it run for extended periods of time.  Again, I don't know if this is the best way, but it does allow for manual control of starting it up, if that's important to you. 

http://raspi.tv/2012/using-screen-with-raspberry-pi-to-avoid-leaving-ssh-sessions-open 

TL;DR Summary

to install:  sudo apt-get install screen
to use:  after cd /VeraHomeKitBridge  type screen npm start run app.js    ** (see note below)
to exit the 'screen' session and leave the bridge running so you can then kill your ssh session:  ctrl+a  then d

**(or whatever your command is to start it...I can't remember exactly because I've only had to do it twice in 3 months. From my limited unix skills, I've deduced that the limited logging space on the RPI I run this on was full and so the bridge crashed.)

Title: Re: News about HomeKit and Vera
Post by: simonclark on January 11, 2016, 05:55:12 pm
Thanks, I will have a look at that too.

On Hackworth's install is it possible to also run the plugins?  I have installed the Sonos one and trying to edit the config.json but the setup of it is different to the homelink one and I am not sure how to add the relevant accessories section. 
Title: Re: News about HomeKit and Vera
Post by: kraka40 on January 11, 2016, 07:33:19 pm
just got VeraHomeKitBridge working yesterday on unbuntu!  Nice job on the module, will definitely start to dig in a bit further.

For those running ubuntu and looking to run this as a daemon, I followed instructions here
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04

pretty straight forward instructions on using pm2.

Thanks and again nice work!  Now to up the accessories integration! :)
Title: Re: News about HomeKit and Vera
Post by: ctguess on January 12, 2016, 05:39:44 pm
@simonclark

I'm not sure what you are asking.  The homekitbridge is just (for lack of a better term) voice control of Vera.  It doesn't run plugins, which are written in Lua and reside on Vera.  It can start plugins, or better stated, scenes that use plugins. 

For example, around the holidays I had a scene that I created that turned on my Sonos and started playing a Pandora Christmas Carols station.  I named that scene "Christmas Carols".  After creating the scene and restarting the homekitbridge so that it could find the new 'accessory' I was able to say "Hey Siri, start the Christmas Carols" or "Hey Siri, turn on the Christmas Carols" and it would do so.  I see no reason why you couldn't do something similar with Sonos and a station/playlist/etc. of your choice. 

To find the value of the station/playlist you want to play (it will look something like pndrradio:2904534714116392522) start playing it on your Sonos, then within Vera go to your Sonos device, then advanced, then variables and scroll to almost the bottom and find the AVTransportURI field and copy the value.  Use the advanced editor to create an action for your scene and enter that as the value for the PlayURI action. 
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on January 13, 2016, 11:11:47 am
I think there's confusion over VerHomeKitBridge and home bridge (which does support plugins, and also has a vera plugin).

On a different note:
My 14 month old son has worked out that if he presses the crown on my Apple Watch he can make the waveform pattern respond by babbling.
This morning whatever he said sounded to Siri like "turn on them" and my house went into meltdown. I have a bit of logic that runs when certain lights are on that turns of other lights and devices - it was like a nightclub at 6 a.m.
Not to mention that every push notification I have fired off too!
Title: Re: News about HomeKit and Vera
Post by: simonclark on January 13, 2016, 12:38:30 pm
Thanks JuniorJedi yes that was what I was asking. I wasn't sure if VeraHomeKitBridge was based on / a version of Homebridge and would allow other system plugins to work.
If I want native homekit sonos control I presume I can't run both?

Is there a feature difference between VeraHomeKitBridge and the homebridge vera plugin?

@ctguess VeraHomeKitBridge is a way to allow ios homekit access to Vera but Homekit can access much more. Yes I am planning to create vera scenes for my TVS and.sonos but it would be quicker if homekit communicated directly to Sonos rather than through Vera, and might give more commands, play, pause etc "Hey Siri, pause kitchen speakers" without the need to create vera scenes for every use case.. Or even explain to the wife why she has to say "turn on the pause kitchen speakers" to run the vera scene  ::)


Title: Re: News about HomeKit and Vera
Post by: simonclark on January 13, 2016, 12:45:51 pm
JuniorJedi just to be clear I assume your answer means VeraHomeKitBridge can't run homebridge plugins?
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on January 13, 2016, 02:02:01 pm
JuniorJedi just to be clear I assume your answer means VeraHomeKitBridge can't run homebridge plugins?

Apologies for lack of clarity. Yes I believe this to be the case.

Title: Re: News about HomeKit and Vera
Post by: simonclark on January 13, 2016, 06:54:47 pm
Hackworth, I'm done with the homebridge plugin. I did it based on my previous code, so the thing should work as both: standalone and plugin for homebridge.

To try it use the usual:
Code: [Select]
npm install -g homebridge

npm install -g homebridge-vera

You are part of the collaborators on the github project so go ahead and change it anyway you want :)

PS: Sorry for the long waiting, my job has been throwing me a lot of challenges lately

@damianxd  I have after much fun got homebridge and your plugin installed on a clean Pi install.  I am now trying to run your plugin with the Hue and Sonos plugins and am getting to this stage where its timing out.

Code: [Select]
Loaded plugin: homebridge-philipshue
Registering platform 'homebridge-philipshue.PhilipsHue'
---
Loaded plugin: homebridge-vera
VeraLink initializing
Registering platform 'homebridge-veralink.Vera'
---
Loaded config.json with 1 accessories and 2 platforms.
---
Loading 2 platforms...
[Philips Hue] Initializing PhilipsHue platform...
[Philips Hue] PhilipsHue Platform Plugin Version 0.0.2
[Philips Hue] Fetching Philips Hue lights...
[Vera] Initializing Vera platform...

I'm not sure if my config file setup is correct.  Do I need a config.js in the.veralink folder and a config.json in the .homebridge folder, and should they be the same?

thanks
Title: Re: News about HomeKit and Vera
Post by: simonclark on January 14, 2016, 03:08:53 pm
So after finally getting homebridge installed, I discovered that the Sonos plugin only allows turn on and turn off, so no advantage to the VeraHomekitbridge so I am going back to that which just works!
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 15, 2016, 06:22:13 am
After installing on windows and been able to find all the config correctly, I'm now trying to install homebridge-vera on a Ubuntu 14 linux box but I'm stuck at the same place I was with windows but this time everything I did to fix the ip not found on windows does not fix my issue on Ubuntu

here is the message

"Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[Vera] Initializing Vera platform...

/usr/local/lib/node_modules/homebridge-vera/index.js:27
    this.verainfo = this.functions.getVeraInfo(Veraconfig.veraIP);
                                                         ^
TypeError: Cannot read property 'veraIP' of undefined
 

"

I did copy the config.js file both in /home/ubuntu/.veralink and the installation DIR "/usr/local/lib/node_modules/homebridge-vera" , and also copied the config.json file in /home/ubuntu/.homebridge drirectory and "/usr/local/lib/node_modules/homebridge" but I always have the same "veraIP undefined message.

Here are my 2 config files:

config.js

module.exports = {
    veraIP:  "192.168.1.215",
    happort: 6200,
    dimmertest: true,
    cardinality: 0,
    bridged: true,
    includesensor: false,
    pincode: "031-45-155",
    mainHNpath: "./node_modules/hap-nodejs"

config.js
{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-155",
    "veraIP": "192.168.1.215"
  },
  "platforms": [
    {
      "platform": "Vera",
      "name": "Vera"
    }
  ]
}


Can anyone give me a hand at this ?
Title: Re: News about HomeKit and Vera
Post by: simonclark on January 15, 2016, 01:16:45 pm
I had this as well. Try calling the one in .vera link .json not.js in case that matters and I think you can take out the veraIP line from the homebridge config file. Unfortunately I have deleted my setup to check as doesn't see the benefit of that install over Hackworth's one.
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 15, 2016, 03:41:20 pm
I had this as well. Try calling the one in .vera link .json not.js in case that matters and I think you can take out the veraIP line from the homebridge config file. Unfortunately I have deleted my setup to check as doesn't see the benefit of that install over Hackworth's one.

thanks Simon, unfortunatly, this does not work either... still searching and trying all kind of setup but have not got chance yet ...
Title: Re: News about HomeKit and Vera
Post by: damianxd on January 16, 2016, 08:57:48 am
After installing on windows and been able to find all the config correctly, I'm now trying to install homebridge-vera on a Ubuntu 14 linux box but I'm stuck at the same place I was with windows but this time everything I did to fix the ip not found on windows does not fix my issue on Ubuntu

here is the message

"Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[Vera] Initializing Vera platform...

/usr/local/lib/node_modules/homebridge-vera/index.js:27
    this.verainfo = this.functions.getVeraInfo(Veraconfig.veraIP);
                                                         ^
TypeError: Cannot read property 'veraIP' of undefined
 

"

I did copy the config.js file both in /home/ubuntu/.veralink and the installation DIR "/usr/local/lib/node_modules/homebridge-vera" , and also copied the config.json file in /home/ubuntu/.homebridge drirectory and "/usr/local/lib/node_modules/homebridge" but I always have the same "veraIP undefined message.

Here are my 2 config files:

config.js

module.exports = {
    veraIP:  "192.168.1.215",
    happort: 6200,
    dimmertest: true,
    cardinality: 0,
    bridged: true,
    includesensor: false,
    pincode: "031-45-155",
    mainHNpath: "./node_modules/hap-nodejs"

config.js
{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-155",
    "veraIP": "192.168.1.215"
  },
  "platforms": [
    {
      "platform": "Vera",
      "name": "Vera"
    }
  ]
}


Can anyone give me a hand at this ?

There is a new version of homebridge-vera, please update the module and then change your homebridge/config.json file with this config:

Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30"
},
"platforms": [{
            "platform" : "Vera",
            "name" : "Vera",
            "veraIP" : "10.0.1.5",
            "includesensor" : false,
            "dimmertest" : false
        }]
}

Title: Re: News about HomeKit and Vera
Post by: goldriver on January 16, 2016, 10:02:07 am
After installing on windows and been able to find all the config correctly, I'm now trying to install homebridge-vera on a Ubuntu 14 linux box but I'm stuck at the same place I was with windows but this time everything I did to fix the ip not found on windows does not fix my issue on Ubuntu

here is the message

"Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[Vera] Initializing Vera platform...

/usr/local/lib/node_modules/homebridge-vera/index.js:27
    this.verainfo = this.functions.getVeraInfo(Veraconfig.veraIP);
                                                         ^
TypeError: Cannot read property 'veraIP' of undefined
 

"

I did copy the config.js file both in /home/ubuntu/.veralink and the installation DIR "/usr/local/lib/node_modules/homebridge-vera" , and also copied the config.json file in /home/ubuntu/.homebridge drirectory and "/usr/local/lib/node_modules/homebridge" but I always have the same "veraIP undefined message.

Here are my 2 config files:

config.js

module.exports = {
    veraIP:  "192.168.1.215",
    happort: 6200,
    dimmertest: true,
    cardinality: 0,
    bridged: true,
    includesensor: false,
    pincode: "031-45-155",
    mainHNpath: "./node_modules/hap-nodejs"

config.js
{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-155",
    "veraIP": "192.168.1.215"
  },
  "platforms": [
    {
      "platform": "Vera",
      "name": "Vera"
    }
  ]
}


Can anyone give me a hand at this ?

There is a new version of homebridge-vera, please update the module and then change your homebridge/config.json file with this config:

Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30"
},
"platforms": [{
            "platform" : "Vera",
            "name" : "Vera",
            "veraIP" : "10.0.1.5",
            "includesensor" : false,
            "dimmertest" : false
        }]
}

Thanks for the change, will this release work with the 0.2.15 engine of HomeBridge or we need to keep the 0.2.13 ?
Title: Re: News about HomeKit and Vera
Post by: spoonula on January 16, 2016, 11:13:43 am
I just got homebridge running on my Raspberry Pi B+ and some but not all of my devices showed up in my homekit app. The ones that did show up I was able to control, but I'm wondering why most of my power on/off devices are not showing up. I am also wondering why now my devices are unreachable. They worked at first, but now they are unreachable and I cannot control anything. Homebridge is still running on the pi.
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 16, 2016, 04:22:36 pm
Thanks damianxd the modification you did is working BUT I still have an issue, once I've run homebridge once, whenever I stop it and try to restart it I always have the "TypeError: Cannot set property 'veraIP' of undefined ...", the only way to restart homebridge is to remove the directory /home/ubuntu/.veralink.

Once /home/ubuntu/.veralink removed the homebridge can now start without the veraIP missing error, would anyone have any clue to help me fix my problem ?

thanks
Title: Re: News about HomeKit and Vera
Post by: Richardb on January 18, 2016, 11:46:28 pm
What's the store on thermostats. HVAC?
Is anyone working on an accessory for it?
Title: Re: News about HomeKit and Vera
Post by: weissertigerxl on January 21, 2016, 05:07:58 am
Hi all,

I was exiting reading this thread.

Would it be possible to run on QNAP NAS 419+ with ARM chipset?

What would be necessary to be done?

Thanks in advance.
Title: Re: News about HomeKit and Vera
Post by: bigeazy000 on January 23, 2016, 09:42:47 pm
Hello All,

     First, thanks for everyone that has worked on this, it is very cool! I have homebridge and homebridge-vera running on OS X and it is very stable. One question I have: Is there a way to exclude certain devices in the config.json file? I have a zwave switch that I would like to exclude, as it is a power monitoring switch that monitors the power to my network rack. So, when I tell Siri "all lights off" my network goes down with it. I know there is another project out there called homebridge-veralite, and that one seems to support device exclusion. Is there a way to do it in homebridge-vera?

Thanks!
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on January 27, 2016, 03:57:51 pm
@hackworth, If I add a new device to Vera do I need to blow away my persist folder and reset home kit on my iOS devices? I imagine this is the case and this is what I have been doing in the past but I am just hoping there is a better way.

Please chime in anyone if you know the answer  :)

Cheers.
Title: Re: News about HomeKit and Vera
Post by: torpex77 on January 28, 2016, 10:05:26 am
Hello All,

     First, thanks for everyone that has worked on this, it is very cool! I have homebridge and homebridge-vera running on OS X and it is very stable. One question I have: Is there a way to exclude certain devices in the config.json file? I have a zwave switch that I would like to exclude, as it is a power monitoring switch that monitors the power to my network rack. So, when I tell Siri "all lights off" my network goes down with it. I know there is another project out there called homebridge-veralite, and that one seems to support device exclusion. Is there a way to do it in homebridge-vera?

Thanks!

I hope this is possible, as I would like to do the same thing - not expose all of my devices to HomeKit.  Mostly to avoid cluttering things up.  I only have a few things - lights mainly - that I want to have Siri deal with.

Thanks,

Doug
Title: Re: News about HomeKit and Vera
Post by: hellovn on January 28, 2016, 11:26:26 am
Anyone has been successfully using Siri over LTE? I am using VeraHomekitBridge under Mac OS X El Capitan and it is working great in LAN but not in LTE. I tried to logging in and logging out my iCloud in myphone and apple tv. I did not set the two step verifications too.
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on January 28, 2016, 11:39:05 am
@hellovn Some of us are successful with using home kit externally but not all, and there seems to be no rhyme or reason as to why this is the case. All I can suggest is that from personal experience...it just started working one day.

Also, even now while it is working Siri often tells me it could not find my devices, yet I know the command went through and was processed by Vera. For example I was demoing my kettle to someone at work...told Siri to boil it. She embarrassed me but a few minutes later I got a push notification that the kettle was boiled.
Title: Re: News about HomeKit and Vera
Post by: goldriver on January 28, 2016, 03:46:24 pm
@hellovn Some of us are successful with using home kit externally but not all, and there seems to be no rhyme or reason as to why this is the case. All I can suggest is that from personal experience...it just started working one day.

Also, even now while it is working Siri often tells me it could not find my devices, yet I know the command went through and was processed by Vera. For example I was demoing my kettle to someone at work...told Siri to boil it. She embarrassed me but a few minutes later I got a push notification that the kettle was boiled.

?m quitte surprisd that some peoples are able to get it to work since the connection from Siri to Vera is through a third party app running on the iPhone !!! This means that the app used can be configured manually to connect through WAN to Vera !!

If so could someone who has been able to get it to work can tell me what HomeKit app they are using
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on January 28, 2016, 04:03:06 pm
If so could someone who has been able to get it to work can tell me what HomeKit app they are using

Sure @goldriver I'm using Eve by Elgato but I don't believe the app has anything to do with it as the app (any app) is just a means of accessing the Homekit database which exists, if I'm not mistaken in my iCloud account and is replicated to any guest users iOS iCloud accounts and subsequently to their device(s) . Incidentally I have an iPad in the kitchen that has no Homekit app installed and never has - I invited it's iCloud email to use Homekit and it can control my devices.
Title: Re: News about HomeKit and Vera
Post by: trouty00 on January 31, 2016, 08:33:48 am
I'm a little confused by the different versions out there. was using Hackworth version but noticed it didnt seem to pick up all my scenes when launched - even though they all show in the app. is there a limitation for number of devices/scenes?

which version is the best one to be using at the moment?

Ta
Stu
Title: Re: News about HomeKit and Vera
Post by: trouty00 on January 31, 2016, 12:25:01 pm
ok so the above not strictly true

what is really odd is that it doesn't seem to like some scene names. I have a "bedtime" scene but just always gave me the error it couldn't find the device - change the scene name to "nighttime" and it works absolutely fine.

also doesn't like alarm on/off scenes but that just because it think im talking about iphone alarm. i can work around that as that makes sense,
Title: Re: News about HomeKit and Vera
Post by: tahitibub on February 01, 2016, 09:42:03 am
Hi,

I installed Vera HomeKitBridge using Docker on a Synology NAS, as explained by acn here (http://forum.micasaverde.com/index.php/topic,31716.msg237385.html#msg237385) (thanks to him for that).

FYI, to find "tutum/debian:wheezy" image, you have to search only "tutum/debian", and after you select it, you will have to choose which version you want (wheezy, squeeze, jessie or latest).

Here is the content of my 'config.json' file (VeraIP has been changed to X.X.X.X) :

Code: [Select]
{
  "VeraIP": "X.X.X.X",
  "PIN": "031-45-154",
  "GarageDoors":[
    "Garage Door",
    "Second Garage Door"
  ]
}


After launching Avahi server, I launch HomeKitBridge in DEBUG mode using these commands :

cd /home/VeraHomeKitBridge
DEBUG=* node app.js

Then I get this :

Code: [Select]
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Starting Vera HomeKit Bridge...
Create accessory: Appliance Module
  EventedHTTPServer Server listening on port 51826 +0ms

The problem is that I should normally get something like "TCP server accepting connection on port: XXXXX / HAP Server is listening" with each accessory created, but there is nothing like that.

Who can tell me why Vera HomeKit Bridge stays stucked on "EventedHTTPServer Server listening on port 51826 +0ms" ?
Title: Re: News about HomeKit and Vera
Post by: tahitibub on February 03, 2016, 05:15:35 am
@acn :

I thank you very much for your previous tutorial (http://forum.micasaverde.com/index.php/topic,31716.msg237385.html#msg237385) explaining how to run "HomeKit bridge to Vera" on a Synology DS  using a Docker (http://www.programering.com/a/MzM0UjNwATU.html) virtual image.

A quick presentation of Docker is available here (https://www.wanadev.fr/tuto-debuter-et-comprendre-docker/) in French.

However, as I said just above, I didn't manage to make HomeBridge work using this tuto.

Did we have to add something in the Syno's firewall ?

Could you try to reinstall HomeBridge using currently available files (tutum/debian:jessie, Node v5.5.0), and post the tuto here ?

Could you use Nick Farina's version (https://github.com/nfarina/homebridge) of HomeBridge, which seems more up-to-date ?

Regards
Title: Re: News about HomeKit and Vera
Post by: PrBreezy on February 04, 2016, 11:10:17 am
Hi Guys

I follow all steps twice.. and I still can't get it...

I stuck in this part :
http://s11.postimg.org/dxl1urb9f/Capture.png
+ Attachments and other options
Title: Re: News about HomeKit and Vera
Post by: tahitibub on February 04, 2016, 09:05:38 pm
Hi,

I created a new thread about Installing HomeBridge (HomeKit bridge to Vera) on Docker Synology.

It's available here (http://forum.micasaverde.com/index.php/topic,36131.0.html).

Regards.
Title: Re: News about HomeKit and Vera
Post by: ericstuberg on February 16, 2016, 12:34:49 am
So this had been working pretty well.  The SSD on the Ubuntu NUC that had been running this (and a lot of other stuff) died two days back, and I've just gotten it all pretty much reassembled.

Eve pairs the bridge fine.  I can use Eve to actuate devices.  But now Siri says something akin to "Sorry Richard, I couldn't find any devices"...sometimes with "at this time" tacked on at the end.

I'll futz with it some more as time permits, but was curious if anyone had seen this behavior?

--Richard

Richard, Did you find out what was going on here? I am having the same exact issue. Homebridge runs on my RP2 and generates a bunch of devices. when I go to add them to homekit and put in my pin (tried multiple formats), the Pin is correct, but i continue to get the "adding failed- could not connect to accessory" message

I read somewhere that this may have a 100 device "per platform" limit... I have a ton of devices, as my entire house is set up. Any light shed on this issue or a workaround would be appreciated...
Title: Re: News about HomeKit and Vera
Post by: hummer5 on February 16, 2016, 03:30:45 am
Hi all,

I have a rasp Pi which I am using to integrate vera with Amazon echo. Is it possible to run the Siri homekit at the same time as the folder seems to share the same names.

Thanks in advance


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: hummer5 on February 16, 2016, 07:15:31 am
Hi all,

I am having issues constantly and no matter what file i try,  I keep getting the same kind of error. One example is below. Please advise


New User@Waheguru MINGW64 /f/Download/homekit
$ npm run start

> VeraHomeKitBridge@0.0.0 start F:\Download\homekit
> node app.js

Starting Vera HomeKit Bridge...

F:\Download\homekit\lib\HAP-NodeJS\node_modules\mdns\lib\dns_sd.js:35
    throw ex;
          ^
Error: %1 is not a valid Win32 application.
F:\Download\homekit\lib\HAP-NodeJS\node_modules\mdns\build\Release\dns_sd_bindings.node
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (F:\Download\homekit\lib\HAP-NodeJS\node_modules\mdns\lib\dns_sd.js:24:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (F:\Download\homekit\lib\HAP-NodeJS\node_modules\mdns\lib\mdns.js:1:77)

npm ERR! VeraHomeKitBridge@0.0.0 start: `node app.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@0.0.0 start script.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
npm ERR! cwd F:\Download\homekit
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm
Title: Re: News about HomeKit and Vera
Post by: m.vdberg on February 19, 2016, 02:28:37 pm
Hi,

I tried to in stall homebridge with veralink for days now.

Does any one have a dececnt manual to install this from scratch on a raspi b2?

Title: Re: News about HomeKit and Vera
Post by: damianxd on February 22, 2016, 04:22:51 pm
Hi,

I tried to in stall homebridge with veralink for days now.

Does any one have a dececnt manual to install this from scratch on a raspi b2?
There was a problem with the NPM version of homebridge-vera, it should be fixed now.
Title: Re: News about HomeKit and Vera
Post by: damianxd on February 22, 2016, 04:25:47 pm
Anyone has been successfully using Siri over LTE? I am using VeraHomekitBridge under Mac OS X El Capitan and it is working great in LAN but not in LTE. I tried to logging in and logging out my iCloud in myphone and apple tv. I did not set the two step verifications too.
Apple's security doesn't allow any type of Homekit interaction from outside the Wifi network of the place where the devices are.
Title: Re: News about HomeKit and Vera
Post by: simonclark on February 22, 2016, 04:48:46 pm
If you set up a vpn into your router you can do it. I don't have apple TV but with vpn I can ask Siri to do things when on lte/4g.
Title: Re: News about HomeKit and Vera
Post by: ando1 on February 24, 2016, 09:36:56 pm
I just want to say thank you to Hackworth for the great work and help he has provided everyone. I was able to successfully install and configure HomeKitBridge and Eve and now I can control all my lights with my Apple Watch!

Thanks!!
Andy
Title: Re: News about HomeKit and Vera
Post by: hummer5 on February 25, 2016, 04:10:26 am
Hi all,

can some one please tell me how to fix this error. I have tried everything but i am having hard time setting my raspberry pi up with this.


*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>


Thanks in advance.
Title: Re: News about HomeKit and Vera
Post by: ando1 on February 25, 2016, 06:36:16 am
Hi all,

can some one please tell me how to fix this error. I have tried everything but i am having hard time setting my raspberry pi up with this.


*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>


Thanks in advance.

@hummer5
It looks like the warnings can be ignored. I found this on nfarina's Github page for home bridge:

Link: https://github.com/nfarina/homebridge

Errors on startup

The following errors are experienced when starting Homebridge and can be safely ignored. The cost of removing the issue at the core of the errors isn't worth the effort.

*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointerde/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointerde/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
Title: Re: News about HomeKit and Vera
Post by: weissertigerxl on February 25, 2016, 08:18:00 am
Hi,

is there any know thread for runninng homekit at QNAP ARM instead of synlogy?
Title: change port
Post by: hummer5 on February 28, 2016, 10:02:28 pm
Hi Guys,


Is it possible for me to change the port.
I am trying to run the setup on raspberry pi and keep getting error

Error: listen EADDRINUSE :::54826.

Is it possible for me to change the port. I can see the verabridge on the iphone but as soon as i click to add i get this error on winscp and verabridge disappears from the app.

Thanks in advance.
Title: Re: News about HomeKit and Vera
Post by: Timon on February 29, 2016, 10:14:47 am
I was just reading about the new Raspberry Pi 3 which has both builtin WiFi and Bluetooth. Wonder if the Pi running the HomeKit interface could just talk to the Pi using either WiFi or Bluetooth.
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on February 29, 2016, 02:18:35 pm
If you set up a vpn into your router you can do it. I don't have apple TV but with vpn I can ask Siri to do things when on lte/4g.


I don't understand why people need to use VPN to use HomeKit, I use HomeKit when I am away from home on 3G / 4G / Wifi - it is routed through my AppleTV as per the Apple specification. I have used it remotely with ATV3 and now with ATV4 as per http://www.howtogeek.com/234180/how-to-enable-remote-access-to-your-homekit-smart-home-via-apple-tv/

@damianxd (whom I have a lot of respect for on this forum) said "Apple's security doesn't allow any type of Homekit interaction from outside the Wifi network of the place where the devices are.: but I find this not to be the case.

Am I missing the point here? I will post a video of remote access to HomeKit if anyone would like to see it functioning.
Title: Re: News about HomeKit and Vera
Post by: sebby on February 29, 2016, 10:08:40 pm
Can someone point me in the right direction to get homekit to see the scenes in the Vera?  I have the homebridge installed and talking to a couple of devices, but i cannot figure a way for it to recognize the scenes in vera.  i tried modifying the config.json with a scenes section:

Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30"
},
"scenes": [{
"active": 0,
"name": "Welcome Home Ida",
"id": 9,
"room": 3
}, {
"active": 0,
"name": "Welcome Home Sebastian",
"id": 8,
"room": 3
}],
"platforms": [{
"platform": "Vera",
"name": "Vera",
"veraIP": "10.10.10.15",
"includesensor": false,
"securitypoll": 2000,
"dimmertest": false
}]
}

i've also tried adding a "loadscenes" variable i found in a forum elsewhere to include scenes:

Code: [Select]
"platforms": [{
"platform": "Vera",
"name": "Vera",
"veraIP": "10.10.10.15",
"includesensor": false,
"securitypoll": 2000,
"dimmertest": false,
"loadscenes": 1,
}]

none of these have worked. 
Title: Re: News about HomeKit and Vera
Post by: ando1 on March 01, 2016, 05:57:24 am
I would like to know this as well. I use EVE and it can see the scenes but cannot run them. Whenever I click the switch for a scene nothing happens.

Thanks,
Andy
Title: Re: News about HomeKit and Vera
Post by: ando1 on March 04, 2016, 04:04:13 pm
Sorry to ask again but I have been trying to run a scene with no success. I am using Hackworth's HomeKitBridge implementation and everything is working as expected. I can see all devices and scenes in EVE and can control them all from the app (including scenes). The problem is that when I go go run a scene using Siri she tells me that she couldn't get a response from any of my devices. I can successfully use Siri to turn off lights though. Has anyone else run into this problem of not being able to get scenes to run?

Thanks,
Andy

Update: I was able to figure this out and now scenes are working!. For anyone that is having the same problem, I had to create scenes using the EVE app and then add the detected scene as an action. The only caveat is that the new scene name has to be different than the detected scene. After doing this, all scenes are executed by using Siri on my Apple Watch or iPhone!

Andy
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on March 15, 2016, 05:05:53 pm
Ooh! Elgato Eve now has geolocation built in.
Title: Re: News about HomeKit and Vera
Post by: deejc on March 24, 2016, 04:24:21 am
I am getting very very slow updates and crashing after about an hour on the new veraplus, has anyone else used a rpi and Veraplus successfully ?


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: deejc on March 30, 2016, 03:24:44 pm
i reinstalled raspian and started from scratch using @hackworth version and its all good.
all devices, all scenes, working great, it auto starts on boot using pm2 from here
http://www.domoticz.com/forum/viewtopic.php?f=36&t=6864&start=200#p51609 (http://www.domoticz.com/forum/viewtopic.php?f=36&t=6864&start=200#p51609)

just need to work on why it wont control over my atv4 but thats for another time, probably need to log out of icloud but i will lose all my contacts, photos, all that stuff and it takes ages to reload it all, so its a weekend job....

nice job @hackworth and everyone who posted tips / tricks etc

ps: might want to break out the different versions into their own threads and deal with the install / running issues on a per version basis, i read 32 pages of this thread to work out which version did what etc...
Title: Re: News about HomeKit and Vera
Post by: deejc on March 30, 2016, 03:35:26 pm
just need to work on why it wont control over my atv4 but thats for another time, probably need to log out of icloud but i will lose all my contacts, photos, all that stuff and it takes ages to reload it all, so its a weekend job....

actually i just checked my atv4 was logged in with the same icloud account (which is wasnt), changed to the same account and now its all working, followed the instructions from here:
http://www.howtogeek.com/234180/how-to-enable-remote-access-to-your-homekit-smart-home-via-apple-tv/ (http://www.howtogeek.com/234180/how-to-enable-remote-access-to-your-homekit-smart-home-via-apple-tv/)
Title: Re: News about HomeKit and Vera
Post by: ando1 on April 01, 2016, 11:41:14 am
I am hoping someone can help me here. I am having some issues getting Siri and Homekitbridge to operate my garage doors. I suspect it has something to do with the garage doors are controlled by my Ademco alarm which has an EVL3 connected to it so Vera can communicate with it. Vera sees the relays that the garage doors are connected to and I can control them using scenes in Vera,Homewave and EVE. The issue is that I cannot tell Siri to operate the doors. Does anyone have any suggestions to make this work?

TIA,

Andy
Title: Re: News about HomeKit and Vera
Post by: deejc on April 01, 2016, 12:34:14 pm
siri is very particular about how you phrase the open / close, if they show up in eve then siri should be able to operate them its just a question of maybe trying different ways to get them to respond to voice.
Title: Re: News about HomeKit and Vera
Post by: ando1 on April 01, 2016, 12:52:21 pm
Thanks deejc,

I think that is the problem, the garage door devices do not show up in homekitbridge or EVE. The scenes do which is why I can control them with EVE but not Siri. I just looked at the device file from my vera and it shows the garage doors are in fact child devices of the envisalink:

Title: Re: News about HomeKit and Vera
Post by: ando1 on April 01, 2016, 04:00:14 pm
I think I may have solved this by installing the garage door plugin from the vera app store. I  used the devices created to control the relay for each door and it homekitbridge sees the device as a door lock. Will keep monitoring to see if it breaks.

Andy
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on April 23, 2016, 08:01:09 pm
Does anybody know how to make the bridge difference at a plug socket from a light switch? Even if we have to manually edit a file in homebridge-vera? I'm assuming for each device in vera, the homebridge plugin creates a file somewhere that maybe we can edit?

Currently if I say "hey Siri, turn off all the lights" it turns the sockets off on my computer!
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on April 29, 2016, 04:47:38 pm
Does anybody know how to make the bridge difference at a plug socket from a light switch? Even if we have to manually edit a file in homebridge-vera? I'm assuming for each device in vera, the homebridge plugin creates a file somewhere that maybe we can edit?

Currently if I say "hey Siri, turn off all the lights" it turns the sockets off on my computer!

Did you work this out CelticWebs? Have you tried changing the device icon in Eve? I've not tried but I suspect it may help.
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on April 29, 2016, 05:05:26 pm
Hi theolsen,

I'm afraid I haven't been able to yet, I also contacted dev and haven't been able to find a fix.

There is no option to change the icon to anything other than a light in Eve.

(http://uploads.tapatalk-cdn.com/20160429/187a9aa8f44bdc6eaaca73b6a8f3d28b.jpg)
Title: Re: News about HomeKit and Vera
Post by: yehuda2525 on May 01, 2016, 03:03:42 am
I've got it to work...
But i cant see my roller shuter...
Ani help?
Title: Re: News about HomeKit and Vera
Post by: yehuda2525 on May 03, 2016, 08:48:48 am
ani help?
Title: Re: News about HomeKit and Vera
Post by: yehuda2525 on May 03, 2016, 08:50:18 am
any help?
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on May 03, 2016, 11:01:18 am
any help?

Over there in front of the window.


-sorry, couldn't resist!
Title: Re: News about HomeKit and Vera
Post by: yehuda2525 on May 04, 2016, 02:32:17 am
 :-\
Title: Re: News about HomeKit and Vera
Post by: hellovn on May 24, 2016, 10:15:52 am
After upgrading to the latest iOS version, I could control my home using Siri remotely using Apple TV 3 magically  8) 8).
Title: Re: News about HomeKit and Vera
Post by: Ryanoc75 on June 05, 2016, 06:50:57 am
Hi,

I installed Vera HomeKitBridge using Docker on a Synology NAS, as explained by acn here (http://forum.micasaverde.com/index.php/topic,31716.msg237385.html#msg237385) (thanks to him for that).

FYI, to find "tutum/debian:wheezy" image, you have to search only "tutum/debian", and after you select it, you will have to choose which version you want (wheezy, squeeze, jessie or latest).

Here is the content of my 'config.json' file (VeraIP has been changed to X.X.X.X) :

Code: [Select]
{
  "VeraIP": "X.X.X.X",
  "PIN": "031-45-154",
  "GarageDoors":[
    "Garage Door",
    "Second Garage Door"
  ]
}


After launching Avahi server, I launch HomeKitBridge in DEBUG mode using these commands :

cd /home/VeraHomeKitBridge
DEBUG=* node app.js

Then I get this :

Code: [Select]
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Starting Vera HomeKit Bridge...
Create accessory: Appliance Module
  EventedHTTPServer Server listening on port 51826 +0ms

The problem is that I should normally get something like "TCP server accepting connection on port: XXXXX / HAP Server is listening" with each accessory created, but there is nothing like that.

Who can tell me why Vera HomeKit Bridge stays stucked on "EventedHTTPServer Server listening on port 51826 +0ms" ?

Has anyone been able to find the solution to this problem?  I too am having the same issue, my scenes and devices all get created and I get the same listening message when running in DEBUG mode and I can see the bridge in EVE and MyTouchHome however when I enter the pin I get "Pairing failed, Cannot connect to device" 

I have reformatted my SD card on my RPi twice now and followed Hackworth's instructions to the letter and also nfarina's and homebridge does the same thing.  I am in the process of trying to integrate  Be2daErtin's  version into nfarinas version because  Be2daErtin's version allows me to exclude devices as I am sure I am over the 100 devices per bridge limit. 

Has anyone with a large network of 100+ devices been able to get a stable version running?  I had this running on my Mac but switched to the RiPi so I can leave it on and running 24/7 but I'm at my wits end trying to get this to work ??
Title: Re: News about HomeKit and Vera
Post by: tahitibub on June 05, 2016, 11:05:24 am
Has anyone been able to find the solution to this problem?

Hi,

You can find my explanations about the creation of a homebridge docker image here (http://forum.micasaverde.com/index.php/topic,36131.msg269673.html#msg269673).

Hope it'll help.

Regards
Title: Re: News about HomeKit and Vera
Post by: Ryanoc75 on June 05, 2016, 10:12:22 pm
Thanks tahitihub but your link is a tuto on how to get it running on a synology NAS.  I am trying to resolve my problems on a Raspberry Pi3.  The only solution I have found in all my google searches for "Pairing Failed Could not connect to device"  has been to reformat and start over which I've done 3 times now with the same result everytime.   Both Hackworth and nfarina's create devices and scenes and then stops.

  I've got a VeraHomeKitBridge folder and a .homebridge folder with npm installed locally and globally - It used to fail with the curve25519 package but I managed to get that resolved  Anyone have any suggestions to try other than a reinstall?
Title: Re: News about HomeKit and Vera
Post by: kman on June 07, 2016, 11:57:14 am
Hello, an aside question, I am using the VeraHomeKitBridge (thank you Hackworth), however it takes Siri a few attempts to get the lights to respond. I am using this on Windows 7. Is this a known issue or am I doing something wrong?

Thank you!
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on June 07, 2016, 03:33:30 pm
It's me again. I have finally had a few cycles to try to sort out why, when I allow Hackworth's VeraHomeKitBridge (an excellent piece of work, BTW) to "ProcessScenes", I cannot get the iOS apps to pair.  Still don't know which one is causing the issue, but have determined that it's not something general about my setup--I can add a few scenes selectively, and it's all good.

Which brings me to this: in general, I don't *want* all my scenes accessible via HomeKit.  Almost all of them are time or event driven, that I would never launch by hand except for testing.  I am no nodeJS wiz, but made two simple changes that allow me to tell the bridge which scenes I want instantiated.

My config.json now looks like this:

Code: [Select]
{
  "VeraIP": "192.168.1.8",
  "PIN": "031-45-154",
  "GarageDoors":[
    "North Door",
    "Center Door",
    "South Door"
  ],
  "DesiredScenes":[
    "TV time",
    "Shade open",
    "Shade close",
    "Shade evening",
    "Lights out",
    "Lava for 20",
    "Outside on for 10",
    "Garage door check"
  ]
}

And the function "processScenes" in app.js now looks like this:

Code: [Select]
function processScenes(scenes) {
  scenes.forEach(function(scene) {
    if (config.DesiredScenes.indexOf(scene.name) > -1){
        if (scene.name.indexOf(" - Off") == -1){
            offScene = _.find(scenes, function(offScene){ return offScene.name \
== scene.name.replace(" - On", " - Off")});
            createScene(scene, offScene);
        }
    }
  });
}

I can now specify the names for scenes I want included into the bridge in config.json.  A simple change.  We really only have eight scenes (out of about 70) that we would ever invoke through Homekit, so this allows me to utilize Hackworth's bridge without having a lot of long-winded, sound-alike scenes get sucked in that are only there for automation.

Thought I'd share.  Thanks again, Hackworth.

--Richard
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on June 08, 2016, 10:57:32 am
Nice job Richard.
Title: Re: News about HomeKit and Vera
Post by: kman on June 08, 2016, 05:30:21 pm
@rlmalisz this is great - I have a mix of Z-Wave / Vera lights and now I excluded the Hue lights with similar coding to avoid confusion.
Title: Re: News about HomeKit and Vera
Post by: dayfly on June 09, 2016, 06:20:21 am
Dos anyone have a new manual for installing it on windows ?

i searched the forum but isnt really clear wich steps i need to follow, saw one on page 5 from aechelon and page 29 from goldriver

Title: Re: News about HomeKit and Vera
Post by: CelticWebs on June 09, 2016, 06:24:17 am
Does hacksworth VeraHomeKitBridge vary much from damianxd homebridge-Vera ?
Title: Re: News about HomeKit and Vera
Post by: kman on June 11, 2016, 09:55:47 am
@dayfly can you access the wiki? https://github.com/Hackworth/VeraHomeKitBridge/wiki/Installation-instructions-for-Windows-7.

I created these when I installed on my machine.
Title: Re: News about HomeKit and Vera
Post by: dayfly on June 12, 2016, 04:05:57 am
@dayfly can you access the wiki? https://github.com/Hackworth/VeraHomeKitBridge/wiki/Installation-instructions-for-Windows-7.

I created these when I installed on my machine.
thanks I followed youre those steps,

edit
i followed this after the first steps,
https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-Windows

but getting this error now

C:\Users\Administrator>node homebridge
module.js:327
    throw err;
    ^
Error: Cannot find module 'C:\Users\Administrator\homebridge'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3


cant really say its easy to install and to get working, wil there ever be a app or an easy installer for vera and siri?
Title: Re: News about HomeKit and Vera
Post by: rafale77 on June 12, 2016, 11:14:13 am
Does hacksworth VeraHomeKitBridge vary much from damianxd homebridge-Vera ?

Somewhat different. I am still using Hacksworth as I use Homekit (Siri) as only an input to the Vera. All the smart and all the plugins for other devices are on the Vera.
Homebridge allows you to shift your hub to Homekit and use the Vera only as a bridge to your zwave and whatever devices you have connected on it.
It comes down to convenience and quality of your device set. The Homebridge enables you also to have a bit of both.

Homebrige has many plugins so you can for example directly connect: a Harmony hub, a hue hub, a lifx, a thinking cleaner, a nest etc without connecting through the vera.
With the VeraHomeKitBridge, you have to connect everything through the Vera. (unless they are Homekit devices which already are on your Homekit network)

The hybrid solution would be for the Vera to execute some of the logic directly and have HomeKit execute some others for devices which have a plugin on Homebridge but not on the Vera for example. You can also have devices which are connected to both... My Hue hub comes to mind so I could control my Hue with the Vera or with HomeKit directly or using Homekit through the Vera... So many ways to do it once they are all interconnected...

I personally try to centralize all the logic on the Vera with scenes so I have no use for Homebridge yet.


Title: Re: News about HomeKit and Vera
Post by: Kryckmeister on June 12, 2016, 01:02:14 pm
Which is the easiest way to sort out, A Raspberry Pi or Synology NAS (I have a DS 413j)?
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on June 12, 2016, 01:11:39 pm
Does hacksworth VeraHomeKitBridge vary much from damianxd homebridge-Vera ?

Somewhat different. I am still using Hacksworth as I use Homekit (Siri) as only an input to the Vera. All the smart and all the plugins for other devices are on the Vera.
Homebridge allows you to shift your hub to Homekit and use the Vera only as a bridge to your zwave and whatever devices you have connected on it.
It comes down to convenience and quality of your device set. The Homebridge enables you also to have a bit of both.

Homebrige has many plugins so you can for example directly connect: a Harmony hub, a hue hub, a lifx, a thinking cleaner, a nest etc without connecting through the vera.
With the VeraHomeKitBridge, you have to connect everything through the Vera. (unless they are Homekit devices which already are on your Homekit network)

The hybrid solution would be for the Vera to execute some of the logic directly and have HomeKit execute some others for devices which have a plugin on Homebridge but not on the Vera for example. You can also have devices which are connected to both... My Hue hub comes to mind so I could control my Hue with the Vera or with HomeKit directly or using Homekit through the Vera... So many ways to do it once they are all interconnected...

I personally try to centralize all the logic on the Vera with scenes so I have no use for Homebridge yet.

Thanks for the reply..

I'm currently using homebridge-Vera as a standalone, I did have it as a homebridge plugin but I purely just want Siri control of my Vera devices.  I wasn't sure which would be better for me.  It looks like they're both very similar.  I couldn't get hacksbridge one to work so looks like there isn't much point in me spending more time on that. They appear very similar for the my intended use anyway.

Thanks again for the reply!
Title: Re: News about HomeKit and Vera
Post by: kman on June 12, 2016, 07:23:11 pm
@dayfly did you install the necessary components, i.e. Visual Studio / Bonjour, etc.?

I don't know what step you may be missing - to ensure you running the bash in Administrator mode right?
Title: Re: News about HomeKit and Vera
Post by: kman on June 16, 2016, 12:08:20 pm
Hello, an aside question, I am using the VeraHomeKitBridge (thank you Hackworth), however it takes Siri a few attempts to get the lights to respond. I am using this on Windows 7. Is this a known issue or am I doing something wrong?

Thank you!

I have run the debug it appears to be the ECONNRESET error. Any idea how to resolve this?

Code: [Select]
Error 'Error: read ECONNRESET' turning the Chandelier on/off:  undefined
Error 'Error: read ECONNRESET' turning the Chandelier on/off:  undefined
Error 'Error: read ECONNRESET' turning the Chandelier on/off:  undefined
Error 'Error: read ECONNRESET' turning the Pendants on/off:  undefined
Error 'Error: read ECONNRESET' turning the Stairs on/off:  undefined
Error 'Error: read ECONNRESET' turning the Kitchen Main on/off:  undefined
Error 'Error: read ECONNRESET' turning the Foyer on/off:  undefined
Error 'Error: read ECONNRESET' turning the Chandelier on/off:  undefined
Error 'Error: read ECONNRESET' turning the Bulk Head on/off:  undefined
Error 'Error: read ECONNRESET' turning the Kitchen Pots on/off:  undefined
Thu, 16 Jun 2016 15:31:52 GMT EventedHTTPServer [::ffff:192.168.1.142] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
Thu, 16 Jun 2016 15:31:52 GMT EventedHTTPServer [::ffff:192.168.1.149] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
Thu, 16 Jun 2016 15:31:52 GMT EventedHTTPServer [::ffff:192.168.1.142] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
Thu, 16 Jun 2016 15:32:04 GMT EventedHTTPServer [::ffff:192.168.1.142] Client connection error: read ECONNRESET
Thu, 16 Jun 2016 15:32:04 GMT EventedHTTPServer [::ffff:192.168.1.142] Client connection closed
Thu, 16 Jun 2016 15:32:04 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP connection was closed
Thu, 16 Jun 2016 15:32:04 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP server was closed
Thu, 16 Jun 2016 15:41:52 GMT EventedHTTPServer [::ffff:192.168.1.149] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
Thu, 16 Jun 2016 15:41:52 GMT EventedHTTPServer [::ffff:192.168.1.142] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
Thu, 16 Jun 2016 15:42:11 GMT EventedHTTPServer [::ffff:192.168.1.142] Client connection error: read ECONNRESET
Thu, 16 Jun 2016 15:42:11 GMT EventedHTTPServer [::ffff:192.168.1.142] Client connection closed
Thu, 16 Jun 2016 15:42:11 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP connection was closed
Thu, 16 Jun 2016 15:42:11 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP server was closed
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] New connection from client
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP server listening on port 54826
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /pair-verify
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-verify
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] Pair verify step 1/2
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP Repsonse is finished
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /pair-verify
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: POST /pair-verify
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] Pair verify step 2/2
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] Client 8C6EDF55-7EA0-4F49-984B-8FDBB82E8DEA verification complete
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP Repsonse is finished
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /accessories
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: GET /accessories
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP Repsonse is finished
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /characteristics?id=2.3
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: GET /characteristics?id=2.3
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Getting value for Characteristic "Manufacturer"
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Got Characteristic "Manufacturer" value: Z-Wave
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP Repsonse is finished
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /characteristics?id=3.3
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: GET /characteristics?id=3.3
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Getting value for Characteristic "Manufacturer"
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Got Characteristic "Manufacturer" value: Z-Wave
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP Repsonse is finished
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /characteristics?id=4.3
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: GET /characteristics?id=4.3
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Getting value for Characteristic "Manufacturer"
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Got Characteristic "Manufacturer" value: Z-Wave
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP Repsonse is finished
Thu, 16 Jun 2016 15:47:25 GMT EventedHTTPServer [::ffff:192.168.1.142] HTTP request: /characteristics?id=4.10
Thu, 16 Jun 2016 15:47:25 GMT HAPServer [CC:22:3D:E3:CE:F6] HAP Request: GET /characteristics?id=4.10
Thu, 16 Jun 2016 15:47:25 GMT Accessory [Vera Bridge] Getting value for Characteristic "Change the power state"
Title: Re: News about HomeKit and Vera
Post by: Kryckmeister on June 18, 2016, 02:18:42 am
So I had a run with a new R Pi3 (Raspbian fresh install) and followed the guides around http://blog.bram.co.nl/howto-homebridge-on-raspberry-pi-3-for-ios-and-smart-devices/

So I get to pi@raspberrypi:~ $ sudo npm install -g homebridge
and get the reply:

/usr/local/bin/node: 1: /usr/local/bin/node: cannot create @@%@@@@@?@@@??/??/??/??p??px{????/??p??p0@@DDQ?tdR?td??/??p??ppp/lib/ld-linux-aarch64.so.1GNUGNUh?????n???7
   ^o??J?: Directory nonexistent
/usr/local/bin/node: 1: /usr/local/bin/node: ELF?кw@?W: not found
/usr/local/bin/node: 1: /usr/local/bin/node: Syntax error: word unexpected (expecting ")")


Anyone who can help me out a bit?
Title: It breaks with iOS10!!!
Post by: gregorito on June 20, 2016, 08:06:38 pm
I just installed it iOS 10 on my iPhone and Verahomekitbridge no longer works. Devices are seen but unable to control them via native app nor any previously working ones.. So if you are eager to try iOS 10, you may need to wait till an update is provided.
Title: News about HomeKit and Vera
Post by: CelticWebs on June 21, 2016, 02:42:02 am
Let's hope that it's something that is just "broke" rather than somethings that's been changed and that is how it's supposed to be in a ios10!
Title: Re: News about HomeKit and Vera
Post by: kman on June 26, 2016, 03:32:28 pm
I have found Vera HomeKit Bridge to be most stable/responsive in Linux environment. Hence I created a Ubuntu VM within my Win 7 and launching it headless in the background. It's been running fairly responsively for the past 48 hours.

I created a Wiki page if anyone interested in this or has better suggestions - https://github.com/Hackworth/VeraHomeKitBridge/wiki/Ubuntu-VirtualBox-on-Windows-7

I want to understand why turning on a light, turns it on 100% and doesn't remember the state it was turned off in.
Title: Re: News about HomeKit and Vera
Post by: chezpaul on July 03, 2016, 08:25:54 pm
It's me again. I have finally had a few cycles to try to sort out why, when I allow Hackworth's VeraHomeKitBridge (an excellent piece of work, BTW) to "ProcessScenes", I cannot get the iOS apps to pair.  Still don't know which one is causing the issue, but have determined that it's not something general about my setup--I can add a few scenes selectively, and it's all good.

Which brings me to this: in general, I don't *want* all my scenes accessible via HomeKit.  Almost all of them are time or event driven, that I would never launch by hand except for testing.  I am no nodeJS wiz, but made two simple changes that allow me to tell the bridge which scenes I want instantiated.

My config.json now looks like this:

Code: [Select]
{
  "VeraIP": "192.168.1.8",
  "PIN": "031-45-154",
  "GarageDoors":[
    "North Door",
    "Center Door",
    "South Door"
  ],
  "DesiredScenes":[
    "TV time",
    "Shade open",
    "Shade close",
    "Shade evening",
    "Lights out",
    "Lava for 20",
    "Outside on for 10",
    "Garage door check"
  ]
}

And the function "processScenes" in app.js now looks like this:

Code: [Select]
function processScenes(scenes) {
  scenes.forEach(function(scene) {
    if (config.DesiredScenes.indexOf(scene.name) > -1){
        if (scene.name.indexOf(" - Off") == -1){
            offScene = _.find(scenes, function(offScene){ return offScene.name \
== scene.name.replace(" - On", " - Off")});
            createScene(scene, offScene);
        }
    }
  });
}

I can now specify the names for scenes I want included into the bridge in config.json.  A simple change.  We really only have eight scenes (out of about 70) that we would ever invoke through Homekit, so this allows me to utilize Hackworth's bridge without having a lot of long-winded, sound-alike scenes get sucked in that are only there for automation.

Thought I'd share.  Thanks again, Hackworth.

--Richard

Hey Richard, do you have the exact same scene names in Vera ? Same spelling, same uppercase and lowercases? That's all it takeS?
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on July 04, 2016, 12:47:48 pm
It's me again. I have finally had a few cycles to try to sort out why, when I allow Hackworth's VeraHomeKitBridge (an excellent piece of work, BTW) to "ProcessScenes", I cannot get the iOS apps to pair.  Still don't know which one is causing the issue, but have determined that it's not something general about my setup--I can add a few scenes selectively, and it's all good.

Which brings me to this: in general, I don't *want* all my scenes accessible via HomeKit.  Almost all of them are time or event driven, that I would never launch by hand except for testing.  I am no nodeJS wiz, but made two simple changes that allow me to tell the bridge which scenes I want instantiated.

My config.json now looks like this:

Code: [Select]
{
  "VeraIP": "192.168.1.8",
  "PIN": "031-45-154",
  "GarageDoors":[
    "North Door",
    "Center Door",
    "South Door"
  ],
  "DesiredScenes":[
    "TV time",
    "Shade open",
    "Shade close",
    "Shade evening",
    "Lights out",
    "Lava for 20",
    "Outside on for 10",
    "Garage door check"
  ]
}

And the function "processScenes" in app.js now looks like this:

Code: [Select]
function processScenes(scenes) {
  scenes.forEach(function(scene) {
    if (config.DesiredScenes.indexOf(scene.name) > -1){
        if (scene.name.indexOf(" - Off") == -1){
            offScene = _.find(scenes, function(offScene){ return offScene.name \
== scene.name.replace(" - On", " - Off")});
            createScene(scene, offScene);
        }
    }
  });
}

I can now specify the names for scenes I want included into the bridge in config.json.  A simple change.  We really only have eight scenes (out of about 70) that we would ever invoke through Homekit, so this allows me to utilize Hackworth's bridge without having a lot of long-winded, sound-alike scenes get sucked in that are only there for automation.

Thought I'd share.  Thanks again, Hackworth.

--Richard

Hey Richard, do you have the exact same scene names in Vera ? Same spelling, same uppercase and lowercases? That's all it takeS?

Yes.  I'm sure someone who knows more about JS (or is excited to learn more) could make the match case-insensitive, but I didn't.

--Richard
Title: Re: News about HomeKit and Vera
Post by: allthething on July 06, 2016, 04:00:38 pm
Also will try this shortly...

Question: and apologies as I didn't see this in the thread log (assume its buried somewhere)... Is it possible to change the mode (Home, Away, Vacation)?
Title: Re: News about HomeKit and Vera
Post by: helraiser on July 18, 2016, 08:45:29 pm
Quick thanks to the folks that provided this. I'm able to turn on/off lights and unlock doors. Looking forward to more functionality in the future. All this with Ubuntu and my vera3.
Title: Re: News about HomeKit and Vera
Post by: thetwc on July 27, 2016, 08:36:38 am
Thank you all for this and the time everyone's put in.  All your effort has made it easy for a complete novice like me to get up and running.
iOS10 and the Home app was too much for me to take, so i've jumped in got a Pi3 up and running.

Can anyone help me with the thermostats in Homebridge please?
I've installed Home bridge on the PI3 (running Jessie) via " sudo npm install -g homebridge" and the config.json is in .homebridge folder as far as i can tell.

I have lights, heaters and temperature sensors reporting into Homebridge, but not thermostats.
In Vera, I have a number of HRT-4ZWs, a C-Stat 17, a Qubino PWM thermostat, and a few virtual thermostat devices.

How do i add these?
(in step by step idiot speak if possible)

thank you.
Title: Re: News about HomeKit and Vera
Post by: rickybello on July 28, 2016, 07:06:14 am
I have a Logitech added to the Vera-plus, before i add the Logitech and its child devices it works fine with my scenes and couple of devices i have put so far, is anyone else having this issue?
Title: Re: News about HomeKit and Vera
Post by: thetwc on August 02, 2016, 01:11:31 pm
Any ideas how to get thermostats or virtual switches from vera into Homebridge?

Thanks.
Title: Re: News about HomeKit and Vera
Post by: moshik132 on August 04, 2016, 01:24:19 am
Hello friends

I've upgraded to version 9.3.3 iPhone and Siri does not work since almost all the Homekitbridge.

When I say something in turn pots so she just looking for that thing online

Anyone know why? I'm pretty sure it has to do to upgrade the version of the iPhone Does anyone else does that happen?

I checked the settings on the phone and everything looks normal.

Am I missing something? I must say that when I talk to Siri and then I edit what I say and write the same thing! So there are things that work but really not all.

If Siri can not work at home products.

The script runs correctly on my computer at home (I see my model name) I'm the same Wi-Fi network.

Until two weeks ago, everything worked right!

Any ideas?

Thanks
Title: Re: News about HomeKit and Vera
Post by: erikh on August 10, 2016, 05:50:22 am
----UPDATE----

I got this cleared up all by myself.
I had version 0.10.0 of nodejs and 1. something of NPM.

I where not able to update to any newer version until I found this instruction (http://tecadmin.net/upgrade-nodejs-via-npm) by which I was able to update both nodejs and NPM.

After this update, Hacksworth's instructions went smoothly, however, I'm currently doing all this over VPN, so I will see if I will be able to see any of my devices.

---------------------------------------------------------------

I have now tried Hackworth's GIT VeraHomeKitBridge instructions several times, running a RPI2...

I keep getting,

Code: [Select]
pi@raspberrypi ~/VeraHomeKitBridge $ npm run start

> VeraHomeKitBridge@1.0.1 start /home/pi/VeraHomeKitBridge
> node app.js


module.js:340
    throw err;
          ^
Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/pi/VeraHomeKitBridge/app.js:4:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
npm ERR! VeraHomeKitBridge@1.0.1 start: `node app.js`
npm ERR! `sh "-c" "node app.js"` failed with 8
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.1 start script.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.1.7-v7+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! cwd /home/pi/VeraHomeKitBridge
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/VeraHomeKitBridge/npm-debug.log
npm ERR! not ok code 0

If anyone can point me in the right direction it would be highly appreciated!
Title: Re: News about HomeKit and Vera
Post by: Kryckmeister on August 14, 2016, 03:55:43 pm
I've been messing around for a long time with this but I'm either doing something wrong or missing something.
I just started fresh, mainly following this: https://www.npmjs.com/package/homebridge-veralink apart from one thing, http://blog.wia.io/installing-node-js-v4-0-0-on-a-raspberry-pi installing node. This time I went for the standalone version.
When node VeraLink.js I get:

Error: dns service error: name conflict
    at Error (native)
    at new Advertisement (/home/pi/node_modules/homebridge-vera/node_modules/hap-nodejs/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/home/pi/node_modules/homebridge-vera/node_modules/hap-nodejs/node_modules/mdns/lib/advertisement.js:64:10)
    at Advertiser.startAdvertising (/home/pi/node_modules/homebridge-vera/node_modules/hap-nodejs/lib/Advertiser.js:43:30)
    at Accessory._onListening (/home/pi/node_modules/homebridge-vera/node_modules/hap-nodejs/lib/Accessory.js:352:20)
    at emitNone (events.js:67:13)
    at HAPServer.emit (events.js:166:7)
    at HAPServer._onListening (/home/pi/node_modules/homebridge-vera/node_modules/hap-nodejs/lib/HAPServer.js:159:8)
    at emitNone (events.js:67:13)
    at EventedHTTPServer.emit (events.js:166:7)


I did get more or less the same when I went for the app and not the standalone.
Title: Re: News about HomeKit and Vera
Post by: thetwc on August 15, 2016, 04:26:46 am
Any ideas how to get thermostats or virtual switches from vera into Homebridge?

Thanks.
I've worked out how to get Virtual switches visible:

Just change the device file of the VSwitch to 'D_BinaryLight1.xml'

It doesn't change the behavior of the device in Vera at all (that I can see) but Homebridge picks it up and controls it fine.

I've also tried this with combination switches too.  Again, it all works, leaving the vera functionality as normal, but it shows as On in homebridge when the conditions are met. 
Title: Re: News about HomeKit and Vera
Post by: chezpaul on August 21, 2016, 01:13:53 pm
So I got all my devices in my HOME app on iOS10.
Yesterday night it was working.
This morning it's not.
So my question is.... are the Vera people looking into HomeKit? Will it be available as a software update or does it mean hardware update?

Thanks
Title: Re: News about HomeKit and Vera
Post by: helraiser on August 22, 2016, 03:23:34 pm
Any ideas how to get thermostats or virtual switches from vera into Homebridge?

Thanks.

I'm still trying to figure out how to get thermostats to respond. So far I installed virtual switches to control the A/C and Furnace on/off functions. I can turn them off and on but can't control the set points yet. I did the same for my sprinklers. needless to say, I've got a LOT of virtual switches and even more conditions, triggers, actions in PLEG.

I'd ultimately like to get rid of them all but that'd mean going the ecobee3 route rather than my Honeywell zwave tstat. Maybe a plugin will be released soon to allow tstat control.
Title: Re: News about HomeKit and Vera
Post by: simdude on August 29, 2016, 09:35:32 am
So I got all my devices in my HOME app on iOS10.
Yesterday night it was working.
This morning it's not.
So my question is.... are the Vera people looking into HomeKit? Will it be available as a software update or does it mean hardware update?

Thanks

Impossible on the software update as Homekit requires a hardware chip certified by Apple (excluding non-official hacks like homebridge). Many people complain this is a way for Apple to get licensing fees but I doubt that. It's primarily to improve security. There's no way Apple would make any significant amount of money on licensing this chip for it to be a profit center. You can buy cheap $35-$40 wifi switches that are Homekit certified so the licensing fee must be cheap to sell a product at this retail price.

I would have no problem buying a new Vera with Homekit even it was $25 or so more than the non-Homekit version. That should more than cover the licensing. (my guess anyway as Apple requires a non-disclosure preventing you from discussing license cost).
Title: Re: News about HomeKit and Vera
Post by: thetwc on September 04, 2016, 07:21:27 am
Can anyone explain how this works from a network point of view please?
I have a fully working RPi3 on LAN, hard wired to an Apple TV 3, with 25mb down and 7mb upload internet speeds.
Hard wired on the LAN is a Vera lite and Vera Edge
Everything's working well but...

I have a significant delay (90s, maybe more!) in connecting to the devices on a 6S with latest developer ios10. This is on wLAN and also external cellular. Often the devices all report no response too, so it seems it's timing out.

I would like to know if the weak point is the Atv3 (excuse to buy a 4???!) and if the connection always goes out to the cloud and back into the wLAN.

I can't complain as geolocations always seen to fire, but it seems strange that 95% of the time, devices return no response unless you keep refreshing, resetting the iPhone, or quitting. The Home app.

Thanks.
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on September 04, 2016, 05:37:19 pm
I often have a similar issue, I have atv4, Vera plus and bridge is running on a Mac mini server.  It works maybe 75% of the time.
Most annoying thing in ios10 is locks never state the actual current status till you activate one


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: teonebello on September 07, 2016, 06:21:20 pm
I often have a similar issue, I have atv4, Vera plus and bridge is running on a Mac mini server.  It works maybe 75% of the time.
Most annoying thing in ios10 is locks never state the actual current status till you activate one


Sent from my iPhone using Tapatalk
May I ask you how to install Homebridge on a Mac? Thanks a lot!
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on September 07, 2016, 06:25:09 pm
I often have a similar issue, I have atv4, Vera plus and bridge is running on a Mac mini server.  It works maybe 75% of the time.
Most annoying thing in ios10 is locks never state the actual current status till you activate one


Sent from my iPhone using Tapatalk
May I ask you how to install Homebridge on a Mac? Thanks a lot!

I simply followed the instructions....


https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-OSX

Title: Re: News about HomeKit and Vera
Post by: sprut on September 17, 2016, 06:23:38 am
Hi,

I took a few videos of HomeKit.

All videos with English subtitles.

Now, I use HomeKit
https://youtu.be/yZWt6jDCl7E

How to setup HomeKit:
https://youtu.be/8s_EtSz-oUY

How to setup HomeBridge for Vera + Raspberry Pi 3:
https://youtu.be/wrbe2mdAx0s
https://youtu.be/VbP2isBu0jo
Title: Re: News about HomeKit and Vera
Post by: synapse007 on September 17, 2016, 10:03:37 pm
Hi,

I took a few videos of HomeKit.

All videos with English subtitles.

Now, I use HomeKit
https://youtu.be/yZWt6jDCl7E

How to setup HomeKit:
https://youtu.be/8s_EtSz-oUY

How to setup HomeBridge for Vera + Raspberry Pi 3:
https://youtu.be/wrbe2mdAx0s
https://youtu.be/VbP2isBu0jo

Thanks for the video tutorials !!
Title: Re: News about HomeKit and Vera
Post by: spudjr on September 17, 2016, 11:10:05 pm
Got the server running on Windows 7. The only issue is if I restart the server on Windows  then the icons in MyTouchHome on IOS become grayed out. Have to redo them to get to work again. Any ideas of why this is happening? 

Update:
Updated my IOS to 10.x.x and all the problems went away. Also Apple has installed an app called "Home" with IOS 10. No need to download any other app now. MyTouchHome is also working.
Title: Re: News about HomeKit and Vera
Post by: s4nup on September 18, 2016, 04:01:58 pm
Hi,

I took a few videos of HomeKit.

All videos with English subtitles.

Now, I use HomeKit
https://youtu.be/yZWt6jDCl7E

How to setup HomeKit:
https://youtu.be/8s_EtSz-oUY

How to setup HomeBridge for Vera + Raspberry Pi 3:
https://youtu.be/wrbe2mdAx0s
https://youtu.be/VbP2isBu0jo

Thanks for the instructions. I followed it exactly and my verahome appears in ios10. I add the devices to the rooms, however the status is continually "updating". Nothing responds when I try to switch lights etc. Any ideas??
Title: Re: News about HomeKit and Vera
Post by: s4nup on September 24, 2016, 04:09:40 am
Any ideas anyone? I don't understand why HomeKit can see my Vera controller and the associated devices, but then doesn't let me do anything with them or get updates from them
Title: Re: News about HomeKit and Vera
Post by: asggold on September 24, 2016, 06:57:18 pm
 ??? Hoping someone might be able to help here...I have been able to follow all the directions and been able to get Homebridge-Vera working on my Mac just fine.  However, the computer I did this on is a laptop which I take with me on most trips.  So, I was trying to see if there was a way to switch this set-up over to my Synology server I have running on my home network.  The problem I am running into is all the directions I can find on-line show you how to do this on a program called "Docker" on the Synology server.  Unfortunately, it looks like my Synology server might not be compatible with that program because it does not show up in the Synology "Package Center".

I was able to install Node.js v4 on the Synology Server (Volume1), which I think is a start, but stuck at how to complete the rest of the install for Homebridge-Vera on the server.

Anyway, if anyone has any suggestions I would really appreciate it.  Thanks!
Title: Re: News about HomeKit and Vera
Post by: kman on September 26, 2016, 02:24:27 pm
Hi All, anyone experiencing the issue where Siri isn't recognizing the dimmable lights from Vera and is treating them as switches. Am I missing something here?
Title: Re: News about HomeKit and Vera
Post by: asggold on September 26, 2016, 07:44:54 pm
Hi All, anyone experiencing the issue where Siri isn't recognizing the dimmable lights from Vera and is treating them as switches. Am I missing something here?

I assume you updated your Config.json file to look for dimmable switches. Once I changed that to true my dimmer switches started working.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: kman on October 01, 2016, 03:09:39 pm

I assume you updated your Config.json file to look for dimmable switches. Once I changed that to true my dimmer switches started working.


Sent from my iPhone using Tapatalk

Hey thanks for your reply. In Eve (homekit) it recognizes it as a dimmable light, but if I state "Siri dim lamp to 50%", it states back "that's not a supported feature". As a workaround, i created a service group called lamp with just that one device and it works.

i'm on ios 9.0.2
Title: Re: News about HomeKit and Vera
Post by: new2me07 on October 07, 2016, 10:06:23 pm
Hey all,

First off thanks for all the great work. After fooling with it for a day or two sometime last year, i turned on my home bridge and used the new home app in iOS 10 and lights are great.

Can anyone with definite knowledge give a node and npm version for each version out there and what they support i.e. locks, temps, dimmers, scenes.

I think this would help many of us out!

Title: Re: News about HomeKit and Vera
Post by: spudjr on October 12, 2016, 07:47:53 pm
Still having the issue on Win7 when I restart the server I need to set the accessories again in IOS. They get grayed out every time i restart the server. Ideas????
Title: Re: News about HomeKit and Vera
Post by: asggold on October 12, 2016, 08:05:35 pm
Is there anyone out there who has their Homebridge running on a MacBook Pro and connecting with an iPhone running the Home app on iOS 10.1 public beta?
The reason I ask with this detail is that I had everything working perfectly but since this last 10.1 beta upgrade the Home app does not seem to be updating availability without restarting the entire phone. What I am trying to diagnose is if the issue is the Home app on the latest iOS 10.1 beta or if something is timing out on the computer I need to set to have it running all the time.  I didn't seem to have this issue when running the 10.0.2 release and the Homebridge itself was running on my MacBook Air.
It seems like once the connection disconnects it will not reconnect until I restart the iPhone.
Thanks!


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: FastFreddi on October 16, 2016, 08:42:57 am
Have you tried running it on your DiskStation using Chroot?  I'm sure I could figure out some instructions if you're interested.  Another option would be to run Docker on your MacBook. I have not had good results with NodeJS directly on my mac.
Title: Re: News about HomeKit and Vera
Post by: asggold on October 16, 2016, 09:28:45 am
Have you tried running it on your DiskStation using Chroot?  I'm sure I could figure out some instructions if you're interested.  Another option would be to run Docker on your MacBook. I have not had good results with NodeJS directly on my mac.

I had never looked into Chroot but will try that. If that doesn't work I will look into running Docker on the MacBook. If you have instructions on the Chroot option that would be great.

Thanks!


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: FastFreddi on October 16, 2016, 10:44:51 am
I'll post updated instructions for Chroot in a little bit when I get a chance to figure it out.
Title: Re: News about HomeKit and Vera
Post by: asggold on October 16, 2016, 12:16:23 pm
I'll post updated instructions for Chroot in a little bit when I get a chance to figure it out.

Thanks!  Won't have a chance to take a look until later today anyway.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: FastFreddi on October 16, 2016, 08:42:54 pm
I'll create a new thread cause this might be hijacking this one
Title: Re: News about HomeKit and Vera
Post by: asggold on October 16, 2016, 09:01:21 pm
Thanks!  I have tried to install and followed all the directions on-line to install Debian Chroot to my Synology DiskStation but just like Docker it never shows up in my package center.  ???
Title: Re: News about HomeKit and Vera
Post by: Corpze on October 17, 2016, 10:26:17 am
I have been trying to install homebridge on a Raspberry Pi 2, following Sprut's tutorial without any success :(

Is there anyone who has been able to install homebridge on a Rpi2?

/Corpze
Title: Re: News about HomeKit and Vera
Post by: evgenyk on October 27, 2016, 07:41:10 am
Hello community, so far i was just reading and this is my first post :) , i successfully installed both
Hackworth/VeraHomeKitBridge and damianxd/homebridge-vera

However VeraHomeKitBridge does not recognize dimmable lights as dimmable on rgb controller
homebridge-vera successfully recognized RGB led as dimmable, but when exporting scenes from Vera it doesnt group them...
If for example i have 2 scenes called Purple  - On, and Purple - Off... VeraHomeKitBridge will export it as a single scene but homebridge-vera will show both

And last question anyone added support for rgb devices in homekit? i see this plugin https://www.npmjs.com/package/homebridge-better-http-rgb, anyone made it work with fibaro rgbw controller

Thanks
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on November 24, 2016, 09:33:32 pm
So here's a simple question, and I fear I know the answer: do either of the Vera Homekit Bridge implementations discussed here actually push device status updates to HomeKit?  In other words, if I flip a switch (or use Vera to flip a switch), does the bridge notice quickly (when Vera notices) and forward that info to the HomeKit hub?  I am guessing "no" is the answer to one or both of those, but am asking for sanity's sake.

--Richard
Title: Re: News about HomeKit and Vera
Post by: asggold on November 24, 2016, 10:06:36 pm
So here's a simple question, and I fear I know the answer: do either of the Vera Homekit Bridge implementations discussed here actually push device status updates to HomeKit?  In other words, if I flip a switch (or use Vera to flip a switch), does the bridge notice quickly (when Vera notices) and forward that info to the HomeKit hub?  I am guessing "no" is the answer to one or both of those, but am asking for sanity's sake.

--Richard

I believe, if I understand your question correctly, the answer is "Yes".  For example: If I have one of my lights on and switch it off using the actual switch it shows automatically on my Home iPhone App.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on November 25, 2016, 04:14:20 am
So here's a simple question, and I fear I know the answer: do either of the Vera Homekit Bridge implementations discussed here actually push device status updates to HomeKit?  In other words, if I flip a switch (or use Vera to flip a switch), does the bridge notice quickly (when Vera notices) and forward that info to the HomeKit hub?  I am guessing "no" is the answer to one or both of those, but am asking for sanity's sake.

--Richard

The homekit app does indeed update quickly, the only issue I get is atet I get random notifications of doors being used from time to time, I'm assuming its' some kind of crash in the bridge which causes it to update again in the HomeKit app.  That part is a little annoying, the rest is great and works perfectly 99% of the time.
Title: Re: News about HomeKit and Vera
Post by: rlmalisz on November 25, 2016, 12:35:24 pm
So here's a simple question, and I fear I know the answer: do either of the Vera Homekit Bridge implementations discussed here actually push device status updates to HomeKit?  In other words, if I flip a switch (or use Vera to flip a switch), does the bridge notice quickly (when Vera notices) and forward that info to the HomeKit hub?  I am guessing "no" is the answer to one or both of those, but am asking for sanity's sake.

--Richard

The homekit app does indeed update quickly, the only issue I get is atet I get random notifications of doors being used from time to time, I'm assuming its' some kind of crash in the bridge which causes it to update again in the HomeKit app.  That part is a little annoying, the rest is great and works perfectly 99% of the time.

And you are using which instantiation?  I'm running the Hackworth version, and see no indication that it hears anything from Vera after startup.  If you're using the Damianx version, has he gotten dimmer support added yet?

--Richard
Title: Re: News about HomeKit and Vera
Post by: asggold on November 25, 2016, 06:12:32 pm
I am running the version using the steps from post one of these posts. My dimmers are all working. The only thing I can't get working are the thermostats and stereo.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: hubmania on December 07, 2016, 12:11:36 pm
Howdy,

I have my new VeraPlus up and running. I have not moved too much over yet from ST2 to Vera, but I have enough to test.
I have Homebridge running with the ST2 plugin. And it works very well. I'm running it on this iMac.

Now I would like to test Vera with homekit. After reading 38 pages in this thread, I'm not going to assume anything except that there are two ways to go... is that right?

Which one should I start with? Are the instructions on github or elsewhere?

Thank you!
Title: Re: News about HomeKit and Vera
Post by: boojew on December 19, 2016, 08:45:16 pm
Hey guys  - Ive seen a few comments here, but not any resolution to the issues w/ delay on Homekit getting status and issuing commands. I've user verahomekitbridge and homebridge-vera and while homebridge is better, they both seem to suffer from random delays either pushing updates to homekit (or getting the updates from Vera) and sometimes on executing on tasks. Delays are anywhere from 2-90s and sometimes they fail entirely

Anyone had any luck with solving this? I've also noticed that homebridge logging seems to be broken :(
Title: Re: News about HomeKit and Vera
Post by: djrobx on December 24, 2016, 11:42:40 am
I just got this running on my PFSense box.

For anyone looking to get this working on a FreeBSD variant, this page is gold:

https://forums.freenas.org/index.php?threads/homebridge-jail.40754/

It almost works just following those steps.     Just so they aren't lost, here they are again, with vera specific modifications.   I had started out trying to get Hackworth's bridge going, but wound up with a working homebridge.   So it turned out to be easier to proceed with damianxd's module.    I was just happy to have SOMETHING working.  :)

pkg install -y node npm dbus avahi-libdns gcc48 git
npm config set registry http://registry.npmjs.org/
npm install --unsafe-perm -g node-gyp
sysrc dbus_enable="YES"
sysrc avahi_daemon_enable="YES"
ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
env CC=/usr/local/bin/gcc48 CXX=/usr/local/bin/g++48 npm install -g homebridge

npm install -g pm2
service dbus start
service avahi-daemon start
pm2 startup
sysrc pm2_enable="YES"
mkdir ~/.homebridge
cp /usr/local/lib/node_modules/homebridge/config-sample.json ~/.homebridge/config.json


Edit and configure ~/.homebridge/config.json, then?

pm2 start homebridge -- -D


I additionally had to copy /usr/include headers from a similar, regular FreeBSD box into (scp -r 'root@mybsdbox:/usr/include/*' /usr/include) in order to allow the build to complete, because the PFSense distro appears to be very limited and the headers don't seem to be in a FreeBSD package.   I just made a quick VM with the same FreeBSD that the PFSense distro was based on to get that.   Someone might know a better way.

Seems to work great so far.   My poor phone was so bombarded with new accessories at first.  Be sure to create the ROOMs in your HomeKit before you add the bridge so you can assign each accessory to a room, it will add them them one by one.   I have over 80 devices in my little Vera2.     One other thing is that it will crash and not load if you have two scenes with the same name.   I never even knew I had two identical scenes until I saw a guid collision in the startup message.

Good stuff.   Thanks to those who provided these solutions.  I really didn't want to start over with another smarthome hub.   
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on December 24, 2016, 03:59:12 pm
So here's a simple question, and I fear I know the answer: do either of the Vera Homekit Bridge implementations discussed here actually push device status updates to HomeKit?  In other words, if I flip a switch (or use Vera to flip a switch), does the bridge notice quickly (when Vera notices) and forward that info to the HomeKit hub?  I am guessing "no" is the answer to one or both of those, but am asking for sanity's sake.

--Richard

The homekit app does indeed update quickly, the only issue I get is atet I get random notifications of doors being used from time to time, I'm assuming its' some kind of crash in the bridge which causes it to update again in the HomeKit app.  That part is a little annoying, the rest is great and works perfectly 99% of the time.

And you are using which instantiation?  I'm running the Hackworth version, and see no indication that it hears anything from Vera after startup.  If you're using the Damianx version, has he gotten dimmer support added yet?

--Richard
Sorry for the delayed reply, I've downloaded and installed the bw systems version, I've never used the hackworth one so I don't know if there's any difference.


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: djrobx on December 28, 2016, 01:03:24 am
Dimmer support does work in Damian's version.   Variable speed fan control is broken but I posted a patch for that (I just merged the working dimmer.js into the fan.js code and all is well).

It's super fast for me.   I was worried it might not be because i have such a large number of devices.   The only issue I have is that the door locks will sometimes post "unlocked" states and back to "locked" if LUUP resets.   This wouldn't be a big deal except by default iOS sends notifications to you about it.    I have pushover on Vera that sends me more detailed notifications, so I don't really need these, I just disabled them and I'm super happy with the setup. 

My favorite part is quick access to favorite controls on the iOS dock.   Or even opening the Home app, you don't have to wait for the app to synchronize and connect with MCV first.   I've been suffering with iVera for a long time and this is such a breath of fresh air.   Siri is just a bonus.   There's something epic about yelling "Hey siri, turn on the fireplace" and having it work.
Title: Re: News about HomeKit and Vera
Post by: vertig095 on December 28, 2016, 11:45:09 pm
@djrobx, thanks for the patch.  My fan is finally working as it should be.  I prefer more flexibility in setting the fan speed, so I tweaked fan.js to allow more than the default 25%, 50%, 100% values as currently set.    I really appreciate your efforts.
Title: Re: News about HomeKit and Vera
Post by: djrobx on December 29, 2016, 01:14:07 am
The homekit app does indeed update quickly, the only issue I get is atet I get random notifications of doors being used from time to time, I'm assuming its' some kind of crash in the bridge which causes it to update again in the HomeKit app.  That part is a little annoying, the rest is great and works perfectly 99% of the time.
I committed a fix for this and submitted a pull request to Damian.   It's a bug in the error handling, if LUUP resets, Vera doesn't respond to requests, and the door lock states default to "off" (unlocked).    Once Vera comes back, it can correctly read them, and they go back to locked.  The fix is to just return the current state if there's an error.   

As for updates, when watching the debug logs I noticed HomeKit only polls door locks.  Other things like lights will not change state unless the requesting app asks for a refresh.   El gato eve polls somewhat frequently, but the default iOS home app does not.

The IOS home app asks for status updates whenever you open it or change rooms, so if you pull up the page, the states should be correct at that moment.  It works pretty well in practice.


Title: Re: News about HomeKit and Vera
Post by: thebeaz2 on January 02, 2017, 06:03:44 pm
I've got @hackworth's VeraHomeKit running on a Raspberry Pi 3.  I can start the app.  It creates some accessories and then I can see it listening on a port.  When I open Eve though I do not see the HomeKit.  Can some one help?  Below is the output from starting the app in DEBUG.

Code: [Select]
pi@raspberrypi:~/VeraHomeKitBridge $ DEBUG=* node app.js
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Starting Vera HomeKit Bridge...
Create accessory: Front Door Lock
Create accessory: Garage Door
Create accessory: NooneHomeGeo
Create accessory: Porch Lights
Create accessory: SomeoneHomeGeo
Create accessory: Armed, Lock Doors Close Garage
Create accessory: XXX is Away
Create accessory: XXX is Home
Create accessory: Disarm when Door PIN entered
Create accessory: Front Porch Lights Off Sunrise
Create accessory: Front Porch Lights On at Sunset
Create accessory: Keep the Front Door Locked
Create accessory: No-one Home, Arm Away
Create accessory: Switch Present OFF
Create accessory: Switch Present ON
Create accessory: XXX is Away
Create accessory: XXX is Home
  EventedHTTPServer Server listening on port 51826 +0ms

EDIT: I used the version of the Homebridge Kit installed by these instructions and my problem is fixed.  http://forum.micasaverde.com/index.php/topic,31716.msg255988/topicseen.html#msg255988
Title: Re: News about HomeKit and Vera
Post by: bigeazy000 on January 04, 2017, 05:56:44 pm
Hello All,

      I'm trying to use the docker image that fastfreddi put together on my Synology system and I'm not able to see it with any HomeKit apps (I've tried Insteon+, Eve, and the native Home app). The Docker image fires up fine, and looking at the logs I see that it hits my Vera and adds all the devices. The logs look like they should, and everything appears normal.  I have also verified that port 51826 is open and running, as I can telnet to the port from other devices on the network.

     Like I said, I cant see it at all on my iphone or ipad, both running IOS 10. Ive tried deleting the persist folder and renaming the device in the config.json file with no success. Does anyone have any ideas on what else I could look at to figure out what's broken?
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on January 04, 2017, 06:10:45 pm
The homekit app does indeed update quickly, the only issue I get is atet I get random notifications of doors being used from time to time, I'm assuming its' some kind of crash in the bridge which causes it to update again in the HomeKit app.  That part is a little annoying, the rest is great and works perfectly 99% of the time.
I committed a fix for this and submitted a pull request to Damian.   It's a bug in the error handling, if LUUP resets, Vera doesn't respond to requests, and the door lock states default to "off" (unlocked).    Once Vera comes back, it can correctly read them, and they go back to locked.  The fix is to just return the current state if there's an error.   

As for updates, when watching the debug logs I noticed HomeKit only polls door locks.  Other things like lights will not change state unless the requesting app asks for a refresh.   El gato eve polls somewhat frequently, but the default iOS home app does not.

The IOS home app asks for status updates whenever you open it or change rooms, so if you pull up the page, the states should be correct at that moment.  It works pretty well in practice.

Thanks.  I only recently realised it was during Luup resets.  Do you know if this has been merged yet? I don't see it there


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: djrobx on January 04, 2017, 06:43:26 pm
Thanks.  I only recently realised it was during Luup resets.  Do you know if this has been merged yet? I don't see it there
Yes, my and a few other great changes from DrewCovi are committed to master.   Some people have had trouble updating with NPM, you might just download and update the *.js files manually.
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on January 04, 2017, 06:53:00 pm
Thanks.  I only recently realised it was during Luup resets.  Do you know if this has been merged yet? I don't see it there
Yes, my and a few other great changes from DrewCovi are committed to master.   Some people have had trouble updating with NPM, you might just download and update the *.js files manually.

Great thanks.

I need to do a full reset on mine anyway. 


Sent from my iPhone using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: CelticWebs on January 07, 2017, 10:54:35 am
Thanks.  I only recently realised it was during Luup resets.  Do you know if this has been merged yet? I don't see it there
Yes, my and a few other great changes from DrewCovi are committed to master.   Some people have had trouble updating with NPM, you might just download and update the *.js files manually.

My issue now is that I've done a full reset and wiped everything, reinstalled and added device back in to home app, the problem is that all devices now just sit saying updating...  Everything was completely reset and home app had everything wiped before starting again.

Ay suggestions as to why updates are not being received now?
Title: Re: News about HomeKit and Vera
Post by: dcaler on January 17, 2017, 03:40:32 pm
Is there an updated, and complete, set of installation instructions for the homekit/homebridge integration?
Title: Re: News about HomeKit and Vera
Post by: paulcusick3 on January 20, 2017, 02:11:26 pm
I am so close on OSx.  Like others, I am stuck with error on config.json file when I try and run homebridge from terminal.  I get this error:

Code: [Select]
Meghans-iMac:~ root# homebridge
[1/20/2017, 1:28:04 PM] Loaded plugin: homebridge-vera
VeraLink initializing
[1/20/2017, 1:28:04 PM] Registering platform 'homebridge-veralink.Vera'
[1/20/2017, 1:28:04 PM] ---
[1/20/2017, 1:28:04 PM] There was a problem reading your config.json file.
[1/20/2017, 1:28:04 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[1/20/2017, 1:28:04 PM]
/usr/local/lib/node_modules/homebridge/lib/server.js:197
    throw err;
    ^

SyntaxError: Unexpected token \
    at Object.parse (native)
    at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:191:19)
    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
    at node.js:972:3
Meghans-iMac:~ root#

Here is my config.json
Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "031-45-154",
"username": "CC:22:3D:E3:CE:30"
},
"platforms": [{
            "platform" : "Vera",
            "name" : "Vera",
            "veraIP" : "192.168.1.52",
            "includesensor" : false,
            "dimmertest" : false
        }]
}

My novice questions;
1. What is userid? MAC address? of what? vera? or homebridge?
2. What is the PIN? Where do you get?  When i first ran from terminal i took a screen shot (see attachment) that had pin of 031-45-154 and port 65210.
3. What can I try and do differently?

Thank you in advance.  Paul

**Edit  - I did use a text editor that was suggested;
**Edit2 - I may have found my mistake.  Not in home directory.  Will post here if I fixed
**Edit 3 - That was the issue.  For MAC users attempting this. 

I was trying to install @ root.  I went back to my general user account and ran terminal install.  Got error message that I did not have permissions to /usr/local/lib/node_modules (see last note about unhiding files, I think I did that here).  I then granted myself read/write permissions to that folder and re-ran install without error.

Note that when you run install from terminal it will install in two locations /usr/lib/homebridge AND in you home path which is Users/[your user name]/.homebridge.  Also this folder is hidden by default.  Google how to show hidden files MAC for instructions on how to unhide.

Also, while well noted, you should use the editor app ATOM to modify your config.json

A lot of trial and erorr learning.  I am smarter, and up and running.

Thanks to all.



Title: Re: News about HomeKit and Vera
Post by: jaha on January 25, 2017, 06:25:47 am
Hi

I followed spruts instructions and got it working, one issue do. When I say turn of lights in bedroom homebridge only turns of 3 of X lights. Tried to move one light to another room and then it works if its under 3 devices in that room. Is there any fix?
Title: Re: News about HomeKit and Vera
Post by: fernmac on January 25, 2017, 12:42:37 pm
Hi, i also have a iMac and after reading all 39 pages, i am still very confused on how to proceed. Would you be so kind as to point in the right direction, where to start, how did you do it?
Thanks a lot.


I am so close on OSx.  Like others, I am stuck with error on config.json file when I try and run homebridge from terminal.  I get this error:

Code: [Select]
Meghans-iMac:~ root# homebridge
[1/20/2017, 1:28:04 PM] Loaded plugin: homebridge-vera
VeraLink initializing
[1/20/2017, 1:28:04 PM] Registering platform 'homebridge-veralink.Vera'
[1/20/2017, 1:28:04 PM] ---
[1/20/2017, 1:28:04 PM] There was a problem reading your config.json file.
[1/20/2017, 1:28:04 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[1/20/2017, 1:28:04 PM]
/usr/local/lib/node_modules/homebridge/lib/server.js:197
    throw err;
    ^

SyntaxError: Unexpected token \
    at Object.parse (native)
    at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:191:19)
    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
    at node.js:972:3
Meghans-iMac:~ root#

Here is my config.json
Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "031-45-154",
"username": "CC:22:3D:E3:CE:30"
},
"platforms": [{
            "platform" : "Vera",
            "name" : "Vera",
            "veraIP" : "192.168.1.52",
            "includesensor" : false,
            "dimmertest" : false
        }]
}

My novice questions;
1. What is userid? MAC address? of what? vera? or homebridge?
2. What is the PIN? Where do you get?  When i first ran from terminal i took a screen shot (see attachment) that had pin of 031-45-154 and port 65210.
3. What can I try and do differently?

Thank you in advance.  Paul

**Edit  - I did use a text editor that was suggested;
**Edit2 - I may have found my mistake.  Not in home directory.  Will post here if I fixed
**Edit 3 - That was the issue.  For MAC users attempting this. 

I was trying to install @ root.  I went back to my general user account and ran terminal install.  Got error message that I did not have permissions to /usr/local/lib/node_modules (see last note about unhiding files, I think I did that here).  I then granted myself read/write permissions to that folder and re-ran install without error.

Note that when you run install from terminal it will install in two locations /usr/lib/homebridge AND in you home path which is Users/[your user name]/.homebridge.  Also this folder is hidden by default.  Google how to show hidden files MAC for instructions on how to unhide.

Also, while well noted, you should use the editor app ATOM to modify your config.json

A lot of trial and erorr learning.  I am smarter, and up and running.

Thanks to all.
Title: Re: News about HomeKit and Vera
Post by: paulcusick3 on January 26, 2017, 10:18:31 am
MAC OSX Homebridge Install

I basically followed these instructions. https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-OSX
I learned that there are some prerequisites that more advances users probably assume are already in place and known; With my novice skill level in using terminal and linux commands I struggled.  Here is my best memory recall; and reordered to how I would do it again on a fresh MAC

1.   Mac App Store Install Xcode
2.   Download and install Nodejs (in link above)
3.   Restart
4.   Enable root / system administrator account on MAC ? It is not enabled by default (search google for how)
5.   Un-Hide hidden files ? (search)
6.   Enable Hard Drive view in Finder (search)
7.   Log in as System Administrator
8.   Browse to folder /usr/local/node_modules and give your user account read/write access
9.   Log out Sys Amin and Log into your account
10.   Open Terminal
11.   Type "sudo npm -g install homebridge"
12.   Ensure no errors - If you get access error - google error.  There are other install commands you can try to get around error
13.   Type "sudo npm -g install homebridge-vera"
14.   Ensure no errors
15.   Browse to Users/[user name]/.homebridges
16.   Modify your config.json with your IP address with an approved text editor keeping json extension.  I used ATOM text editor
17.   Open Terminal
18.   Type "homebridge"
19.   Ensure PIN is same as in config.json ? if not change with text editor
20.   If any errors, google.
21.   If no errors, open Home on IOS and search.  Homebridge should show up and you can add accessories.
22.   You have to stay logged in and keep terminal running homebridge 24/7.  You can search how to autorun on restart.


Let me know how you make out.  I hope this works and is helpful, but I am a novice just trying to contribute.

Paul
Title: Re: News about HomeKit and Vera
Post by: Don Phillips on February 04, 2017, 07:49:19 pm
I was following these excellent instructions:
https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-Windows

and I am stuck on these 2 step:
6 - Console command: cd C:\Users\xxx\AppData\Roaming\npm\node_modules\homebridge\bin
7 - Console command: node homebridge

For step 6, I do not have that path, instead I have:
C:\Users\Don Phillips\AppData\Roaming\npm\node_modules\homebridge-http\node_modules\.bin


Ignoring that, I ran step 7 and received the error it cannot find homebridge, which is not in that folder either.

Finding the homebridge.cmd file in the \npm folder, I ran that and it errors also, but it seems to be something ion the confgi.json file.

Anyone know what I am overlooking? I am really lost.
Title: Re: News about HomeKit and Vera
Post by: bjestavs on February 08, 2017, 11:20:30 am
I have gotten this guide to work (https://docs.google.com/document/d/1X6zpaE-FTld09kEHmTlrX-4KTC71TbvtbIlYbrFysvc/edit (https://docs.google.com/document/d/1X6zpaE-FTld09kEHmTlrX-4KTC71TbvtbIlYbrFysvc/edit)) previoulsy, but when I tried to wipe my Rpi clean I can?t get it to work again. I have installed it multiple times with the same result. I have also tried with another command for installing node.

I get the message ""Plugin /usr/lib/nodejs does not have a package name that begins with 'homebridge-'."" when I start homebridge and can?t control my 433-plugs. Apart from that the scenes don?t work with siri.

Hope you can help
Thank you in advance
Title: Re: News about HomeKit and Vera
Post by: avale on March 16, 2017, 02:02:20 pm
I have the VeraHomeKitBridge on my Raspberry Pi Zero W and can start it successfully with
Quote
sudo npm run start
but it has the following errors if I just try
Quote
npm run start
errors:
Quote
Error: EACCES: permission denied, open 'persist/AccessoryInfo.CC223DE3CEF6.json'
    at Error (native)

npm ERR! Linux 4.4.50+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! VeraHomeKitBridge@1.0.1 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the VeraHomeKitBridge@1.0.1 start script 'node app.js'.
npm ERR! This is most likely a problem with the VeraHomeKitBridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls VeraHomeKitBridge
npm ERR! There is likely additional logging output above.
npm ERR! Linux 4.4.50+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! path npm-debug.log.4cfcadea8a165d46e56212caf1699f92
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.4cfcadea8a165d46e56212caf1699f92'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, open 'npm-debug.log.4cfcadea8a165d46e56212caf1699f92']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: 'npm-debug.log.4cfcadea8a165d46e56212caf1699f92' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /VeraHomeKitBridge/npm-debug.log

I have changed own using:
Quote
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
but this doesn't fix the issue.  Is it not an ownership thing and more of a permissions thing?  I would like to address this but honestly my final goal is to get this to automatically start upon startup/reboot.  Thanks for any guidance and for all the awesome work put into this!
Title: Re: News about HomeKit and Vera
Post by: Freddy99 on June 04, 2017, 12:42:18 pm
I have setup Homebridge using raspberry Pi 3. HomeKit recognises the Homebridge and imports the accessories, BUT they initially show as "Updating" and then show as "No Response".
However, If I use SIRI to turn switches On/Off, it works intermittently. Sometimes it says "I have not heard back from your devices".
Any Ideas ??
Title: Re: News about HomeKit and Vera
Post by: Tsviper on June 14, 2017, 01:12:37 pm
I have setup Homebridge using raspberry Pi 3. HomeKit recognises the Homebridge and imports the accessories, BUT they initially show as "Updating" and then show as "No Response".
However, If I use SIRI to turn switches On/Off, it works intermittently. Sometimes it says "I have not heard back from your devices".
Any Ideas ??

Freddy99,  did you solve this problem? I am having the same issue.

Edit:  Solved the issue.  Had to exclude some of the scenes and devices in the config.json file and now all is working great on my Raspberry Pi 3!  Thanks for all the hard work on this guys.
Title: Re: News about HomeKit and Vera
Post by: Freddy99 on June 16, 2017, 08:21:57 am
Thanks  bigeazy,
No luck here. I am using a config.json that I copied from GitHub and modified the IP address. Still getting Updating followed by No Response. I have spent days without success. Here is the file I am using. I am using Vera Plus with approx 25 mainly Fibaro relay switches. Any hints would be appreciated. Thank you.
{
    "bridge": {
        "name": "Homebridge",
        "pin": ?031-45-511?,
        "username": "CD:22:3D:E3:CE:51?
    },
    "platforms": [
        {
            "platform": "Vera",
            "name": "Vera",
            "veraIP": "192.168.1.150?,
            "includesensor": false,
            "ignorerooms": [20,21,22],
            "securitypoll": 2000,
            "includethermostat": false,
            "includeRGB": false,          
            "garageLocks": [23],
            "ignoredevices":[24,25],
            "ignorescenes":[26,27],
            "houseModes": false
        }
    ]
}
Title: Re: News about HomeKit and Vera
Post by: Tsviper on June 16, 2017, 10:56:05 am
Freddy99,

I had the same issue as you until I filled in the correct 'ignoredevices' and 'ignorescenes'  Here is my Config.json if it helps.

    "bridge": {
        "name": "Homebridge",
        "pin": "555-66-777",
        "username": "CC:89:3D:E7:CE:41"
    },
    "platforms": [
        {
            "platform": "Vera",
            "name": "Vera",
            "veraIP": "10.0.0.19",
            "includesensor": true,
            "ignorerooms": [],
            "securitypoll": 2000,
            "includethermostat": true,
            "includeRGB": false,
            "garageLocks": [],
            "ignoredevices":[52, 12, 4, 9, 15],
            "ignorescenes":[12, 11, 10, 17, 89, 90, 15, 80, 79, 101, 14, 67, 64, 70, 65, 99, 95, 96, 82, 100, 71, 16, 84, 75, 76, 61, 60,$
            "houseModes": true
        }
    ]
}

All of my switches, thermostats, motion, light, humidity and contact sensors work great.  Some of my switches were monoprice dual relays so I had to ignore the primary device for each (that may have been the issue).  I also ignored all of my scenes because I don't need them in homekit right now anyway.  After I did this everything worked perfectly.  I am really surprised how well everything works with Homekit.  They all behave like native homekit devices.
Title: Re: News about HomeKit and Vera
Post by: Freddy99 on June 16, 2017, 06:45:12 pm
Thank you. I will try that. Where can I find my Scene numbers for the ignore list ?
Title: Re: News about HomeKit and Vera
Post by: Tsviper on June 16, 2017, 07:07:00 pm
I found mine listed in AltUI under more->scenes section.  Not sure how to see them in UI7 though.  I just added a few scenes this morning and didn't put them in the ignore section of the Config.json and they showed up in Homekit just fine and are working.  So not sure what I excluded that made it work in the first place but it is working great still.  I am guessing my dual relay devices that was throwing it off.  Good luck!
Title: Re: News about HomeKit and Vera
Post by: Freddy99 on June 22, 2017, 07:30:57 am
Thank you Tsviper.
Problem was same as yours with extra Appliance Modules, Fixed now.

How did you get your Homebridge to run automatically on Raspberry Pi.
I can't seem to get it to start on boot up.
Title: Re: News about HomeKit and Vera
Post by: Tsviper on June 22, 2017, 07:18:39 pm
It was a few days ago but I believe I followed this guide: https://timleland.com/setup-homebridge-to-start-on-bootup/

Good luck!
Title: Re: News about HomeKit and Vera
Post by: JuniorJedi on July 15, 2017, 05:02:22 pm
I am having a problem with VeraHomeKitBridge. When I run npm run start everything seems to go through just fine and I see it create my accessories but it seems to stick at the last accessory. I never get the 'Listening" message.
I have a vague recollection that I had this problem months ago but cannot remember the cure.

Anyone got any idea?

Edit: nvm - it seems to have settled itself
Title: News about HomeKit and Vera
Post by: PrincessCleavage on July 28, 2017, 07:34:11 pm
Can any one point me to the noob step by step guide to get Siri intergrated with vera (windows 10 install guide)? (Seems to be a lot of assumptions made in some of these guides and the steps from the start of this thread don't seem to work)
Title: Re: News about HomeKit and Vera
Post by: PrincessCleavage on July 28, 2017, 11:31:34 pm
Got the server running on Windows 7. The only issue is if I restart the server on Windows  then the icons in MyTouchHome on IOS become grayed out. Have to redo them to get to work again. Any ideas of why this is happening? 

Update:
Updated my IOS to 10.x.x and all the problems went away. Also Apple has installed an app called "Home" with IOS 10. No need to download any other app now. MyTouchHome is also working.
Which guide did you use to install and configure on win 7?
Title: Re: News about HomeKit and Vera
Post by: markcm on November 20, 2017, 12:53:01 pm
Can any one point me to the noob step by step guide to get Siri intergrated with vera (windows 10 install guide)? (Seems to be a lot of assumptions made in some of these guides and the steps from the start of this thread don't seem to work)

x2

This looks like a great thread although at 40 pages of discussion I don't know where to start.

I'd be interested in using windows10 or raspberrypi to access my vera edge with homekit although I've never used a raspberrypi before so some indication if this path is noobie-friendly or not would be great. Or if anyone would be interested in maybe bundling a Rpi kit pre-loaded with the code and some instruction for customizing, some folks like myself may be interested in buying that.., just throwing out an idea :)

I'm not sure how to even ask this but... would anyone be willing to write a brief summary of the two approaches and possibly link to the most current or popular instructionals? This would be awesome to be included as an edit to the first post in this thread. Again, I appreciate everyone's contributions but 40 pages of discussion is overwhelming as an entry point. Thank you!
Title: Re: News about HomeKit and Vera
Post by: Tsviper on November 21, 2017, 11:20:51 am
It took me a lot of looking around and trying stuff so I decided when I had to redo my steps to write down each command/step as I did them so next time would be easier.  Here is what I used a few months back to get my raspberry pi home bridge setup and running.  Hope this helps (P.S. I also have a harmony hub so there is stuff in there for that too)

SSH into your RPi then:

Code: [Select]
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git make
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install libavahi-compat-libdnssd-dev
sudo su
npm install -g --unsafe-perm homebridge-vera
npm install -g --unsafe-perm homebridge-harmonyhub
exit
cd /etc/default
sudo nano homebridge
-------------Paste-----------------
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /home/pi


# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
----------------------------


cd /etc/systemd/system
sudo nano homebridge.service
---------------Paste---------------
[Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target

[Service]
Type=simple
User=pi
EnvironmentFile=/etc/default/homebridge
# Adapt this to your specific setup (could be /usr/bin/homebridge)
# See comments below for more information
ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS
Restart=on-failure
RestartSec=10
KillMode=process

[Install]
WantedBy=multi-user.target
------------------------------

sudo systemctl daemon-reload
sudo systemctl enable homebridge
sudo systemctl start homebridge
sudo systemctl status homebridge

sudo apt-get install netatalk

-------Install GUI (Optional)-------
sudo apt-get install raspberrypi-ui-mods
Title: Re: News about HomeKit and Vera
Post by: Don Phillips on November 21, 2017, 08:23:19 pm
+1 for the Pi instructions.  I was able to install it on my QNAP last year but with only 1GB of RAM, my NAS barely runs the VM to run HomeBridge so it is disabled.

Maybe this winter I'll get my Pi out of the garage and install this.  I packed it away 2 years ago - I hope I can remember where I put it.
Title: Re: News about HomeKit and Vera
Post by: Grubsy on November 24, 2017, 02:53:55 am
Just thought I would post what worked for me.

Installed Raspbian on my RPi 3
-Downloaded RASPBIAN STRETCH LITE from: https://www.raspberrypi.org/downloads/raspbian/
-Followed these instructions to install: https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi

Step 5 - Method 1 I changed:
docker-compose exec homebridge yarn add homebridge-platform-wemo
to
docker-compose exec homebridge yarn add homebridge-vera

Step 6 - Customising config.json I copied the platforms config from:
https://github.com/damianxd/homebridge-vera

Changed the VeraIP to my Vera's IP
    "platforms": [
        {
            "platform": "Vera",
            "name": "Vera",
            "veraIP": "10.0.1.5",
            "includesensor": false,
            "ignorerooms": [20,21,22],
            "securitypoll": 2000,
            "includethermostat": false,
            "includeRGB": false,         
            "garageLocks": [23],
            "ignoredevices":[24,25],
            "ignorescenes":[26,27],
            "houseModes": false
        }
    ]

Added the HomeBridge to my iPhone and all working great  :)
Title: Re: News about HomeKit and Vera
Post by: Peren on November 25, 2017, 04:51:42 am
Hi

tried this one...

I cloud in the step after installing home bridge cadd it in homekit..
Removed it from home kit and followed the rest of the guide.

Now when trying to add it to homekit nothing happens...

(really hop Vera adds the support for homekit and that some one until that happens has the time and energy to build a pi image with a stable homebridge.. tried so many time to get this working with out luck :'( ) 
Title: Re: News about HomeKit and Vera
Post by: Peren on November 25, 2017, 05:37:02 am
check the loggs could it be....


|     throw err;
homebridge_1  |     ^
homebridge_1  |
homebridge_1  | SyntaxError: Unexpected token , in JSON at position 684
homebridge_1  |     at JSON.parse (<anonymous>)
homebridge_1  |     at Server._loadConfig (/usr/local/share/.config/yarn/global/node_modules/homebridge/lib/server.js:201:19)
homebridge_1  |     at new Server (/usr/local/share/.config/yarn/global/node_modules/homebridge/lib/server.js:57:38)
homebridge_1  |     at module.exports (/usr/local/share/.config/yarn/global/node_modules/homebridge/lib/cli.js:26:16)
homebridge_1  |     at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/homebridge/bin/homebridge:17:22)
homebridge_1  |     at Module._compile (module.js:635:30)
homebridge_1  |     at Object.Module._extensions..js (module.js:646:10)
homebridge_1  |     at Module.load (module.js:554:32)
homebridge_1  |     at tryModuleLoad (module.js:497:12)
homebridge_1  |     at Function.Module._load (module.js:489:3)
homebridge_1  |     at Function.Module.runMain (module.js:676:10)
homebridge_1  |     at startup (bootstrap_node.js:187:16)
homebridge_1  |     at bootstrap_node.js:608:3
homebridge_1  | Got SIGTERM, quitting.


and

Unhandled rejection RequestError: Error: connect ECONNREFUSED 192.168.1.65:3480
homebridge_1  |     at new RequestError (/homebridge/node_modules/request-promise-core/lib/errors.js:14:15)
homebridge_1  |     at Request.plumbing.callback (/homebridge/node_modules/request-promise-core/lib/plumbing.js:87:29)
homebridge_1  |     at Request.RP$callback [as _callback] (/homebridge/node_modules/request-promise-core/lib/plumbing.js:46:31)
homebridge_1  |     at self.callback (/homebridge/node_modules/request/request.js:186:22)
homebridge_1  |     at emitOne (events.js:116:13)
homebridge_1  |     at Request.emit (events.js:211:7)
homebridge_1  |     at Request.onRequestError (/homebridge/node_modules/request/request.js:878:8)
homebridge_1  |     at emitOne (events.js:116:13)
homebridge_1  |     at ClientRequest.emit (events.js:211:7)
homebridge_1  |     at Socket.socketErrorListener (_http_client.js:387:9)
homebridge_1  |     at emitOne (events.js:116:13)
homebridge_1  |     at Socket.emit (events.js:211:7)
homebridge_1  |     at emitErrorNT (internal/streams/destroy.js:64:8)
homebridge_1  |     at _combinedTickCallback (internal/process/next_tick.js:138:11)
homebridge_1  |     at process._tickCallback (internal/process/next_tick.js:180:9)
Title: News about HomeKit and Vera
Post by: Falcogeorge on March 18, 2018, 01:13:53 am
Quote from: Grubsy
Just thought I would post what worked for me.

Added the HomeBridge to my iPhone and all working great  😊

Grubsy, you made my day!  I?d spent three days trying various ways of installing the Vera plugin. I couldn?t get it to install. Started from scratch countless times. While your method didn?t work 100% for me (I had to install docker a bit differently) it did finally get me up and running and what?s more it?s a far superior system having the web interface for the management.
Thanks!


Sent from my iPad using Tapatalk
Title: Re: News about HomeKit and Vera
Post by: garycooper on March 23, 2018, 03:34:18 am
Can someone point me in the right direction to get homekit to see the scenes in the Vera?  I have the homebridge installed and talking to a couple of devices, but i cannot figure a way for it to recognize the scenes in vera.  i tried modifying the config.json with a scenes section:

Code: [Select]
{
"bridge": {
"name": "Homebridge",
"pin": "987-65-432",
"username": "CC:22:3D:E3:CE:30"
},
"scenes": [{
"active": 0,
"name": "Welcome Home Ida",
"id": 9,
"room": 3
}, {
"active": 0,
"name": "Welcome Home Sebastian",
"id": 8,
"room": 3
}],
"platforms": [{
"platform": "Vera",
"name": "Vera",
"veraIP": "10.10.10.15",
"includesensor": false,
"securitypoll": 2000,
"dimmertest": false
}]
}

i've also tried adding a "loadscenes" variable i found in a forum elsewhere to include scenes:

Code: [Select]
"platforms": [{
"platform": "Vera",
"name": "Vera",
"veraIP": "10.10.10.15",
"includesensor": false,
"securitypoll": 2000,
"dimmertest": false,
"loadscenes": 1,
}]

none of these have worked.

Seby

I got the exact problem, i could see devices but can't see any scenes.

did u finally found how to fix it ?

thanks