Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. HAM adapter Verbindungsprobleme

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    UNSOLVED HAM adapter Verbindungsprobleme

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      suffix @Thomas Braun last edited by suffix

      @Thomas-Braun
      Bin jetzt gerade unterwegs. Bei dem letzen Befehl kam keine ausgabe zurück

      
      pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
      pi@raspberrypi:~ $ 
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @suffix last edited by

        @suffix Dann kannst du nach der oben verlinkten Anleitung node12 sauber installieren.

        S 1 Reply Last reply Reply Quote 0
        • S
          suffix @Thomas Braun last edited by

          @Thomas-Braun
          Alles klar, werde es gleich mal probieren

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @suffix last edited by

            @suffix Moment...

            apt policy nodejs
            

            liefert nichts?

            S 1 Reply Last reply Reply Quote 0
            • S
              suffix @Thomas Braun last edited by

              @Thomas-Braun said in HAM adapter Verbindungsprobleme:

              apt policy nodejs

              Doch, der Befehl alleine liefert das

              
              pi@raspberrypi:~ $ apt policy nodejs
              nodejs:
                Installiert:           (keine)
                Installationskandidat: 10.21.0~dfsg-1~deb10u1+rpi1
                Versionstabelle:
                   10.21.0~dfsg-1~deb10u1+rpi1 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @suffix last edited by

                @suffix
                Okay, dann nach der oben verlinkten Anleitung vorgehen und node12 installieren.

                S 1 Reply Last reply Reply Quote 0
                • S
                  suffix @Thomas Braun last edited by suffix

                  @Thomas-Braun
                  Ich habe jetzt mit den beiden Befehlen

                  curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash –
                  sudo apt install nodejs
                  

                  installiert.

                  Die Befehle

                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                  

                  geben nunr folgendes zurück:

                  
                  pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                  /usr/bin/nodejs
                  v12.19.0
                  /usr/bin/node
                  v12.19.0
                  /usr/local/bin/npm
                  6.14.5
                  nodejs:
                    Installiert:           12.19.0-1nodesource1
                    Installationskandidat: 12.19.0-1nodesource1
                    Versionstabelle:
                   *** 12.19.0-1nodesource1 500
                          500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                          100 /var/lib/dpkg/status
                       10.21.0~dfsg-1~deb10u1+rpi1 500
                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                  pi@raspberrypi:~ $
                  
                  

                  Ist so alles korrekt?

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @suffix last edited by

                    @suffix Da stimmt noch was nicht.

                    sudo rm /usr/local/bin/npm
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S
                      suffix @Thomas Braun last edited by

                      @Thomas-Braun said in HAM adapter Verbindungsprobleme:

                      @suffix Da stimmt noch was nicht.

                      sudo rm /usr/local/bin/npm
                      

                      Einfach den Befehl ausführen? Wie installier npm ich danach am besten neu?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        suffix @suffix last edited by

                        @suffix said in HAM adapter Verbindungsprobleme:

                        @Thomas-Braun said in HAM adapter Verbindungsprobleme:

                        @suffix Da stimmt noch was nicht.

                        sudo rm /usr/local/bin/npm
                        

                        Einfach den Befehl ausführen? Wie installier npm ich danach am besten neu?

                        Edit:
                        Befehl ausgeführt, neue Ausgabe:

                        
                        pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                        /usr/bin/nodejs
                        v12.19.0
                        /usr/bin/node
                        v12.19.0
                        /usr/bin/npm
                        6.14.8
                        nodejs:
                          Installiert:           12.19.0-1nodesource1
                          Installationskandidat: 12.19.0-1nodesource1
                          Versionstabelle:
                         *** 12.19.0-1nodesource1 500
                                500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                100 /var/lib/dpkg/status
                             10.21.0~dfsg-1~deb10u1+rpi1 500
                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                        pi@raspberrypi:~ $
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @suffix last edited by

                          @suffix Ja, jetzt passt es soweit.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            suffix @Thomas Braun last edited by suffix

                            @Thomas-Braun
                            Super, danke.

                            Leider besteht aber immernoch das Eingangs genannte Problem 😕

                            Ich frage mich zum Bsiepiel auch, warum immer '/lib/user' im Log hinter meinem angegebenen Pfad steht. Ich gebe im HAM Adapter ja als globalen Homebridge Pfad '/usr/local/lib/node_modules/' an. Im Log macht er daraus '/usr/local/lib/node_modules/lib/user'

                            Keine Ahnung wo das Problem ist

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @suffix last edited by

                              @suffix
                              Sicher dass der Kram in /usr/local liegt?

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                suffix @Thomas Braun last edited by suffix

                                @Thomas-Braun
                                Nein, aber ich wüsste nicht mehr wo sonst. Es soll der globale Pfad zu den npm Modulen angegeben werden. Den kann man mit

                                npm root -g
                                

                                Abrufen. Und dabei bekomme ich den genannten zurück.

                                Hier nochmal ein etwas ausführlicher Auszug aus dem log, ich versuch’s gleich noch etwas leserlicher zu formatieren:

                                
                                fo	instance system.adapter.ham.0 terminated with code 0 (NO_ERROR)
                                ham.0	2020-10-13 08:53:14.732	info	(13119) Terminated (NO_ERROR): Without reason
                                ham.0	2020-10-13 08:53:14.730	info	(13119) terminating
                                ham.0	2020-10-13 08:53:14.583	info	(13119) cleaned everything up...
                                ham.0	2020-10-13 08:53:14.582	error	at checkLocalMode (/opt/iobroker/node_modules/iobroker.ham/main.js:400:25)
                                ham.0	2020-10-13 08:53:14.582	error	at /opt/iobroker/node_modules/iobroker.ham/main.js:203:13
                                ham.0	2020-10-13 08:53:14.582	error	at installAllLibraries (/opt/iobroker/node_modules/iobroker.ham/main.js:381:21)
                                ham.0	2020-10-13 08:53:14.582	error	at /opt/iobroker/node_modules/iobroker.ham/main.js:217:39
                                ham.0	2020-10-13 08:53:14.582	error	at Object.init (/opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js:63:12)
                                ham.0	2020-10-13 08:53:14.582	error	at require (internal/modules/cjs/helpers.js:74:18)
                                ham.0	2020-10-13 08:53:14.582	error	at Module.require (internal/modules/cjs/loader.js:903:19)
                                ham.0	2020-10-13 08:53:14.582	error	at Function.Module._load (/opt/iobroker/node_modules/mock-require/index.js:30:22)
                                ham.0	2020-10-13 08:53:14.582	error	at Function.Module._load (internal/modules/cjs/loader.js:687:27)
                                ham.0	2020-10-13 08:53:14.582	error	at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
                                ham.0	2020-10-13 08:53:14.582	error	- /opt/iobroker/node_modules/iobroker.ham/main.js
                                ham.0	2020-10-13 08:53:14.582	error	- /opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js
                                ham.0	2020-10-13 08:53:14.582	error	Require stack:
                                ham.0	2020-10-13 08:53:14.582	error	(13119) Error: Cannot find module 'usr/local/lib/node_modules/lib/user'
                                ham.0	2020-10-13 08:53:14.580	error	- /opt/iobroker/node_modules/iobroker.ham/main.js
                                ham.0	2020-10-13 08:53:14.580	error	- /opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js
                                ham.0	2020-10-13 08:53:14.580	error	Require stack:
                                ham.0	2020-10-13 08:53:14.580	error	(13119) unhandled promise rejection: Cannot find module 'usr/local/lib/node_modules/lib/user'
                                Unhandled	2020-10-13 08:53:14.579	error	promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                ham.0	2020-10-13 08:53:14.556	info	(13119) No additional Libraries to install ...
                                ham.0	2020-10-13 08:53:14.527	info	(13119) starting. Version 3.0.1 in /opt/iobroker/node_modules/iobroker.ham, node: v12.19.0, js-controller: 3.1
                                
                                

                                Hier die Beschreibung von HAM von GitHub (https://github.com/ioBroker/ioBroker.ham#global-homebridge-mode) :

                                "Global-Homebridge-Mode
                                If you already use Homebridge (Apple OpenSource SmartHome) to control your devices then you can use this existing Homebridge installation and start this Homebridge installation as ioBroker process. In this case the Homebridge server is started by ioBroker. Additionally all states from Homebridge are available as states in ioBroker and allows to control from ioBroker.

                                For this to work you need to provide the location of the systems global node-modules folder. For this call npm root -g. Additionally you need to privide the path of the homebridge configuration directory (usually .homebridge in the users folder)."

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @suffix last edited by

                                  @suffix Da muss dir jemand anderes helfen. Keine Ahnung von HAM.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    suffix @Thomas Braun last edited by suffix

                                    @Thomas-Braun
                                    Trotzdem schon mal vielen Dank 🙂

                                    @apollon77, kannst du mir da vielleicht weiter helfen?![alt text]

                                    Hier noch meine aktuelle Konfiguration:

                                    HAM Adapter Konfig

                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @suffix last edited by

                                      @suffix Naja gib mal den Global Pfad richtig ein, da fehlt mindestens ein / am anfang

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        suffix @apollon77 last edited by suffix

                                        @apollon77

                                        Ups 🙄

                                        Habs geändert, leider kommt nach wie vor der selbe Fehler.

                                        Muss Homebridge vllt gestoppt sein, damit HAM es starten kann? Kann es irgendwie daran liegen? Oder muss ich noch einen Befehlsparameter in der HAM Konfig angeben?

                                        apollon77 1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @suffix last edited by

                                          @suffix Welche Homebridge ist lokal installiert? Der Adapter ist aktuellkompatbelmit der 1.1.x von homebridge

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            suffix @apollon77 last edited by suffix

                                            @apollon77
                                            Es ist Hoobs 3.2.6 installiert. Auf welcher Homebridge Version das Basiert weiß ich gerade nicht, versuche es mal herauszufinden.

                                            Also im HOOBS log steht „Homebridge Version 3.2.6“, aber das kann ja eigentlich nicht stimmen.

                                            Dass der Adapter nicht mit Homebridge 1.2.x kompatibel ist würde aber heißen dass ich vorerst eine ältere Version installieren müssen. Ist ein Update des Adapters bald geplant?

                                            Gibt es noch eine andere Möglichkeit, einen Fake Switch von HomeKit/Homebridge zu ioBroker zu bringen? Ich hab eigentlich keine große Laune dazu Homebridge neu zu installieren, während HOOBS aktuell eigentlich problemlos läuft 😕

                                            apollon77 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            562
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            ham ham-adapter homebridge hoobs iobroker log
                                            4
                                            53
                                            1906
                                            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