Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter zigbee2mqtt

    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

    Test Adapter zigbee2mqtt

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      biker1602 @Guest last edited by

      @ciddi89

      pi@raspberrypi:~ $ sudo systemctl start zigbee2mqtt
      pi@raspberrypi:~ $ systemctl status zigbee2mqtt.service
      ● zigbee2mqtt.service - zigbee2mqtt
         Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor preset: enabled)
         Active: activating (auto-restart) (Result: exit-code) since Tue 2022-12-20 09:21:49 CET; 7s ago
        Process: 7179 ExecStart=/usr/local/bin/npm start (code=exited, status=203/EXEC)
       Main PID: 7179 (code=exited, status=203/EXEC)
      pi@raspberrypi:~ $
      
      
      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @biker1602 last edited by

        @biker1602 vielleicht bist du zu schnell 😬 da steht noch activating. Mach jetzt noch mal

        systemctl status zigbee2mqtt.service
        
        B 2 Replies Last reply Reply Quote 0
        • B
          biker1602 @Guest last edited by

          @ciddi89

          pi@raspberrypi:~ $ systemctl status zigbee2mqtt.service
          ● zigbee2mqtt.service - zigbee2mqtt
             Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor pres
             Active: activating (auto-restart) (Result: exit-code) since Tue 2022-12-20 09
            Process: 8239 ExecStart=/usr/local/bin/npm start (code=exited, status=203/EXEC
           Main PID: 8239 (code=exited, status=203/EXEC)
          lines 1-5/5 (END)
          ● zigbee2mqtt.service - zigbee2mqtt
             Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor preset: enabled)
             Active: activating (auto-restart) (Result: exit-code) since Tue 2022-12-20 09:29:51 CET; 3s ago
            Process: 8239 ExecStart=/usr/local/bin/npm start (code=exited, status=203/EXEC)
           Main PID: 8239 (code=exited, status=203/EXEC)
          
          
          crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
          • B
            biker1602 @Guest last edited by

            @ciddi89
            Bin mal kurz weg

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @biker1602 last edited by

              @biker1602 ja irgendwie startet er den Dienst nicht. Vielleicht weiß @IdleBit noch was 🤔

              1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @biker1602 last edited by

                @biker1602 sagte in Test Adapter zigbee2mqtt:

                ExecStart=/usr/local/bin/npm start

                liegt das denn in dem Pfad?

                B 1 Reply Last reply Reply Quote 1
                • Thomas Braun
                  Thomas Braun Most Active @biker1602 last edited by

                  @biker1602

                  Nodejs./npm-Installation prüfen.
                  Da scheinen mal wieder die falschen Pfade vorzuliegen (ergo falsch installiert).

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    biker1602 @Thomas Braun last edited by

                    @thomas-braun
                    Behebt er das mit dem Fixer?

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

                      @biker1602

                      Nein, der Fixer behebt keine krumme Installation von nodejs.

                      Status jetzt ist?
                      Mit

                      sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                      uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      

                      nachschauen.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        biker1602 @crunchip last edited by

                        @crunchip said in Test Adapter zigbee2mqtt:

                        @biker1602 sagte in Test Adapter zigbee2mqtt:

                        ExecStart=/usr/local/bin/npm start

                        liegt das denn in dem Pfad?

                        Ich bin eben mal mit WinSCP auf das Verzeichnis gegangen und unter
                        /usr/local/bin ist nichts drin

                        crunchip 1 Reply Last reply Reply Quote 0
                        • B
                          biker1602 @Thomas Braun last edited by

                          @thomas-braun

                          pi@raspberrypi:/opt/zigbee2mqtt $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                          pi@raspberrypi:/opt/zigbee2mqtt $ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                          armv7l
                          Kein Docker
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v16.19.0
                          v16.19.0
                          8.19.3
                          4.0.23
                          pi
                          pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                          tty
                          
                          /opt/zigbee2mqtt
                          Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                          Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                          Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          97 packages can be upgraded. Run 'apt list --upgradable' to see them.
                          nodejs:
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @biker1602 last edited by

                            @biker1602

                            Das ist nicht vollständig, dein Betriebssystem ist tot und es stehen 97 Updates in der Pipeline.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              biker1602 @Thomas Braun last edited by

                              @thomas-braun said in Test Adapter zigbee2mqtt:

                              @biker1602

                              Das ist nicht vollständig, dein Betriebssystem ist tot und es stehen 97 Updates in der Pipeline.

                              Verzeihung da fehlte noch etwas

                              pi@raspberrypi:/opt/zigbee2mqtt $ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                              armv7l
                              Kein Docker
                              /usr/bin/nodejs
                              /usr/bin/node
                              /usr/bin/npm
                              v16.19.0
                              v16.19.0
                              8.19.3
                              4.0.23
                              pi
                              pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                              tty
                              
                              /opt/zigbee2mqtt
                              Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                              Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                              Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
                              Reading package lists... Done
                              Building dependency tree
                              Reading state information... Done
                              97 packages can be upgraded. Run 'apt list --upgradable' to see them.
                              nodejs:
                                Installed: 16.19.0-deb-1nodesource1
                                Candidate: 16.19.0-deb-1nodesource1
                                Version table:
                               *** 16.19.0-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   10.24.0~dfsg-1~deb10u2 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 @biker1602 last edited by

                                @biker1602
                                Dann reduziert es sich auf:

                                dein Betriebssystem ist tot und es stehen 97 Updates in der Pipeline.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  biker1602 last edited by biker1602

                                  @thomas-braun said in Test Adapter zigbee2mqtt:

                                  @biker1602
                                  Dann reduziert es sich auf:

                                  dein Betriebssystem ist tot und es stehen 97 Updates in der Pipeline.

                                  pi@raspberrypi:~ $ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker                                                               && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm                                                               && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SES                                                              SION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sud                                                              o apt update && apt policy nodejs
                                  armv7l
                                  Kein Docker
                                  /usr/bin/nodejs
                                  /usr/bin/node
                                  /usr/bin/npm
                                  v16.19.0
                                  v16.19.0
                                  8.19.3
                                  4.0.23
                                  pi
                                  pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin g                                                              pio i2c spi iobroker
                                  tty
                                  
                                  /home/pi
                                  Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                  Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                                  Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
                                  Reading package lists... Done
                                  Building dependency tree
                                  Reading state information... Done
                                  All packages are up to date.
                                  nodejs:
                                    Installed: 16.19.0-deb-1nodesource1
                                    Candidate: 16.19.0-deb-1nodesource1
                                    Version table:
                                   *** 16.19.0-deb-1nodesource1 500
                                          500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                          100 /var/lib/dpkg/status
                                       10.24.0~dfsg-1~deb10u2 500
                                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                  pi@raspberrypi:~ $
                                  
                                  

                                  Ich verstehe das nicht, mit System ist tot. Ich habe jetzt alle Updates gemacht.
                                  Ist es so besser?

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

                                    @biker1602

                                    Das Buster Release ist im September abgekündigt worden. Installier da Bullseye.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      biker1602 last edited by

                                      @thomas-braun said in Test Adapter zigbee2mqtt:

                                      @biker1602

                                      Das Buster Release ist im September abgekündigt worden. Installier da Bullseye.

                                      Aber da muss ich alles neu aufsetzen oder?

                                      Asgothian Thomas Braun 2 Replies Last reply Reply Quote 0
                                      • crunchip
                                        crunchip Forum Testing Most Active @biker1602 last edited by crunchip

                                        @biker1602 sagte in Test Adapter zigbee2mqtt:

                                        /usr/local/bin ist nichts drin

                                        logisch, sonst hätte es ja auch gegriffen

                                        du musst das anpassen

                                        sudo nano /etc/systemd/system/zigbee2mqtt.service
                                        

                                        und den Pfad ändern, von

                                        ExecStart=/usr/local/bin/npm start
                                        

                                        auf

                                        ExecStart=/usr/bin/npm start
                                        

                                        @biker1602 sagte in Test Adapter zigbee2mqtt:

                                        muss ich alles neu aufsetzen

                                        kann man, oder update
                                        z.b.
                                        https://linuxhint.com/upgrade-raspberry-pi-os-buster-to-bullseye/

                                        1 Reply Last reply Reply Quote 0
                                        • Asgothian
                                          Asgothian Developer @biker1602 last edited by Asgothian

                                          @biker1602 sagte in Test Adapter zigbee2mqtt:

                                          @thomas-braun said in Test Adapter zigbee2mqtt:

                                          @biker1602

                                          Das Buster Release ist im September abgekündigt worden. Installier da Bullseye.

                                          Aber da muss ich alles neu aufsetzen oder?

                                          Nein, du kannst ein update machen.

                                          Musst du aber nicht. Das ursprüngliche Problem wird sich mit einer Neuinstallation des Systems NICHT beheben.

                                          Wenn das System aktuell läuft dann musst du das nicht zwingend aktualisieren - auch wenn @thomas-braun Meinung ist das nur ein System auf dem aktuellen Stand lebensfähig ist.

                                          Läuft dein zigbee2mqtt Dienst denn jetzt ? Wenn nein, Poste noch mal bitte genau das was du in der Datei

                                          /etc/systemd/system/zigbee2mqtt.service
                                          

                                          auf deinem System drin stehen hast.

                                          Nachtrag: Das was @crunchip geschrieben hat vermute ich aktuell auch als Ursache für Dein Problem.

                                          A.

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • B
                                            biker1602 last edited by

                                            @asgothian

                                            [Unit]
                                            Description=zigbee2mqtt
                                            After=network.target
                                            
                                            [Service]
                                            Environment=NODE_ENV=production
                                            ExecStart=/usr/bin/npm start
                                            WorkingDirectory=/opt/zigbee2mqtt
                                            StandardOutput=inherit
                                            # Or use StandardOutput=null if you don't want Zigbee2MQTT messages filling syslog, for more options see systemd.exec(5)
                                            StandardError=inherit
                                            Restart=always
                                            RestartSec=10s
                                            User=pi
                                            
                                            [Install]
                                            WantedBy=multi-user.target
                                            
                                            

                                            So habe den Pfad geändert

                                            pi@raspberrypi:/opt/zigbee2mqtt $ npm start
                                            
                                            > zigbee2mqtt@1.28.0 start
                                            > node index.js
                                            
                                            Zigbee2MQTT:info  2022-12-20 13:13:06: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2022-12-20.13-13-06' filename: log.txt
                                            Zigbee2MQTT:info  2022-12-20 13:13:06: Starting Zigbee2MQTT version 1.28.0 (commit #03ba647)
                                            Zigbee2MQTT:info  2022-12-20 13:13:06: Starting zigbee-herdsman (0.14.62)
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: zigbee-herdsman started (resumed)
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20190608,"transportrev":2},"type":"zStack12"}'
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: Currently 1 devices are joined:
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: IKEA Smart Home Button (0x84fd27fffe1f7496): E1524/E1810 - IKEA TRADFRI remote control (EndDevice)
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: Zigbee: disabling joining new devices.
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: Connecting to MQTT server at mqtt://localhost
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: Connected to MQTT server
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: MQTT publish: topic 'zigbee2mqtt/IKEA Smart Home Button/availability', payload '{"state":"offline"}'
                                            Zigbee2MQTT:info  2022-12-20 13:13:07: Started frontend on port 0.0.0.0:8080
                                            
                                            
                                            

                                            Gestartet Adapter ist Grün und sobald ich die Konsole schließe ist er wieder Gelb

                                            Asgothian crunchip 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            515
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            zigbee zigbee 3.0 zigbee2mqtt
                                            50
                                            520
                                            89880
                                            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