News about HomeKit and Vera

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.

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.

@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.

Got a reply from @KhaosT on his github page.

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.

@ 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 HomeKit hubs: Everything you need to know | iMore

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.

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

@JuniorJedi turning off UPNP on the router didn’t help, still no access over cellular.

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. (/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?

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 :smiley: :smiley:

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…

@jasonkhonlaw - Yes, of course. GitHub - hackworth/VeraHomeKitBridge

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)

I guess I can try updating the code, mine is from a couple of months back…

Updating fixed it, awesome!! My garage doors work now too (they didn’t before)

[quote=“aechelon, post:70, topic:186853”]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 as part of this SourceForge project.
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 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.
  3. Download and extract file homebridge-vera-win32.zip from SourceForge
  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.[/quote]

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. (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. (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)

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. (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. (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)[/quote]

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. (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. (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

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.

[quote=“airigami, post:398, topic:186853”]…Then suddenly, it just stopped working.

…Can anyone tell me what I’m missing? Other things to try?

Thanks.[/quote]
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.

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?