We have moved at community.getvera.com

Author Topic: News about HomeKit and Vera  (Read 307685 times)

Offline nallan

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #240 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?
 

Offline markwestcott

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #241 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?

Offline fiveredcars

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #242 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

Offline nallan

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #243 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.

Offline ctguess

  • Full Member
  • ***
  • Posts: 145
  • Karma: +4/-2
Re: News about HomeKit and Vera
« Reply #244 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. 

Offline goldriver

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #245 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
« Last Edit: September 27, 2015, 08:15:29 am by goldriver »

Offline damianxd

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +3/-1
Re: News about HomeKit and Vera
« Reply #246 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

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
- 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
** 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.
« Last Edit: October 18, 2015, 09:59:05 pm by damianxd »

Offline jasonkhonlaw

  • Sr. Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #247 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

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
** 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!

Offline damianxd

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +3/-1
Re: News about HomeKit and Vera
« Reply #248 on: October 18, 2015, 09:52:40 pm »
The password is 03145154, it's the same for any device

Offline jasonkhonlaw

  • Sr. Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #249 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...

Offline gregorito

  • Newbie
  • *
  • Posts: 16
  • Karma: +2/-0
Re: News about HomeKit and Vera
« Reply #250 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?

Offline jasonkhonlaw

  • Sr. Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #251 on: October 21, 2015, 02:51:52 pm »
Nope, it's still broken for me....

Offline damianxd

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +3/-1
Re: News about HomeKit and Vera
« Reply #252 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.

Offline jasonkhonlaw

  • Sr. Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
Re: News about HomeKit and Vera
« Reply #253 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...

Offline damianxd

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +3/-1
Re: News about HomeKit and Vera
« Reply #254 on: October 21, 2015, 04:02:46 pm »
Can you send me your version with all the node files included?