Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Sonoff Zigbee3.0 USB in Proxmox LCX

    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

    Sonoff Zigbee3.0 USB in Proxmox LCX

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bernd H. last edited by

      Vielen Dank für die Tipps, ein erster kurzer Test mit ttyUSB0 sieht bei mir genauso aus. Das kann ich aber erst heute Abend komplett ausprobieren.

      E 1 Reply Last reply Reply Quote 0
      • E
        Einstein67 @Bernd H. last edited by

        @bernd-h Die config Datei des LCX hast du mit diesen Zeilen erweitert?

        lxc.cgroup2.devices.allow: c 189:* rwm 
        lxc.mount.entry: /dev/bus/usb/001/002 dev/bus/usb/001/002 none bind,optional,create=file 
        lxc.cgroup2.devices.allow: c 188:* rwm 
        lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file 
        

        Die Zahlen/Ports können bei dir natürlich anders sein. Ohne diese 4 Zeilen kommt der ZB-Stick nicht im Container an ...

        1 Reply Last reply Reply Quote 0
        • B
          Bernd H. last edited by

          Ja, die 4 Zeilen stehen bei mir exakt so in der 100.conf.
          Die Zahlen stimmen zufällig überein.

          root@pve:/dev# lsusb
          Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
          Bus 001 Device 003: ID 8087:0aa7 Intel Corp. Wireless-AC 3168 Bluetooth
          Bus 001 Device 002: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
          Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
          
          root@pve:/dev# ls -l /dev/serial/by-id
          lrwxrwxrwx 1 root root 13 Mar 15 07:48 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_78d1d96655c9eb118bdd8d4f1d69213e-if00-port0 -> ../../ttyUSB0
          
          root@pve:/dev# ls -l /dev/ttyUSB0
          crw-rw---- 1 root dialout 188, 0 Mar 15 07:48 /dev/ttyUSB0
          

          Im Container sieht es so aus:

          root@Iobroker2:/dev# lsusb
          Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
          Bus 001 Device 003: ID 8087:0aa7 Intel Corp.
          Bus 001 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
          Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
          
          root@Iobroker2:/dev# ls /dev/serial/by-id
          ls: cannot access '/dev/serial/by-id': No such file or directory
          

          Den Device-Eintrag serial gibt es hier nicht (den brauch ich vermutlich gar nicht ?)
          Dafür aber ttyUSB0:

          root@Iobroker2:/dev# ls -la /dev/ttyUSB0
          crw-rw---- 1 nobody nogroup 188, 0 Mar 15 06:48 /dev/ttyUSB0
          

          So weit, so gut. Im Iobroker funktioniert es aber noch nicht. Der Adapter bleibt gelb. Im Log steht:

          Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error: Permission denied, cannot open /dev/ttyUSB0'"

          Hab grad gegoogelt, dass man noch irgendwelche udev-Rechte definieren muss.
          Ich bleib dran ...

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

            @bernd-h schau mal hier

            1 Reply Last reply Reply Quote 0
            • B
              Bernd H. last edited by

              Willst Du mich auf eine bestimmte Stelle im Proxmox-Manual hinweisen ?

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

                @bernd-h ganz unten Usb Geräte im LXC durchreichen, ist genau beschrieben wie es funktioniert

                1 Reply Last reply Reply Quote 0
                • B
                  Bernd H. last edited by

                  Danke, got it. Warum habe ich das bis jetzt nicht gefunden ? Muss ich mir erst mal reinziehen.

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

                    @bernd-h sagte in Sonoff Zigbee3.0 USB in Proxmox LCX:

                    Warum habe ich das bis jetzt nicht gefunden

                    gibt es noch nicht so lange

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bernd H. last edited by

                      Das ist eine super Anleitung! Eigentlich beschreibt sie exakt das was ich mir mittlerweile aus verschiedenen Quellen zusammengetragen habe.

                      Und sie hat mir einen Fehler offenbart: ich habe die chmod Rechtezuweisung im Container gemacht und nicht im Host. Arrghh ! Bin halt kein Linux-Profi.

                      Und jetzt kommt auch was im Iobroker an. Leider sagen mir die Logeinträge nicht viel. Wenn da vielleicht nochmal jemand draufschauen könnte:

                      Zigbee_Fehler_1.png

                      Aber für heute ist erstmal Schluss.
                      Vielen Dank für Eure Hilfe bis hierher !

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Bernd H. last edited by

                        @bernd-h

                        Die Extended PAN-Id muss übereinstimmen.

                        Und bitte keine Screenshots von LogFiles. Die kann man nicht zitieren.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Bernd H. last edited by

                          Da bin ich im Moment selber draufgekommen !

                          Es funktioniert, der Adapter ist grün: keine Fehler oder Warnungen mehr im Log! Aber warum steht in der Kontexthilfe im Adapter "16 zufällige Hex-Zeichen" ?

                          Vielen Dank für Deine bzw. Eure Hilfe. Das Forum ist echt Klasse !

                          1 Reply Last reply Reply Quote 0
                          • B
                            Bernd H. last edited by

                            Aber jetzt noch zwei Fragen:
                            Wie kann ich die Logausgabe "zitierfähig" posten ? Copy-paste sieht nicht sehr gut aus.
                            Und wie kann ich diesen Thread als "gelöst" kennzeichnen ?

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Bernd H. last edited by

                              @bernd-h

                              Text in CodeTags einbetten. Das </> Icon anklicken

                              1 Reply Last reply Reply Quote 0
                              • B
                                Bernd H. last edited by

                                Jetzt habe ich doch noch eine Verständnisfrage:

                                Wenn ich den Stick mit /dev/usb/xxx/xxx durchreiche, dann darf ich den physischen USB-Steckplatz vermutlich nicht ändern.

                                Wennn ich ihn mit /dev/serial/by-id/xyz durchreiche schon ?

                                amg_666 1 Reply Last reply Reply Quote 0
                                • amg_666
                                  amg_666 @Bernd H. last edited by

                                  @bernd-h Es kann sogar passieren, dass du den Stick rausziehst und wieder am selben Steckplatz einsteckst und er wird nicht mehr mit dev/usb/xxx durchgereicht, wenn sich die device-nummer ändert.

                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    Christian88 @amg_666 last edited by Christian88

                                    Ich hänge mich hier mal rein, weil ich exakt dasselbe Problem hab.

                                    Sitze seit zwei Stunden vorm Rechner und bekomme den Stick einfach nicht integriert.

                                    Ich bin Schritt für Schritt der Anleitung hier gefolgt:
                                    https://www.iobroker.net/#de/documentation/install/proxmox.md

                                    Bissl runterscrollen. Da steht, wie die Einbindung von USB Geräten funktionieren soll.

                                    So siehts bei mir in der Konsole vom LCX aus:

                                    root@iobroker:~# ls -l /dev
                                    total 0
                                    crwx------ 1 root   tty     136, 0 Oct  2 21:55 console
                                    lrwxrwxrwx 1 root   root        11 Oct  2 21:55 core -> /proc/kcore
                                    lrwxrwxrwx 1 root   root        13 Oct  2 21:55 fd -> /proc/self/fd
                                    crw-rw-rw- 1 nobody nogroup   1, 7 Oct  2 22:03 full
                                    lrwxrwxrwx 1 root   root        12 Oct  2 21:55 initctl -> /run/initctl
                                    lrwxrwxrwx 1 root   root        28 Oct  2 21:55 log -> /run/systemd/journal/dev-log
                                    drwxrwxrwt 2 nobody nogroup     40 Oct  2 21:55 mqueue
                                    crw-rw-rw- 1 nobody nogroup   1, 3 Oct  2 22:03 null
                                    crw-rw-rw- 1 root   root      5, 2 Oct  2 22:09 ptmx
                                    drwxr-xr-x 2 root   root         0 Oct  2 21:55 pts
                                    crw-rw-rw- 1 nobody nogroup   1, 8 Oct  2 22:03 random
                                    drwxr-xr-x 3 root   root        60 Oct  2 21:55 serial
                                    drwxrwxrwt 2 root   root        40 Oct  2 21:55 shm
                                    lrwxrwxrwx 1 root   root        15 Oct  2 21:55 stderr -> /proc/self/fd/2
                                    lrwxrwxrwx 1 root   root        15 Oct  2 21:55 stdin -> /proc/self/fd/0
                                    lrwxrwxrwx 1 root   root        15 Oct  2 21:55 stdout -> /proc/self/fd/1
                                    crw-rw-rw- 1 nobody nogroup   5, 0 Oct  2 22:03 tty
                                    crw------- 1 root   tty     136, 1 Oct  2 22:09 tty1
                                    crw--w---- 1 root   tty     136, 2 Oct  2 21:55 tty2
                                    crw-rw-rw- 1 nobody nogroup 188, 0 Oct  2 22:03 ttyUSB0
                                    crw-rw-rw- 1 nobody nogroup   1, 9 Oct  2 22:03 urandom
                                    crw-rw-rw- 1 nobody nogroup   1, 5 Oct  2 22:03 zero
                                    root@iobroker:~# 
                                    

                                    und so sieht meine conf datei für den Container aus:

                                    arch: amd64
                                    cores: 4
                                    features: nesting=1
                                    hostname: iobroker
                                    memory: 16384
                                    net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=4A:67:03:5A:BE:88,ip=dhcp,ip6=dhcp,typ>
                                    onboot: 1
                                    ostype: ubuntu
                                    rootfs: local-lvm:vm-200-disk-0,size=32G
                                    swap: 512
                                    unprivileged: 1
                                    lxc.cgroup2.devices.allow: c 189:* rwm
                                    lxc.mount.entry: usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0 d>
                                    lxc.cgroup2.devices.allow: c 188:* rwm
                                    lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
                                    

                                    Die Rechte stimmen... alles sieht okay aus. Den Zigbee Adapter habe ich einmal mit /dev/ttyUSB0 probiert und einmal mit /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
                                    Kein Unterschied. Der Adapter bleibt "gelb".

                                    Die Meldung ausm Protokoll:

                                    	2023-10-02 22:21:41.807	error	Error herdsman start
                                    
                                    zigbee.0
                                    2023-10-02 22:21:41.806	error	Failed to start Zigbee
                                    
                                    zigbee.0
                                    2023-10-02 22:21:41.806	error	Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'"
                                    
                                    zigbee.0
                                    2023-10-02 22:21:41.685	info	Installed Version: iobroker.zigbee@1.8.23
                                    
                                    zigbee.0
                                    2023-10-02 22:21:41.677	info	Starting Zigbee npm ...
                                    
                                    zigbee.0
                                    2023-10-02 22:21:41.676	info	Try to reconnect. 1 attempts left
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.674	error	Error herdsman start
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.674	error	Failed to start Zigbee
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.674	error	Starting zigbee-herdsman problem : "startup failed - configuration-adapter mismatch - see logs above for more information"
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.625	error	Re-commissioning your network will require re-pairing of all devices!
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.625	error	If you wish to re-commission your network, please remove coordinator backup at /opt/iobroker/iobroker-data/zigbee_0/nvbackup.json.
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.625	error	Please update configuration to prevent further issues.
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.625	error	- Channel List: configured=11, adapter=11
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.624	error	- Network Key: configured=01030507090b0d0f00020406080a0c0d, adapter=01030507090b0d0f00020406080a0c0d
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.624	error	- Extended PAN ID: configured=00124b0029e8507c, adapter=00124b0029e8507c
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.624	error	- PAN ID: configured=6754, adapter=6700
                                    
                                    zigbee.0
                                    2023-10-02 22:21:31.624	error	Configuration is not consistent with adapter state/backup!
                                    

                                    Wer kann mir helfen?

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

                                      @christian88 sagte in Sonoff Zigbee3.0 USB in Proxmox LCX:

                                      PAN ID: configured=6754, adapter=6700

                                      Muss übereinstimmen.

                                      Und in der Anleitung steht auch bestimmt drin, daß man einen User anlegt und den root in Ruh' lässt.

                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        Christian88 @Thomas Braun last edited by

                                        @thomas-braun

                                        Manchmal sieht man den Wald vor lauter Bäumen...

                                        Danke ! Läuft...

                                        Und danke für den Tipp. Mach ich!

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        817
                                        Online

                                        31.9k
                                        Users

                                        80.3k
                                        Topics

                                        1.3m
                                        Posts

                                        sonoff zigbee
                                        7
                                        21
                                        4215
                                        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