We have moved at community.getvera.com

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

Offline s4nup

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

Offline Ramias

  • Sr. Member
  • ****
  • Posts: 275
  • Karma: +7/-5
Re: News about HomeKit and Vera
« Reply #46 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

Offline C7Z51

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

Offline Jacesparks

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

Offline C7Z51

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +2/-2
Re: News about HomeKit and Vera
« Reply #49 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.
« Last Edit: June 05, 2015, 03:41:17 pm by C7Z51 »

Offline iamfd

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

Offline Jacesparks

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

Online Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: News about HomeKit and Vera
« Reply #52 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?


Offline dlca1

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






« Last Edit: June 05, 2015, 10:30:14 am by dlca1 »

Offline Jacesparks

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

Online Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
News about HomeKit and Vera
« Reply #55 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.
« Last Edit: June 05, 2015, 03:22:17 pm by Brientim »

Offline iamfd

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

Offline C7Z51

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +2/-2
Re: News about HomeKit and Vera
« Reply #57 on: June 05, 2015, 03:41:45 pm »
That was a mistake in my post, I edited it.

Online Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: News about HomeKit and Vera
« Reply #58 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


Offline Ramias

  • Sr. Member
  • ****
  • Posts: 275
  • Karma: +7/-5
Re: News about HomeKit and Vera
« Reply #59 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