@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, 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:
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?