Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Yet another HomeKit adapter

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Yet another HomeKit adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      worfinator last edited by

      > Wichtig vor der Installation müssen einige Pakete installiert werden: sudo apt-get install libavahi-compat-libdnssd-dev

      Hast du das vorab gemacht?

      1 Reply Last reply Reply Quote 0
      • R
        rh1212 last edited by

        @worfinator:

        > Wichtig vor der Installation müssen einige Pakete installiert werden: sudo apt-get install libavahi-compat-libdnssd-dev

        Hast du das vorab gemacht? `

        Ja, ich habe der Adapter auch vorher benutzt, gelöscht und nun wollte ich das nochmal installieren

        1 Reply Last reply Reply Quote 0
        • eumats
          eumats last edited by

          Versuch mal in der Konsole:

          ! ````
          cd /opt/iobroker
          sudo npm cache clean
          sudo iobroker stop
          sudo npm install iobroker.yahka
          sudo iobroker add yahka
          sudo iobroker start

          1 Reply Last reply Reply Quote 0
          • R
            roqstailor last edited by

            hallo klasse forum

            habe folgendes problem,

            host.raspberrypi	2018-03-15 20:30:21.781	info	Restart adapter system.adapter.yahka.1 because enabled
            host.raspberrypi	2018-03-15 20:30:21.781	error	instance system.adapter.yahka.1 terminated with code 1 ()
            host.raspberrypi	2018-03-15 20:30:21.781	error	Caught by controller[0]: at Function.Module._load (module.js:445:3)
            host.raspberrypi	2018-03-15 20:30:21.781	error	Caught by controller[0]: at tryModuleLoad (module.js:453:12)
            host.raspberrypi	2018-03-15 20:30:21.780	error	Caught by controller[0]: at Module.load (module.js:494:32)
            host.raspberrypi	2018-03-15 20:30:21.780	error	Caught by controller[0]: at Object.Module._extensions..js (module.js:586:10)
            host.raspberrypi	2018-03-15 20:30:21.780	error	Caught by controller[0]: at Module._compile (module.js:577:32)
            host.raspberrypi	2018-03-15 20:30:21.779	error	Caught by controller[0]: at Object. (/opt/iobroker/node_modules/mdns/lib/dns_sd.js:32:22)
            host.raspberrypi	2018-03-15 20:30:21.779	error	Caught by controller[0]: at require (internal/module.js:20:19)
            host.raspberrypi	2018-03-15 20:30:21.778	error	Caught by controller[0]: at Module.require (module.js:504:17)
            host.raspberrypi	2018-03-15 20:30:21.778	error	Caught by controller[0]: at Function.Module._load (module.js:424:25)
            host.raspberrypi	2018-03-15 20:30:21.778	error	Caught by controller[0]: at Function.Module._resolveFilename (module.js:476:15)
            host.raspberrypi	2018-03-15 20:30:21.778	error	Caught by controller[0]: Error: Cannot find module '../build/Release/dns_sd_bindings'
            host.raspberrypi	2018-03-15 20:30:21.777	error	Caught by controller[0]: ^
            host.raspberrypi	2018-03-15 20:30:21.777	error	Caught by controller[0]: throw err;
            host.raspberrypi	2018-03-15 20:30:21.775	error	Caught by controller[0]: module.js:478
            

            installation ging ohne probleme nur will der einfach nicht starten und ich verstehe nicht wieso

            1 Reply Last reply Reply Quote 0
            • R
              rh1212 last edited by

              @eumats:

              Versuch mal in der Konsole:

              ! cd /opt/iobroker sudo npm cache clean sudo iobroker stop sudo npm install iobroker.yahka sudo iobroker add yahka sudo iobroker start `

              Danke für die Antwort eumats,

              leider hat das auch nicht funktioniert.

              ! ````
              root@raspberrypi:/opt/iobroker# sudo npm install iobroker.yahka
              ! > mdns@2.3.4 install /opt/iobroker/node_modules/mdns
              node-gyp rebuild
              ! make: Entering directory '/opt/iobroker/node_modules/mdns/build'
              CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
              In file included from ../src/dns_sd.cpp:1:0:
              ../src/mdns.hpp:32:20: fatal error: dns_sd.h: No such file or directory
              #include <dns_sd.h>^
              compilation terminated.
              dns_sd_bindings.target.mk:149: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed
              make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
              make: Leaving directory '/opt/iobroker/node_modules/mdns/build'
              gyp ERR! build error
              gyp ERR! stack Error: make failed with exit code: 2
              gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
              gyp ERR! stack at emitTwo (events.js:106:13)
              gyp ERR! stack at ChildProcess.emit (events.js:191:7)
              gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
              gyp ERR! System Linux 4.9.59-v7+
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/mdns
              gyp ERR! node -v v6.13.0
              gyp ERR! node-gyp -v v3.4.0
              gyp ERR! not ok
              iobroker.inst@1.0.8 /opt/iobroker
              └── (empty)
              ! npm ERR! Linux 4.9.59-v7+
              npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka"
              npm ERR! node v6.13.0
              npm ERR! npm v3.10.10
              npm ERR! code ELIFECYCLE
              ! npm ERR! mdns@2.3.4 install: node-gyp rebuild
              npm ERR! Exit status 1
              npm ERR!
              npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
              npm ERR! Make sure you have the latest version of node.js and npm installed.
              npm ERR! If you do, this is most likely a problem with the mdns package,
              npm ERR! not with npm itself.
              npm ERR! Tell the author that this fails on your system:
              npm ERR! node-gyp rebuild
              npm ERR! You can get information on how to open an issue for this project with:
              npm ERR! npm bugs mdns
              npm ERR! Or if that isn't available, you can get their info via:
              npm ERR! npm owner ls mdns
              npm ERR! There is likely additional logging output above.
              ! npm ERR! Please include the following file with any support request:
              npm ERR! /opt/iobroker/npm-debug.log
              npm ERR! code 1</dns_sd.h>

              1 Reply Last reply Reply Quote 0
              • eumats
                eumats last edited by

                @roqstailor:

                hallo klasse forum

                habe folgendes problem,

                installation ging ohne probleme nur will der einfach nicht starten und ich verstehe nicht wieso `

                Hast du gemacht was hier steht: https://github.com/jensweigele/ioBroker … leshooting

                1 Reply Last reply Reply Quote 0
                • R
                  rh1212 last edited by

                  Ah Problem gelöst mit apt-get update, keine Ahnung was da los war. Also ich habe das jetzt installiert, danke für Eure Hilfe!

                  1 Reply Last reply Reply Quote 0
                  • R
                    roqstailor last edited by

                    @eumats:

                    @roqstailor:

                    hallo klasse forum

                    habe folgendes problem,

                    installation ging ohne probleme nur will der einfach nicht starten und ich verstehe nicht wieso `

                    Hast du gemacht was hier steht: https://github.com/jensweigele/ioBroker … leshooting `

                    ja das habe ich alles schon gemacht

                    1 Reply Last reply Reply Quote 0
                    • W
                      worfinator last edited by

                      Hm ja, mit diesem mdns hatte ich früher auch schon öfters Probleme. Aber einen konkreten Einfall hab ich jetzt auch nicht.

                      1 Reply Last reply Reply Quote 0
                      • eumats
                        eumats last edited by

                        @roqstailor:

                        ja das habe ich alles schon gemacht `

                        Hmm. Andere Adapter lassen sich installieren?

                        Vielleicht hilft ja wie bei rh1212 ein:

                        sudo apt-get update && sudo apt-get upgrade
                        
                        1 Reply Last reply Reply Quote 0
                        • R
                          roqstailor last edited by

                          alsoooo habe es zum laufen bekommen 😄 😄

                          bin wie folgt vorgegangen

                          cd /opt/iobroker

                          npm cache clean

                          sudo npm install –unsafe-perm mdns

                          und dann

                          reboot

                          und fertig 😄

                          1 Reply Last reply Reply Quote 0
                          • N
                            nico_93 last edited by

                            Hi Leute,

                            ich wollte iobroker mit yahka mal ausprobieren und habe iobroker auf meinem Debian-Server installiert. Scheinbar läuft auch alles ohne Probleme, aber die Bridge wird nicht mit dem iPhone gefunden.

                            Hatte das schon mal jemand? Die dependencies habe ich alle installiert… Gibt es vielleicht ein ausführlicheres log? Das dort unten hilt ja nicht wirklich.

                            ! yahka.0 2018-03-17 08:59:11.980 info adding Rollladen with UUID: 35cd37a2-987f-4686-bd8e-fd210422bd68
                            ! yahka.0 2018-03-17 08:59:11.972 info adapter ready, checking config
                            ! yahka.0 2018-03-17 08:59:11.956 info starting. Version 0.7.1 in /opt/app/iobroker/node_modules/iobroker.yahka, node: v6.13.1

                            1 Reply Last reply Reply Quote 0
                            • eumats
                              eumats last edited by

                              Bitte mal yahka unter Instanzen auf Debug stellen und Log hier posten (bitte Spoiler und Code-Atha nutzen)…

                              1 Reply Last reply Reply Quote 0
                              • A
                                algermi last edited by

                                Servus zusammen,

                                ja es von Euch jemand erfolgreich hinbekommen die MiLight LED Lichtleisten vollständig zu steuern.

                                Also auch die RBG Farm Steuerung, Sättigung usw.

                                Ich kann meine über HomeKit nur ein/ausschalten und Dimmern.

                                Danke für's Feedback.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rom.wagner80 last edited by

                                  @algermi:

                                  Servus zusammen,

                                  ja es von Euch jemand erfolgreich hinbekommen die MiLight LED Lichtleisten vollständig zu steuern.

                                  Also auch die RBG Farm Steuerung, Sättigung usw.

                                  Ich kann meine über HomeKit nur ein/ausschalten und Dimmern.

                                  Danke für's Feedback. `

                                  Das würde mich auch mal interessieren. Die Mi-Lights benötigen einen Farbcode im Format #FFFFFF und der YAHKA gibt bei der Einstellung hue Werte bis 65535 raus. wie kann ich beides auf einen Nenner bringen ?

                                  1 Reply Last reply Reply Quote 0
                                  • V
                                    Vossi80 last edited by

                                    @eumats:

                                    @algermi:

                                    @eumats

                                    was hast Du für einen neigungssensor verbaut und würdest Du mir Dein Script zukommen lassen? `

                                    Ich mache die Lösung mal allen zugänglich…

                                    Beschreibung der korrekten Steuerung und Anzeige eines Garagentors per yahka in Homekit in folgender Konfiguration:

                                    • Schaltung des Garagenmotors durch einen "Tast-Aktor" (Fibaro 212, potentialfreie Ausgänge) der einen kurzen Impuls (1sec) zum Starten des Motors gibt. Die Richtung kann ich dabei nicht beeinflussen. D.b. z.B. Tor offen, Tast-Aktor ansteuern -> Tor geht zu, Tast-Aktor erneut an steuern -> Tor stoppt, Tast-Aktor erneut an steuern -> Tor fährt wieder zu, ….

                                    • Das Tor kann zzgl. per Funk und per Taster (beide gehen direkt an den Garagenmotor und sind nicht mit dem Tast-Aktor verbunden)

                                    • Nutzung eines Neigungssensor zum Abfragen der Anfangs- und Endlage

                                    Garagensensor:

                                    • true = Tor offen

                                    • false = Tor geschlossen

                                    Skript zum Setzen von offen und geschlossen in Homekit, falls das Tor per Taster oder Fernbedienung (und nicht aus Homekit) geöffnet oder geschlossen wurde.

                                    "javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK" und "javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK" sind manuell angelegte Datenpunkte die später auch in yahka eingetragen werden.

                                    ! var timeout; ! on({id: 'zwave.0.NODE2.SENSOR_BINARY.Sensor_1', change: "ne"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; timeout = setTimeout(function () { if (getState("zwave.0.NODE2.SENSOR_BINARY.Sensor_1").val == false) { // Definiere Tor für HK als geschlossen setState("javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK"/*LageGaragentor_HK*/, 1, true); setState("javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK"/*schalteGaragentor_HK*/, 1, true); } else { // Definiere Tor für HK als offen setState("javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK"/*LageGaragentor_HK*/, 0, true); setState("javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK"/*schalteGaragentor_HK*/, 0, true); } }, 1000); }); !

                                    Skript zum Konvertieren des Schaltwertes aus Homekit (yahka: TargetState) um umgekehrt.

                                    ! on({id: 'zwave.0.NODE4.SWITCH_BINARY.Switch_1', change: "ne"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if (getState("javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK").val == 1) { // Tor geschlossen if (getState("zwave.0.NODE4.SWITCH_BINARY.Switch_1").val == true) { // Öffne das Tor setState("javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK"/*schalteGaragentor_HK*/, 0, true); } } else if (getState("javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK").val == 0) { // Tor offen if (getState("zwave.0.NODE4.SWITCH_BINARY.Switch_1").val == true) { // Schließe das Tor setState("javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK"/*schalteGaragentor_HK*/, 1, true); // Tor wird geschlossen } } }); on({id: 'javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK', change: "ne"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if (getState("javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK").val == 1) { // Tor geschlossen if (getState("javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK").val == 0) { // Öffne das Tor setState("zwave.0.NODE4.SWITCH_BINARY.Switch_1"/*Switch*/, true); } } else if (getState("javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK").val == 0) { // Tor offen if (getState("javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK").val == 1) { // Schließe das Tor setState("zwave.0.NODE4.SWITCH_BINARY.Switch_1"/*Switch*/, true); } } }); !

                                    In yahka ein device mit "Garage door opener" mit gleichanmigem Service definieren und folgendes eintragen:

                                    CurrentDoorState: ioBroker.State javascript.0.scriptEnabled.common.LageGaragentor_HK.LageGaragentor_HK

                                    TargetDoorState: ioBroker.State. javascript.0.scriptEnabled.common.schalteGaragentor_HK.schalteGaragentor_HK `

                                    Hallo, versuche grade auch mein Garagentor einzubinden doch leider komme ich nicht weiter. Habe mich versucht an die Anleitung zu halten aber ich glaube beim Script mache ich ein Fehler. Ich löse den Torantrieb über ein Homematic Batterie Schaltaktor aus der den kurzen Impuls gibt. Als Überwachung ob Tor auf oder zu benutze ich ein optischen Homematic Tür/Fensterkontakt. Habe mir dann die 2 Javascripte erstellt und das passende Gerät mit den Einstellungen wie beschrieben eingestellt. Jetzt muss ich ja sicher in den Skripten meine Geräte ID's einfügen aber irgendwie klappt das nicht. Kann mir da mal einer helfen?

                                    Wandtaster Homematic zum auslösen des Aktors: hm-rpc.0.LTK0044294.1.PRESS_SHORT

                                    Optischer Kontakt: hm-rpc.0.NEQ0067397.1.STATE

                                    Wäre nett wenn mir da einer auf die Sprünge helfen könnte

                                    Lg

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      nico_93 last edited by

                                      @eumats:

                                      Bitte mal yahka unter Instanzen auf Debug stellen und Log hier posten (bitte Spoiler und Code-Atha nutzen)… `

                                      Hab es hinbekommen. Die Homebridge Erkennung funktioniert über multicast. Das muss man natürlich im Netzwerk erlauben :lol:

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        Hohenbostler last edited by

                                        Hallo zusmmen,

                                        ich bekomme den Adapter leider nicht installiert.

                                        kann mir jemand genau sagen wo das Problem ist ?

                                        $ ./iobroker add yahka
                                        NPM version: 3.10.10
                                        npm install iobroker.yahka --production --save --prefix "/opt/iobroker" (System call)
                                        In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
                                         #include <dns_sd.h>^
                                        
                                        compilation terminated.
                                        make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                        gyp
                                         ERR! build error 
                                        gyp
                                         ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
                                        gyp ERR! stack     at emitTwo (events.js:106:13)
                                        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                                        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                                        
                                        gyp ERR! System Linux 4.9.59-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                        gyp ERR! cwd /opt/iobroker/node_modules/mdns
                                        gyp ERR! node -v v6.13.0
                                        
                                        gyp ERR! node-gyp -v v3.4.0gyp ERR! not ok 
                                        
                                        npm
                                         WARN
                                         optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
                                        npm 
                                        WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):
                                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                        
                                        npm 
                                        ERR! Linux 4.9.59-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka" "--production" "--save" "--prefix" "/opt/iobroker"
                                        npm ERR! node v6.13.0
                                        npm ERR! npm  v3.10.10
                                        npm ERR! code ELIFECYCLE
                                        
                                        npm ERR! mdns@2.3.4 install: `node-gyp rebuild`
                                        npm ERR! Exit status 1
                                        
                                        npm ERR! npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                        npm ERR! Make sure you have the latest version of node.js and npm installed.
                                        npm ERR! If you do, this is most likely a problem with the mdns package,
                                        npm ERR! not with npm itself.
                                        npm ERR! Tell the author that this fails on your system:
                                        npm ERR!     node-gyp rebuild
                                        
                                        npm ERR!
                                         You can get information on how to open an issue for this project with:npm ERR!     npm bugs mdns
                                        npm ERR! Or if that isn't available, you can get their info via:
                                        npm ERR!     npm owner ls mdns
                                        npm ERR! There is likely additional logging output above.
                                        
                                        npm ERR! Please include the following file with any support request:npm ERR!
                                             /npm-debug.lognpm ERR! code 1
                                        
                                        host.raspberrypi install adapter yahka
                                        NPM version: 3.10.10npm install iobroker.yahka --production --save --prefix "/opt/iobroker" (System call)
                                        
                                        In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
                                         #include <dns_sd.h>^
                                        compilation terminated.
                                        
                                        make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                        gyp
                                         ERR! build error 
                                        gyp
                                         ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
                                        gyp 
                                        ERR! stack     at emitTwo (events.js:106:13)gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                                        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                                        
                                        gyp
                                         ERR! System Linux 4.9.59-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                        
                                        gyp ERR! cwd /opt/iobroker/node_modules/mdnsgyp ERR! node -v v6.13.0
                                        gyp ERR! node-gyp -v v3.4.0
                                        gyp ERR! not ok 
                                        
                                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
                                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):
                                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                        
                                        npm ERR! Linux 4.9.59-v7+
                                        npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka" "--production" "--save" "--prefix" "/opt/iobroker"npm ERR! node v6.13.0
                                        npm ERR! npm  v3.10.10
                                        npm ERR! code ELIFECYCLE
                                        
                                        npm ERR! mdns@2.3.4 install: `node-gyp rebuild`
                                        npm ERR! Exit status 1
                                        npm ERR! 
                                        npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                        npm ERR! Make sure you have the latest version of node.js and npm installed.
                                        npm ERR! If you do, this is most likely a problem with the mdns package,
                                        npm ERR! not with npm itself.
                                        npm ERR! Tell the author that this fails on your system:
                                        npm ERR!     node-gyp rebuild
                                        npm ERR!
                                         You can get information on how to open an issue for this project with:npm ERR!     npm bugs mdns
                                        npm ERR! Or if that isn't available, you can get their info via:
                                        npm ERR!     npm owner ls mdns
                                        npm ERR! There is likely additional logging output above.
                                        
                                        npm ERR! Please include the following file with any support request:
                                        npm ERR!
                                             /npm-debug.lognpm ERR! code 1
                                        
                                        host.raspberrypi install adapter yahka
                                        NPM version: 3.10.10
                                        npm install iobroker.yahka --production --save --prefix "/opt/iobroker" (System call)
                                        In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
                                         #include <dns_sd.h>^
                                        compilation terminated.
                                        
                                        make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                        gyp
                                         ERR! build error gyp 
                                        ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
                                        gyp
                                         ERR! stack     at emitTwo (events.js:106:13)gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                                        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                                        
                                        gyp ERR! System Linux 4.9.59-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                        gyp ERR! cwd /opt/iobroker/node_modules/mdns
                                        gyp ERR! node -v v6.13.0
                                        gyp ERR! node-gyp -v v3.4.0
                                        gyp ERR! not ok 
                                        
                                        npm
                                         WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                        
                                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                        
                                        npm 
                                        ERR! Linux 4.9.59-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka" "--production" "--save" "--prefix" "/opt/iobroker"
                                        
                                        npm ERR! node v6.13.0npm ERR! npm  v3.10.10
                                        
                                        npm ERR! code ELIFECYCLE
                                        npm ERR!
                                         mdns@2.3.4 install: `node-gyp rebuild`npm ERR! Exit status 1
                                        npm ERR! 
                                        npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                        npm ERR! Make sure you have the latest version of node.js and npm installed.
                                        npm ERR! If you do, this is most likely a problem with the mdns package,
                                        npm ERR! not with npm itself.
                                        npm ERR! Tell the author that this fails on your system:
                                        npm ERR!     node-gyp rebuild
                                        npm ERR!
                                         You can get information on how to open an issue for this project with:npm ERR!     npm bugs mdns
                                        npm ERR! Or if that isn't available, you can get their info via:
                                        npm ERR!     npm owner ls mdns
                                        npm ERR! There is likely additional logging output above.
                                        
                                        npm
                                         ERR! Please include the following file with any support request:npm ERR!
                                             /npm-debug.lognpm ERR! code 1
                                        
                                        host.raspberrypi install adapter yahka
                                        ERROR: host.raspberrypi Cannot install yahka
                                        ERROR: process exited with code 13</dns_sd.h></dns_sd.h></dns_sd.h> 
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          rh1212 last edited by

                                          @Hohenbostler:

                                          Hallo zusmmen,

                                          ich bekomme den Adapter leider nicht installiert.

                                          kann mir jemand genau sagen wo das Problem ist ?

                                          $ ./iobroker add yahka
                                          NPM version: 3.10.10
                                          npm install iobroker.yahka --production --save --prefix "/opt/iobroker" (System call)
                                          In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
                                           #include <dns_sd.h>^
                                          
                                          compilation terminated.
                                          make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                          gyp
                                           ERR! build error 
                                          gyp
                                           ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
                                          gyp ERR! stack     at emitTwo (events.js:106:13)
                                          gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                                          
                                          gyp ERR! System Linux 4.9.59-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                          gyp ERR! cwd /opt/iobroker/node_modules/mdns
                                          gyp ERR! node -v v6.13.0
                                          
                                          gyp ERR! node-gyp -v v3.4.0gyp ERR! not ok 
                                          
                                          npm
                                           WARN
                                           optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
                                          npm 
                                          WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          
                                          npm 
                                          ERR! Linux 4.9.59-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka" "--production" "--save" "--prefix" "/opt/iobroker"
                                          npm ERR! node v6.13.0
                                          npm ERR! npm  v3.10.10
                                          npm ERR! code ELIFECYCLE
                                          
                                          npm ERR! mdns@2.3.4 install: `node-gyp rebuild`
                                          npm ERR! Exit status 1
                                          
                                          npm ERR! npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                          npm ERR! Make sure you have the latest version of node.js and npm installed.
                                          npm ERR! If you do, this is most likely a problem with the mdns package,
                                          npm ERR! not with npm itself.
                                          npm ERR! Tell the author that this fails on your system:
                                          npm ERR!     node-gyp rebuild
                                          
                                          npm ERR!
                                           You can get information on how to open an issue for this project with:npm ERR!     npm bugs mdns
                                          npm ERR! Or if that isn't available, you can get their info via:
                                          npm ERR!     npm owner ls mdns
                                          npm ERR! There is likely additional logging output above.
                                          
                                          npm ERR! Please include the following file with any support request:npm ERR!
                                               /npm-debug.lognpm ERR! code 1
                                          
                                          host.raspberrypi install adapter yahka
                                          NPM version: 3.10.10npm install iobroker.yahka --production --save --prefix "/opt/iobroker" (System call)
                                          
                                          In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
                                           #include <dns_sd.h>^
                                          compilation terminated.
                                          
                                          make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                          gyp
                                           ERR! build error 
                                          gyp
                                           ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
                                          gyp 
                                          ERR! stack     at emitTwo (events.js:106:13)gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                                          
                                          gyp
                                           ERR! System Linux 4.9.59-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                          
                                          gyp ERR! cwd /opt/iobroker/node_modules/mdnsgyp ERR! node -v v6.13.0
                                          gyp ERR! node-gyp -v v3.4.0
                                          gyp ERR! not ok 
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          
                                          npm ERR! Linux 4.9.59-v7+
                                          npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka" "--production" "--save" "--prefix" "/opt/iobroker"npm ERR! node v6.13.0
                                          npm ERR! npm  v3.10.10
                                          npm ERR! code ELIFECYCLE
                                          
                                          npm ERR! mdns@2.3.4 install: `node-gyp rebuild`
                                          npm ERR! Exit status 1
                                          npm ERR! 
                                          npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                          npm ERR! Make sure you have the latest version of node.js and npm installed.
                                          npm ERR! If you do, this is most likely a problem with the mdns package,
                                          npm ERR! not with npm itself.
                                          npm ERR! Tell the author that this fails on your system:
                                          npm ERR!     node-gyp rebuild
                                          npm ERR!
                                           You can get information on how to open an issue for this project with:npm ERR!     npm bugs mdns
                                          npm ERR! Or if that isn't available, you can get their info via:
                                          npm ERR!     npm owner ls mdns
                                          npm ERR! There is likely additional logging output above.
                                          
                                          npm ERR! Please include the following file with any support request:
                                          npm ERR!
                                               /npm-debug.lognpm ERR! code 1
                                          
                                          host.raspberrypi install adapter yahka
                                          NPM version: 3.10.10
                                          npm install iobroker.yahka --production --save --prefix "/opt/iobroker" (System call)
                                          In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
                                           #include <dns_sd.h>^
                                          compilation terminated.
                                          
                                          make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                          gyp
                                           ERR! build error gyp 
                                          ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
                                          gyp
                                           ERR! stack     at emitTwo (events.js:106:13)gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                                          
                                          gyp ERR! System Linux 4.9.59-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                          gyp ERR! cwd /opt/iobroker/node_modules/mdns
                                          gyp ERR! node -v v6.13.0
                                          gyp ERR! node-gyp -v v3.4.0
                                          gyp ERR! not ok 
                                          
                                          npm
                                           WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          
                                          npm 
                                          ERR! Linux 4.9.59-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.yahka" "--production" "--save" "--prefix" "/opt/iobroker"
                                          
                                          npm ERR! node v6.13.0npm ERR! npm  v3.10.10
                                          
                                          npm ERR! code ELIFECYCLE
                                          npm ERR!
                                           mdns@2.3.4 install: `node-gyp rebuild`npm ERR! Exit status 1
                                          npm ERR! 
                                          npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                          npm ERR! Make sure you have the latest version of node.js and npm installed.
                                          npm ERR! If you do, this is most likely a problem with the mdns package,
                                          npm ERR! not with npm itself.
                                          npm ERR! Tell the author that this fails on your system:
                                          npm ERR!     node-gyp rebuild
                                          npm ERR!
                                           You can get information on how to open an issue for this project with:npm ERR!     npm bugs mdns
                                          npm ERR! Or if that isn't available, you can get their info via:
                                          npm ERR!     npm owner ls mdns
                                          npm ERR! There is likely additional logging output above.
                                          
                                          npm
                                           ERR! Please include the following file with any support request:npm ERR!
                                               /npm-debug.lognpm ERR! code 1
                                          
                                          host.raspberrypi install adapter yahka
                                          ERROR: host.raspberrypi Cannot install yahka
                                          ERROR: process exited with code 13</dns_sd.h></dns_sd.h></dns_sd.h> 
                                          ```` `  
                                          

                                          Hast du ]das gemacht?

                                          "Wichtig vor der Installation müssen einige Pakete installiert werden: sudo apt-get install libavahi-compat-libdnssd-dev"

                                          Lese Seite 30 da hatte ich auch Probleme hab alles was die anderen vorgeschlagen gemacht. Glaube apt-get update hat mein Problem gelöst

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            Hohenbostler last edited by

                                            Sorry auch alles andere ohne erfolg . hier nochmal ein versuch

                                            ! ````
                                            Using username "root".
                                            root@192.168.178.55's password:
                                            Access denied
                                            root@192.168.178.55's password:
                                            Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l
                                            ! The programs included with the Debian GNU/Linux system are free software;
                                            the exact distribution terms for each program are described in the
                                            individual files in /usr/share/doc/*/copyright.
                                            ! Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                                            permitted by applicable law.
                                            Last login: Sun Mar 25 19:19:28 2018 from 192.168.178.31
                                            root@raspberrypi:~# cd /opt/iobroker
                                            root@raspberrypi:/opt/iobroker# npm cache clean
                                            root@raspberrypi:/opt/iobroker# sudo npm install --unsafe-perm mdns
                                            ! > mdns@2.3.4 install /opt/iobroker/node_modules/mdns
                                            node-gyp rebuild
                                            ! make: Verzeichnis „/opt/iobroker/node_modules/mdns/build“ wird betreten
                                            CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
                                            In file included from ../src/dns_sd.cpp:1:0:
                                            ../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefun den
                                            #include <dns_sd.h>^
                                            compilation terminated.
                                            dns_sd_bindings.target.mk:149: die Regel für Ziel „Release/obj.target/dns_sd_bin dings/src/dns_sd.o“ scheiterte
                                            make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
                                            make: Verzeichnis „/opt/iobroker/node_modules/mdns/build“ wird verlassen
                                            gyp ERR! build error
                                            gyp ERR! stack Error: make failed with exit code: 2
                                            gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module s/node-gyp/lib/build.js:276:23)
                                            gyp ERR! stack at emitTwo (events.js:106:13)
                                            gyp ERR! stack at ChildProcess.emit (events.js:191:7)
                                            gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:219:12)
                                            gyp ERR! System Linux 4.9.59-v7+
                                            gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild"
                                            gyp ERR! cwd /opt/iobroker/node_modules/mdns
                                            gyp ERR! node -v v6.13.1
                                            gyp ERR! node-gyp -v v3.4.0
                                            gyp ERR! not ok
                                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/ch okidar/node_modules/fsevents):
                                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"} )
                                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/io broker.js2fs/node_modules/chokidar/node_modules/fsevents):
                                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"} )
                                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modu les/noble/node_modules/xpc-connection):
                                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-conne ction@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch": "arm"})
                                            npm ERR! Linux 4.9.59-v7+
                                            npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--unsafe-perm" "mdns"
                                            npm ERR! node v6.13.1
                                            npm ERR! npm v3.10.10
                                            npm ERR! code ELIFECYCLE
                                            ! npm ERR! mdns@2.3.4 install: node-gyp rebuild
                                            npm ERR! Exit status 1
                                            npm ERR!
                                            npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
                                            npm ERR! Make sure you have the latest version of node.js and npm installed.
                                            npm ERR! If you do, this is most likely a problem with the mdns package,
                                            npm ERR! not with npm itself.
                                            npm ERR! Tell the author that this fails on your system:
                                            npm ERR! node-gyp rebuild
                                            npm ERR! You can get information on how to open an issue for this project with:
                                            npm ERR! npm bugs mdns
                                            npm ERR! Or if that isn't available, you can get their info via:
                                            npm ERR! npm owner ls mdns
                                            npm ERR! There is likely additional logging output above.
                                            ! npm ERR! Please include the following file with any support request:
                                            npm ERR! /opt/iobroker/npm-debug.log
                                            root@raspberrypi:/opt/iobroker# ^C
                                            root@raspberrypi:/opt/iobroker#</dns_sd.h>

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            764
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            204
                                            1746
                                            703691
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo