Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. kleines Projekt Z-Wave und Zigbee gleichzeitig auf PI4

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    kleines Projekt Z-Wave und Zigbee gleichzeitig auf PI4

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AMagnum @tugsi last edited by

      @tugsi sagte in kleines Projekt Z-Wave und Zigbee gleichzeitig auf PI4:

      Ich kann Dir sagen, ich habe eine RPi3 mit einem ZWave-Modul (Razberry) und einen Zigbee-USB-Stick dran.
      Dies klappt ohne Probleme, da dies ja zwei unterschiedliche Anschlüsse sind.
      Hallo Tugsi,

      habe nun alles soweit installiert. Der Zigbee-Conbee2 läuft, auch der deconz Adapter. IKEA Lampe mit Fernbedienung ist im ioBroker eingebunden und Schalter und Lampe per Skript verbunden.

      Razberry-Platine ist on Board. Z-Wave SmatHome-SW ist installiert und funktioniert (hier meine ich die Web-Oberfläche, Firmware v3.1.3, UI Version v1.13.0).

      Frage nun zum Adapter. Ich denke ich müssste den Adapter zwave2.0 verwenden, der schon im ioBroker angeboten wird.

      Mir ist nicht klar, was ich dort für Werte einstellen muss bzw. wie ich den Adapter nun mit dem z-wave-gateway verbinden soll. Es wurde wohl ein neues TTY angelegt mit dem Namen /dev/ttyAMA0.

      Mich würde nun interessieren, was man genau dort angeben muss. Es gibt folgende Eingabemöglichkeiten:

      • Serielle Schnittstelle auswählen: (vielleicht /dev/ttyAMA0 ????)
      • Netzwerkschlüssel (kann neu generiert werden)
      • Detaillierte Logdatei (ja/nein)
      • Treiber-Timeouts erhöhen
      • Datenpunkt-Namen nicht überschreiben
      • Kompatibilität mit älteren Schaltern verbessern
      • Sendeversuche erhöhen

      OS: habe das Raspbeery Linux Ligth 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux. Node v12.22.0, NodeJs V12.22.0, npm 6.14.11, alles aktuell. IoBroker 4.2.1.

      In der z-wave GUI (Web-Oberfläsche) gibt es vielleicht auch noch etwas was man machen muss?

      Ich habe keine Anleitung gefunden, wie man ein Razberry Modul (z-wave2) im ioBroker einbinden kann. Vielleicht kannst Du oder jemand anderes mir hier helfen.

      Danke, viele Grüße Andi

      A paul53 2 Replies Last reply Reply Quote 0
      • A
        AMagnum @AMagnum last edited by AMagnum

        @amagnum Anmerkung zu meiner Systemumgebung:
        lsb_release –a:
        No LSB modules are available.
        Distributor ID: Raspbian
        Description: Raspbian GNU/Linux 10 (buster)
        Release: 10
        Codename: buster

        A 1 Reply Last reply Reply Quote 0
        • A
          AMagnum @AMagnum last edited by

          @amagnum Wenn ich nun den Adapter starte, egal was für ein TTY ich eingebe, bekomme ich folgende Felermeldungen:
          164fead2-131e-49be-ab63-ffff0aaf223a-grafik.png

          Mich wundert es, dass hier eine libnode.so.64 gesucht wird. Deutet vielleicht auf ein 64bit System hin, habe ja nur ein 32bit OS installiert. Ich finde einfach nicht, welche Voraussetzungen der Adapter benötigt.

          AlCalzone Thomas Braun 2 Replies Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer @AMagnum last edited by

            @amagnum sagte in kleines Projekt Z-Wave und Zigbee gleichzeitig auf PI4:

            Ich finde einfach nicht, welche Voraussetzungen der Adapter benötigt.

            Der hat keine, außer mindestens Node.js 10, was du ja zu haben scheinst. Was es mit libnode.so.64 auf sich hat, bin ich leider überfragt.

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

              @amagnum
              Ausgaben von

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

              ergeben?

              A 1 Reply Last reply Reply Quote 0
              • A
                AMagnum @Thomas Braun last edited by AMagnum

                @thomas-braun sagte in kleines Projekt Z-Wave und Zigbee gleichzeitig auf PI4:

                Ergebnis sieht wie folgt aus:

                root@SmartHomePi4:/opt/iobroker/node_modules/iobroker.zwave2# which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                /usr/bin/nodejs
                v12.22.0
                /usr/bin/node
                v12.22.0
                /usr/bin/npm
                7.8.0
                nodejs:
                  Installiert:           12.22.0-1nodesource1
                  Installationskandidat: 12.22.0-1nodesource1
                  Versionstabelle:
                 *** 12.22.0-1nodesource1 500
                        500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                        100 /var/lib/dpkg/status
                     10.24.0~dfsg-1~deb10u1 500
                        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                
                Thomas Braun A 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @AMagnum last edited by

                  @amagnum Bitte Konsolentext nicht als Screenshot, sondern als Text in CodeTags einbetten.

                  1 Reply Last reply Reply Quote 0
                  • A
                    AMagnum @AMagnum last edited by

                    Habe nun im Verzeichnis /opt/iobroker/node_modules/iobroker.zwave2 den Befehl npm i zwave-js@3.2.0 aufgerufen. Nun ist zumindest im Logfile des Adapters der Fehler mit libnode.so.64 verschwunden. Sieht also schon etwas besser aus.

                    Dafür bekommt der Adapter keine Verbindung zum /dev/ttyAMA0 hin. Das TTY ist im Web-Interface (Z-Wave) korrekt eingestellt und ist auch unter /dev zu sehen.

                    e0e42eab-97ce-4ac7-a92b-80cc7926770d-grafik.png

                    Alles sehr eigenartig.

                    A AlCalzone 2 Replies Last reply Reply Quote 0
                    • A
                      AMagnum @AMagnum last edited by AMagnum

                      @amagnum

                      root@SmartHomePi4:/opt/iobroker/node_modules/iobroker.zwave2# grep dialout /etc/group
                      dialout:x:20:pi,iobroker
                      
                      root@SmartHomePi4:/opt/iobroker/node_modules/iobroker.zwave2# ls -l /dev/ttyA*
                      crw-rw---- 1 root dialout 166,  0 Apr  5 18:36 /dev/ttyACM0
                      crw-rw---- 1 root dialout 204, 64 Apr  5 18:36 /dev/ttyAMA0
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @AMagnum last edited by Thomas Braun

                        @amagnum
                        Verfummeltes System und root-Login...
                        Und npm7 installiert.

                        Komisch immer diese Zufälle.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          AMagnum @Thomas Braun last edited by

                          @thomas-braun sagte in kleines Projekt Z-Wave und Zigbee gleichzeitig auf PI4:

                          Verfummeltes System und root-Login...
                          Und npm7 installiert.

                          Okay, vielleicht. Also bitte sucht dann erstmal nicht. Ich setzte das System neu auf und werde nur noch alls unter User PI machen mit SUDO.

                          Melde mich dann, wenn ich wieder an der Stelle bin. Würde aber wieder das OS von Raspbeery nehmen Ligth - Version. Damit funktioniert mein Conbee 2 Stick gut. Hoffe es geht.

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

                            @amagnum
                            Und lass die Finger von npm-Updates!

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              AMagnum @Thomas Braun last edited by

                              @thomas-braun war schon verzweifelt und daher war ich von 6.x auf 7.x gegangen 😕

                              1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @AMagnum last edited by paul53

                                @amagnum sagte: Z-Wave SmatHome-SW ist installiert und funktioniert

                                Z-Way? Dann greift die sich den Razberry und der Zugriff für ioBroker ist blockiert.

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  AMagnum @paul53 last edited by

                                  @paul53 nun habe ich das System neu aufgesetzt.

                                  pi@SmartHomePi4:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                  /usr/bin/nodejs
                                  v12.22.0
                                  /usr/bin/node
                                  v12.22.0
                                  /usr/bin/npm
                                  6.14.11
                                  nodejs:
                                    Installed: 12.22.0-1nodesource1
                                    Candidate: 12.22.0-1nodesource1
                                    Version table:
                                   *** 12.22.0-1nodesource1 500
                                          500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                          100 /var/lib/dpkg/status
                                       10.24.0~dfsg-1~deb10u1 500
                                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                  
                                  pi@SmartHomePi4:~ $ uname -a
                                  Linux SmartHomePi4 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
                                  
                                  pi@SmartHomePi4:~ $ sudo lsb_release -a
                                  No LSB modules are available.
                                  Distributor ID: Raspbian
                                  Description:    Raspbian GNU/Linux 10 (buster)
                                  Release:        10
                                  Codename:       buster
                                  
                                  pi@SmartHomePi4:~ $ ls -l /dev/ttyA*
                                  crw-rw---- 1 root dialout 166,  0 Apr  5 21:03 /dev/ttyACM0
                                  crw-rw---- 1 root dialout 204, 64 Apr  5 20:28 /dev/ttyAMA0
                                  
                                  pi@SmartHomePi4:~ $ sudo grep dialout /etc/group
                                  dialout:x:20:pi,iobroker
                                  
                                  pi@SmartHomePi4:~ $ iobroker -v
                                  3.2.16
                                  

                                  Der Adapter zeigt nun

                                  9d96ff09-b513-4aa0-8e1c-559d954c4894-grafik.png

                                  Das Logfile im ioBroker gibt folgendes nun aus:

                                  zwave2.0	2021-04-05 21:07:20.395	info	(8247) starting. Version 1.8.11 in /opt/iobroker/node_modules/iobroker.zwave2, node: v12.22.0, js-controller: 3.2.16
                                  host.SmartHomePi4	2021-04-05 21:07:18.335	info	instance system.adapter.zwave2.0 started with pid 8247
                                  host.SmartHomePi4	2021-04-05 21:07:15.811	info	instance system.adapter.zwave2.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                                  zwave2.0	2021-04-05 21:07:15.254	info	(8228) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                  zwave2.0	2021-04-05 21:07:15.253	info	(8228) terminating
                                  zwave2.0	2021-04-05 21:07:15.251	info	(8228) Shutting down driver...
                                  zwave2.0	2021-04-05 21:07:15.249	info	(8228) Got terminate signal TERMINATE_YOURSELF
                                  host.SmartHomePi4	2021-04-05 21:07:15.249	info	stopInstance system.adapter.zwave2.0 send kill signal
                                  host.SmartHomePi4	2021-04-05 21:07:15.241	info	stopInstance system.adapter.zwave2.0 (force=false, process=true)
                                  zwave2.0	2021-04-05 21:06:21.183	warn	(8228) No serial port configured. Please select one in the adapter settings!
                                  zwave2.0	2021-04-05 21:06:21.132	info	(8228) starting. Version 1.8.11 in /opt/iobroker/node_modules/iobroker.zwave2, node: v12.22.0, js-controller: 3.2.16
                                  host.SmartHomePi4	2021-04-05 21:06:19.095	info	instance system.adapter.zwave2.0 started with pid 8228
                                  host.SmartHomePi4	2021-04-05 21:06:17.099	info	iobroker exit 0
                                  host.SmartHomePi4	2021-04-05 21:06:16.013	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0 created
                                  host.SmartHomePi4	2021-04-05 21:06:15.908	info	iobroker host.SmartHomePi4 Set default value of zwave2.0.info.connection: false
                                  host.SmartHomePi4	2021-04-05 21:06:15.878	info	iobroker host.SmartHomePi4 Set default value of zwave2.0.info.inclusion: 0
                                  host.SmartHomePi4	2021-04-05 21:06:15.849	info	iobroker host.SmartHomePi4 Set default value of zwave2.0.info.exclusion: false
                                  host.SmartHomePi4	2021-04-05 21:06:15.819	info	iobroker host.SmartHomePi4 Set default value of zwave2.0.info.healingNetwork: false
                                  host.SmartHomePi4	2021-04-05 21:06:15.786	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.alive created
                                  host.SmartHomePi4	2021-04-05 21:06:15.755	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.connected created
                                  host.SmartHomePi4	2021-04-05 21:06:15.725	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.compactMode created
                                  host.SmartHomePi4	2021-04-05 21:06:15.697	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.cpu created
                                  host.SmartHomePi4	2021-04-05 21:06:15.666	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.cputime created
                                  host.SmartHomePi4	2021-04-05 21:06:15.637	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.memHeapUsed created
                                  host.SmartHomePi4	2021-04-05 21:06:15.607	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.memHeapTotal created
                                  host.SmartHomePi4	2021-04-05 21:06:15.578	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.memRss created
                                  host.SmartHomePi4	2021-04-05 21:06:15.550	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.uptime created
                                  host.SmartHomePi4	2021-04-05 21:06:15.521	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.inputCount created
                                  host.SmartHomePi4	2021-04-05 21:06:15.491	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.outputCount created
                                  host.SmartHomePi4	2021-04-05 21:06:15.463	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.eventLoopLag created
                                  host.SmartHomePi4	2021-04-05 21:06:15.434	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.sigKill created
                                  host.SmartHomePi4	2021-04-05 21:06:15.404	info	iobroker host.SmartHomePi4 object system.adapter.zwave2.0.logLevel created
                                  host.SmartHomePi4	2021-04-05 21:06:15.375	info	iobroker host.SmartHomePi4 object zwave2.0.info created
                                  host.SmartHomePi4	2021-04-05 21:06:15.347	info	iobroker host.SmartHomePi4 object zwave2.0.info.connection created
                                  host.SmartHomePi4	2021-04-05 21:06:15.318	info	iobroker host.SmartHomePi4 object zwave2.0.info.inclusion created
                                  host.SmartHomePi4	2021-04-05 21:06:15.289	info	iobroker host.SmartHomePi4 object zwave2.0.info.exclusion created
                                  host.SmartHomePi4	2021-04-05 21:06:15.261	info	iobroker host.SmartHomePi4 object zwave2.0.info.healingNetwork created
                                  host.SmartHomePi4	2021-04-05 21:06:15.249	info	iobroker host.SmartHomePi4 create instance zwave2
                                  

                                  Was mache ich nur falsch? Habe nun kein Z-WAY installiert, also ganz ohne! Und alles nur unter pi-User und sudo.

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

                                    @amagnum

                                    No serial port configured. Please select one in the adapter settings!
                                    

                                    Das gemacht?

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      AMagnum @Thomas Braun last edited by

                                      @thomas-braun Ja hatte ich gemacht. Habe dort /dev/ttyAMA0 eingetragen und Adapter auch neu gestartet. Das Logfile oben ist nach dem Eintrag des TTY.

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        AMagnum @AMagnum last edited by

                                        @amagnum dd6c1ba9-c20d-4292-9349-6a02e281cd84-grafik.png

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

                                          @amagnum
                                          Und auf ttyACM0 läuft der zigbee?

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            AMagnum @Thomas Braun last edited by

                                            @thomas-braun

                                            pi@SmartHomePi4:~ $ npx @serialport/list
                                            /dev/ttyACM0    usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2427885-if00   dresden elektronik ingenieurtechnik GmbH
                                            /dev/ttyAMA0
                                            /dev/ttyS0
                                            

                                            Ja auf dem Port ttyACM0 läuft der ConBee_II Stick. Mich wundert es, dass mit dem o.g. Befehl keine Ausgabe für ttyAMA0 gemacht wird. Ich hätte irgendwie gedacht, dass dort auch was stehen sollte.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            847
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            44
                                            2614
                                            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