looks like its working i see in the log that it added device’s but i think i need to open a port or something like that because the app wont find a homekit device.
Sorry its working you need some patience.
Thank you very nice plugin.
Howto: Switch your devices with Siri via Apple HomeKit
looks like its working i see in the log that it added device’s but i think i need to open a port or something like that because the app wont find a homekit device.
Sorry its working you need some patience.
Thank you very nice plugin.
@gekkonl said:
looks like its working i see in the log that it added device’s but i think i need to open a port or something like that because the app wont find a homekit device.
I’m also seeing these issues on my raspberry currently, too. I’m on it
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten
i use node 0.10.24 and addet the hap to my config in pimatic, after restart, i get this error:
17:07:41.861 [pimatic] info: Installing: "pimatic-hap" from npm-registry.
17:07:46.217 [pimatic, npm] info: http GET https://registry.npmjs.org/pimatic-hap
17:07:47.228 [pimatic, npm] info: http GET https://registry.npmjs.org/hap-nodejs/0.0.3
17:07:49.337 [pimatic, npm] info: http GET https://registry.npmjs.org/debug
17:07:49.419 [pimatic, npm] info: http GET https://registry.npmjs.org/node-persist/0.0.3
17:07:49.484 [pimatic, npm] info: http GET https://registry.npmjs.org/mdns
17:07:56.602 [pimatic, npm] info: http GET https://registry.npmjs.org/nan
17:07:56.643 [pimatic, npm] info: http GET https://registry.npmjs.org/bindings
17:07:57.066 [pimatic, npm] info: http GET https://registry.npmjs.org/ms/0.7.1
17:07:57.096 [pimatic, npm] info: http GET https://registry.npmjs.org/mkdirp
17:07:57.159 [pimatic, npm] info: http GET https://registry.npmjs.org/q
17:07:58.162 [pimatic, npm] info: http GET https://registry.npmjs.org/bignum/0.11.0
17:08:02.026 [pimatic, npm] info: > curve25519@1.1.0 install /root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/curve25519
17:08:02.031 [pimatic, npm] info: > node-gyp rebuild
17:08:07.033 [pimatic, npm] info: make: Entering directory '/root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/curve25519/build'
17:08:07.048 [pimatic, npm] info: CXX(target) Release/obj.target/curve/node_curve.o
17:08:22.095 [pimatic, npm] info: SOLINK_MODULE(target) Release/obj.target/curve.node
17:08:22.565 [pimatic, npm] info: SOLINK_MODULE(target) Release/obj.target/curve.node: Finished
17:08:22.586 [pimatic, npm] info: COPY Release/curve.node
17:08:22.636 [pimatic, npm] info: make: Leaving directory '/root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/curve25519/build'
17:08:22.658 [pimatic, npm] info: > mdns@2.2.10 install /root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns
17:08:22.663 [pimatic, npm] info: > node-gyp rebuild
17:08:27.394 [pimatic, npm] info: make: Entering directory '/root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns/build'
17:08:27.408 [pimatic, npm] info: CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
17:08:27.934 [pimatic, npm] info: In file included from ../src/dns_sd.cpp:1:0:
17:08:27.950 [pimatic, npm] info: ../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
17:08:27.955 [pimatic, npm] info: compilation terminated.
17:08:29.790 [pimatic, npm] info: dns_sd_bindings.target.mk:131: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed
17:08:29.799 [pimatic, npm] info: make: Leaving directory '/root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns/build'
17:08:29.810 [pimatic, npm] info: make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
17:08:29.821 [pimatic, npm] info: gyp ERR! build error
17:08:29.837 [pimatic, npm] info: gyp ERR! stack Error: `make` failed with exit code: 2
17:08:29.846 [pimatic, npm] info: gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
17:08:29.850 [pimatic, npm] info: gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
17:08:29.853 [pimatic, npm] info: gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
17:08:29.866 [pimatic, npm] info: gyp ERR! System Linux 3.18.11-v7+
17:08:29.885 [pimatic, npm] info: gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
17:08:29.890 [pimatic, npm] info: gyp ERR! cwd /root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns
17:08:29.893 [pimatic, npm] info: gyp ERR! node -v v0.10.24
17:08:29.897 [pimatic, npm] info: gyp ERR! node-gyp -v v0.12.1
17:08:29.937 [pimatic, npm] info: gyp ERR! not ok
17:08:30.019 [pimatic, npm] info: > ed25519@0.0.3 install /root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/ed25519
17:08:30.025 [pimatic, npm] info: > node-gyp rebuild
17:08:30.310 [pimatic, npm] info: node.js:811
17:08:30.320 [pimatic, npm] info: var cwd = process.cwd();
17:08:30.324 [pimatic, npm] info: ^
17:08:30.352 [pimatic, npm] info: Error: ENOENT, no such file or directory
17:08:30.357 [pimatic, npm] info: at Function.startup.resolveArgv0 (node.js:811:23)
17:08:30.362 [pimatic, npm] info: at startup (node.js:58:13)
17:08:30.366 [pimatic, npm] info: at node.js:902:3
17:08:30.521 [pimatic, npm] info: ERR! mdns@2.2.10 install: `node-gyp rebuild`
17:08:30.529 [pimatic, npm] info: ERR! Exit status 1
17:08:30.534 [pimatic, npm] info: ERR!
17:08:30.540 [pimatic, npm] info: ERR! Failed at the mdns@2.2.10 install script.
17:08:30.544 [pimatic, npm] info: ERR! This is most likely a problem with the mdns package,
17:08:30.562 [pimatic, npm] info: ERR! not with npm itself.
17:08:30.569 [pimatic, npm] info: ERR! Tell the author that this fails on your system:
17:08:30.573 [pimatic, npm] info: ERR! node-gyp rebuild
17:08:30.577 [pimatic, npm] info: ERR! You can get their info via:
17:08:30.586 [pimatic, npm] info: ERR! npm owner ls mdns
17:08:30.593 [pimatic, npm] info: ERR! There is likely additional logging output above.
17:08:30.597 [pimatic, npm] info: ERR! System Linux 3.18.11-v7+
17:08:30.608 [pimatic, npm] info: ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pimatic-hap"
17:08:30.612 [pimatic, npm] info: ERR! cwd /root/pimatic-app
17:08:30.618 [pimatic, npm] info: ERR! node -v v0.10.24
17:08:30.622 [pimatic, npm] info: ERR! npm -v 1.3.21
17:08:30.630 [pimatic, npm] info: ERR! code ELIFECYCLE
17:08:30.645 [pimatic, npm] info: chdir(): No such file or directory
17:08:30.702 [pimatic, npm] info: > bignum@0.11.0 install /root/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum
17:08:30.705 [pimatic, npm] info: > node-gyp configure build
17:08:30.772 [pimatic] error: Error running "npm install pimatic-hap"
@p4co86 it says
…/src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
This sounds like you’re missing some dependencies as described in https://github.com/michbeck100/pimatic-hap/blob/master/README.md
try to install it with
sudo apt-get install libnss-mdns libavahi-compat-libdnssd-dev
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten
ok this works for me, thanks.
NICE! Siri turn on the lamp. and it works. Last week I did a bit of strugling to get the system running on my NAS. But this plugin makes it more easy and realiable. After installing the right dependencies it worked out of the box. Now next thing: Siri, bring me a beer…? When will that work?
@dynamite Woooow!!! I installed this plugin based on pimatic 0.8.69 also with node 0.10.24. It works (tried it with Eve). Nevertheless: when Eve is started I get some serious errors in the pimatic log like theese (this error block repeats several times; also sporadic when i trigger actions etc. from Siri:
18:22:41.551 [pimatic] error: A uncaught exception occured: Error: Can’t set headers after they are sent.
18:22:41.551 [pimatic] error:> at ServerResponse.OutgoingMessage.setHeader (http.js:691:11)
18:22:41.551 [pimatic] error:> at ServerResponse.res.setHeader (/usr/local/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/patch.js:63:22)
18:22:41.551 [pimatic] error:> at ServerResponse.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/patch.js:80:14)
18:22:41.551 [pimatic] error:> at Array.forEach (native)
18:22:41.551 [pimatic] error:> at ServerResponse.res.writeHead (/usr/local/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/patch.js:79:28)
18:22:41.551 [pimatic] error:> at HAPServer.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:672:16)
18:22:41.551 [pimatic] error:> at Bridge.Accessory._handleGetCharacteristics (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:471:5)
18:22:41.551 [pimatic] error:> at HAPServer.EventEmitter.emit (events.js:106:17)
18:22:41.551 [pimatic] error:> at HAPServer._handleCharacteristics (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:659:10)
18:22:41.551 [pimatic] error:> at HAPServer.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:172:39)
18:22:41.551 [pimatic] error:> at IncomingMessage.EventEmitter.emit (events.js:92:17)
18:22:41.551 [pimatic] error:> at _stream_readable.js:920:16
18:22:41.551 [pimatic] error:> at process._tickCallback (node.js:415:13)
18:22:41.551 [pimatic] error:> This is most probably a bug in pimatic or in a module, please report it!
18:22:41.565 [pimatic] warn: Keeping pimatic alive, but could be in an undefined state, please restart pimatic so soon as possible!
Any clews? Do I need an update of pimatic or other plugins?
Axel
@fennsen You need pimatic >= 0.8.92
Be sure that express is installed in the latest version. It seems that this isn’t working always.
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten
@michbeck100 ok. will try the pimatic Version.
What is Express?
@fennsen some dependency that has to be updated in order to get rid of this error
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten