Auden69 Posted July 23, 2022 Share Posted July 23, 2022 (edited) Hello, I just moved and boot again my unraid server. I d'ont remember where my conbee II where plugged... and it's now a problem... I can't use it... in unraid : Bus 001 Device 001 Port 1-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002 Port 1-3 ID ffff:5678 USB Disk 2.0 Bus 001 Device 017 Port 1-12 ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II] Bus 002 Device 001 Port 2-0 It seems ok. I've a VM with home assistant, but when i start zigbee2mqtt : Zigbee2MQTT:info 2022-07-23 21:02:27: Starting Zigbee2MQTT version 1.26.0 (commit #cd23aea) Zigbee2MQTT:info 2022-07-23 21:02:27: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-23 21:02:27: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-23 21:02:27: Failed to start zigbee Zigbee2MQTT:error 2022-07-23 21:02:27: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-23 21:02:27: Exiting... Zigbee2MQTT:error 2022-07-23 21:02:27: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00' at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28) at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14) at /app/node_modules/@serialport/stream/lib/index.js:242:1 It worked perfectly before i move. I tried to install zigbee2mqtt via docker : Zigbee2MQTT:info 2022-07-23 21:02:27: Starting Zigbee2MQTT version 1.26.0 (commit #cd23aea) Zigbee2MQTT:info 2022-07-23 21:02:27: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-23 21:02:27: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-23 21:02:27: Failed to start zigbee Zigbee2MQTT:error 2022-07-23 21:02:27: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-23 21:02:27: Exiting... Zigbee2MQTT:error 2022-07-23 21:02:27: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if0 I followed the link in the error message to solve but all seems to be ok : root@Tower:~# ls -l /dev/serial/by-id total 0 lrwxrwxrwx 1 root root 13 Jul 23 20:38 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00 -> ../../ttyACM0 root@Tower:~# test -w /dev/ttyACM0 && echo success || echo failure success root@Tower:~ This is my configuration for zigbee : # Home Assistant integration (MQTT discovery) homeassistant: true # allow new devices to join permit_join: true # MQTT settings mqtt: # MQTT base topic for zigbee2mqtt MQTT messages base_topic: zigbee2mqtt # MQTT server URL server: 'mqtt://localhost' # MQTT server authentication, uncomment if required: # user: my_user # password: my_password # Serial settings serial: port: /dev/ttyACM0 I've just try to update the firmware on my combee, same result Any idea to solve this problem ???? Thanks Edited July 23, 2022 by Auden69 Quote Link to comment
SimonF Posted July 23, 2022 Share Posted July 23, 2022 1 hour ago, Auden69 said: This is my configuration for zigbee : how to you connect the conbee to the vm? and which vers of unraid? Quote Link to comment
Auden69 Posted July 23, 2022 Author Share Posted July 23, 2022 5 minutes ago, SimonF said: how to you connect the conbee to the vm? and which vers of unraid? Unraid 6.10.3 I 've just ckeck the box where the conbee is displayed... I can see my conbee in my vm, but I can' t use it. Quote Link to comment
SimonF Posted July 23, 2022 Share Posted July 23, 2022 (edited) 3 minutes ago, Auden69 said: Unraid 6.10.3 I 've just ckeck the box where the conbee is displayed... I can see my conbee in my vm, but I can' t use it. You have to map as a serial port which cannot be done from the template. You have to edit the xml have a look a this thread. I have added support to my usb manage plugin for serial mapping. Edited July 23, 2022 by SimonF Quote Link to comment
Auden69 Posted July 25, 2022 Author Share Posted July 25, 2022 Thanks for your support, but as newbie i'm still blocked... This is where i am.... : root@Tower:~# lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID ffff:5678 USB Disk 2.0 Bus 001 Device 020: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II] Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@Tower:~# lsusb -vs 001:020 Bus 001 Device 020: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II] Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.01 bDeviceClass 2 Communications bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x1cf1 Dresden Elektronik idProduct 0x0030 ZigBee gateway [ConBee II] bcdDevice 1.00 iManufacturer 1 dresden elektronik ingenieurtechnik GmbH iProduct 2 ConBee II iSerial 3 DE2230164 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0043 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 2 Communications bInterfaceSubClass 2 Abstract (modem) bInterfaceProtocol 1 AT-commands (v.25ter) iInterface 0 CDC Header: bcdCDC 1.10 CDC ACM: bmCapabilities 0x02 line coding and serial state CDC Union: bMasterInterface 0 bSlaveInterface 1 CDC Call Management: bmCapabilities 0x03 call management use DataInterface bDataInterface 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 16 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 10 CDC Data bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Binary Object Store Descriptor: bLength 5 bDescriptorType 15 wTotalLength 0x000c bNumDeviceCaps 1 USB 2.0 Extension Device Capability: bLength 7 bDescriptorType 16 bDevCapabilityType 2 bmAttributes 0x00000002 HIRD Link Power Management (LPM) Supported Device Status: 0x0000 (Bus Powered) root@Tower:~# lsusb -vs 001:020 | grep iSerial iSerial 3 DE2230164 So , in my template i added this : </serial> <serial type='dev'> <source path='/dev/serial/by-id/DE2230164'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <address type='usb' bus='0' port='4'/> </serial> My full template : <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm'> <name>Home Assistant</name> <uuid>7677fc3b-6f9f-69b8-c6e6-152d4e5cf0db</uuid> <metadata> <vmtemplate xmlns="unraid" name="Linux" icon="default.png" os="linux"/> </metadata> <memory unit='KiB'>4194304</memory> <currentMemory unit='KiB'>2097152</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>1</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> </cputune> <os> <type arch='x86_64' machine='pc-q35-5.1'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/7677fc3b-6f9f-69b8-c6e6-152d4e5cf0db_VARS-pure-efi.fd</nvram> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='1' threads='1'/> <cache mode='passthrough'/> </cpu> <clock offset='utc'> <timer name='rtc' tickpolicy='catchup'/> <timer name='pit' tickpolicy='delay'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/local/sbin/qemu</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='writeback'/> <source file='/mnt/user/isos/hassos_ova-5.12.qcow2'/> <target dev='hdc' bus='sata'/> <boot order='1'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <controller type='pci' index='0' model='pcie-root'/> <controller type='pci' index='1' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='1' port='0x10'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/> </controller> <controller type='pci' index='2' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='2' port='0x11'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/> </controller> <controller type='pci' index='3' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='3' port='0x12'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/> </controller> <controller type='pci' index='4' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='4' port='0x13'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/> </controller> <controller type='pci' index='5' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='5' port='0x14'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/> </controller> <controller type='virtio-serial' index='0'> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </controller> <controller type='sata' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> </controller> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <filesystem type='mount' accessmode='passthrough'> <source dir='/mnt/user/'/> <target dir='partage'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </filesystem> <interface type='bridge'> <mac address='52:54:00:40:fe:fe'/> <source bridge='br0'/> <model type='virtio-net'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/> </interface> <serial type='pty'> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> </serial> <serial type='dev'> <source path='/dev/serial/by-id/DE2230164'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <address type='usb' bus='0' port='4'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <channel type='unix'> <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='fr'> <listen type='address' address='0.0.0.0'/> </graphics> <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> </video> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x1cf1'/> <product id='0x0030'/> </source> <address type='usb' bus='0' port='2'/> </hostdev> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/> </memballoon> </devices> </domain> But now I can't start my VM : Execution Error Path '/dev/serial/by-id/DE2230164' is not accessible: No such file or director I really a noob, sorry 😞 PS : I realized the problem came this the 6.10.3 update 😞 Quote Link to comment
SimonF Posted July 26, 2022 Share Posted July 26, 2022 3 hours ago, Auden69 said: Any idea ? 😞 You need to use the full path with out the @ root@computenode:~# ls /dev/serial/by-id/ usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEXXXXXX-if00@ root@computenode:~# or if you use my plugin it will map it for you. Quote Link to comment
Auden69 Posted July 27, 2022 Author Share Posted July 27, 2022 Hello; Hi already tried this : <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <address type='usb' bus='0' port='4'/> </serial> The VM starts, and I can see my Conbee in HA Hardware Page, but I can't start Zigbee2Mqtt service : [06:29:25] INFO: Handing over control to Zigbee2MQTT Core ... > [email protected] start > node index.js Zigbee2MQTT:info 2022-07-27 06:29:27: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-27.06-29-27' filename: log.txt Zigbee2MQTT:info 2022-07-27 06:29:27: Starting Zigbee2MQTT version 1.26.0 (commit #unknown) Zigbee2MQTT:info 2022-07-27 06:29:27: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-27 06:29:27: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-27 06:29:27: Failed to start zigbee Zigbee2MQTT:error 2022-07-27 06:29:27: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-27 06:29:27: Exiting... Zigbee2MQTT:error 2022-07-27 06:29:27: Error: spawn udevadm ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) With Z2M in docker same problem : Using '/app/data' as data directory Zigbee2MQTT:info 2022-07-27 06:35:28: Logging to console and directory: '/app/data/log/2022-07-27.06-35-28' filename: log.txt Zigbee2MQTT:info 2022-07-27 06:35:28: Starting Zigbee2MQTT version 1.26.0 (commit #cd23aea) Zigbee2MQTT:info 2022-07-27 06:35:28: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-27 06:35:28: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-27 06:35:28: Failed to start zigbee Zigbee2MQTT:error 2022-07-27 06:35:28: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-27 06:35:28: Exiting... Zigbee2MQTT:error 2022-07-27 06:35:28: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00' at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28) at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14) at /app/node_modules/@serialport/stream/lib/index.js:242:12 So, I don't think it's problem with the template of my VM.... but i don't know where to search... 😞 I tried different firmware with the conbee : same results I tested the conbee with Windows and it worked. Quote Link to comment
SimonF Posted July 27, 2022 Share Posted July 27, 2022 6 minutes ago, Auden69 said: Hello; Hi already tried this : <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <address type='usb' bus='0' port='4'/> </serial> The VM starts, and I can see my Conbee in HA Hardware Page, but I can't start Zigbee2Mqtt service : [06:29:25] INFO: Handing over control to Zigbee2MQTT Core ... > [email protected] start > node index.js Zigbee2MQTT:info 2022-07-27 06:29:27: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-27.06-29-27' filename: log.txt Zigbee2MQTT:info 2022-07-27 06:29:27: Starting Zigbee2MQTT version 1.26.0 (commit #unknown) Zigbee2MQTT:info 2022-07-27 06:29:27: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-27 06:29:27: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-27 06:29:27: Failed to start zigbee Zigbee2MQTT:error 2022-07-27 06:29:27: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-27 06:29:27: Exiting... Zigbee2MQTT:error 2022-07-27 06:29:27: Error: spawn udevadm ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) With Z2M in docker same problem : Using '/app/data' as data directory Zigbee2MQTT:info 2022-07-27 06:35:28: Logging to console and directory: '/app/data/log/2022-07-27.06-35-28' filename: log.txt Zigbee2MQTT:info 2022-07-27 06:35:28: Starting Zigbee2MQTT version 1.26.0 (commit #cd23aea) Zigbee2MQTT:info 2022-07-27 06:35:28: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-27 06:35:28: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-27 06:35:28: Failed to start zigbee Zigbee2MQTT:error 2022-07-27 06:35:28: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-27 06:35:28: Exiting... Zigbee2MQTT:error 2022-07-27 06:35:28: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00' at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28) at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14) at /app/node_modules/@serialport/stream/lib/index.js:242:12 So, I don't think it's problem with the template of my VM.... but i don't know where to search... 😞 I tried different firmware with the conbee : same results I tested the conbee with Windows and it worked. When you pass the device as a serial adapter you will have a different usb name in the VM do you specify the USB name in zigbe2mqtt config? Example below. /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0 https://community.home-assistant.io/t/solved-conbee-2-fails-to-connect-to-zha-ha-in-unraid-vm/431276/2 Quote Link to comment
Auden69 Posted July 27, 2022 Author Share Posted July 27, 2022 (edited) I follow your link..... In my HA hardware page, i've no "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_**********" : Only: ttyACM0 /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00 Sous-système: tty Chemin d’accès au périphérique: /dev/ttyACM0 ID: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00 Attributs: DEVLINKS: >- /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164-if00 /dev/serial/by-path/pci-0000:00:07.0-usb-0:2:1.0 DEVNAME: /dev/ttyACM0 DEVPATH: /devices/pci0000:00/0000:00:07.0/usb2/2-2/2-2:1.0/tty/ttyACM0 ID_BUS: usb ID_MODEL: ConBee_II ID_MODEL_ENC: ConBee\x20II ID_MODEL_ID: '0030' ID_PATH: pci-0000:00:07.0-usb-0:2:1.0 ID_PATH_TAG: pci-0000_00_07_0-usb-0_2_1_0 ID_REVISION: '0100' ID_SERIAL: dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2230164 ID_SERIAL_SHORT: DE2230164 ID_TYPE: generic ID_USB_DRIVER: cdc_acm ID_USB_INTERFACES: ':020201:0a0000:' ID_USB_INTERFACE_NUM: '00' ID_VENDOR: dresden_elektronik_ingenieurtechnik_GmbH ID_VENDOR_ENC: dresden\x20elektronik\x20ingenieurtechnik\x20GmbH ID_VENDOR_ID: 1cf1 MAJOR: '166' MINOR: '0' SUBSYSTEM: tty TAGS: ':systemd:' USEC_INITIALIZED: '2654061' In my unraid system/device I've : Bus 001 Device 001 Port 1-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002 Port 1-3 ID ffff:5678 USB Disk 2.0 Bus 001 Device 003 Port 1-11 ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC Bus 001 Device 118 Port 1-12 ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II] Bus 002 Device 001 Port 2-0 ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 118 Port 1-12 ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II] Device 118 It's not a problem ? EDIT : Oups I forgot Unckeck the device... I can see the lines now. I 'm still testing... Edited July 27, 2022 by Auden69 Quote Link to comment
Auden69 Posted July 27, 2022 Author Share Posted July 27, 2022 Finally, i found "dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0" in HA hardware page So in my z2m(docker) configuration file i put : # Home Assistant integration (MQTT discovery) homeassistant: true # allow new devices to join permit_join: true # MQTT settings mqtt: # MQTT base topic for zigbee2mqtt MQTT messages base_topic: zigbee2mqtt # MQTT server URL server: 'mqtt://localhost' # MQTT server authentication, uncomment if required: # user: my_user # password: my_password # Serial settings serial: port: /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0 But when I start the container : Using '/app/data' as data directory Zigbee2MQTT:info 2022-07-27 07:39:24: Logging to console and directory: '/app/data/log/2022-07-27.07-39-24' filename: log.txt Zigbee2MQTT:info 2022-07-27 07:39:24: Starting Zigbee2MQTT version 1.26.0 (commit #cd23aea) Zigbee2MQTT:info 2022-07-27 07:39:24: Starting zigbee-herdsman (0.14.40) Zigbee2MQTT:error 2022-07-27 07:39:24: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-07-27 07:39:24: Failed to start zigbee Zigbee2MQTT:error 2022-07-27 07:39:24: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-07-27 07:39:24: Exiting... Zigbee2MQTT:error 2022-07-27 07:39:24: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0' at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28) at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14) at /app/node_modules/@serialport/stream/lib/index.js:242:12 Big noob i know 😞 Quote Link to comment
Auden69 Posted July 27, 2022 Author Share Posted July 27, 2022 (edited) It's me.... I followed the tuto and it works with ZHA with "dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0" How do to the same thing with Z2M Thanks Edited July 27, 2022 by Auden69 Quote Link to comment
SimonF Posted July 27, 2022 Share Posted July 27, 2022 (edited) 10 hours ago, Auden69 said: It's me.... I followed the tuto and it works with ZHA with "dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0" How do to the same thing with Z2M Thanks If may have a ttyACM0 name in the vm but I dont know how to find in HA Edited July 27, 2022 by SimonF Quote Link to comment
Auden69 Posted July 27, 2022 Author Share Posted July 27, 2022 I can use zigbee2mqtt in docker and link it to sent info to the HA broker .... But for the moment, it dont work with Z2m in docker 😞 Quote Link to comment
SimonF Posted July 28, 2022 Share Posted July 28, 2022 21 hours ago, Auden69 said: I can use zigbee2mqtt in docker and link it to sent info to the HA broker .... But for the moment, it dont work with Z2m in docker 😞 I cannot get this to work either, I have tried both 6.11rc2, 6.9.2 with --device=/dev/ttyACMx or serial/by-id and the container cannot connect tot the stick, not sure what else to try. Quote Link to comment
Auden69 Posted July 29, 2022 Author Share Posted July 29, 2022 (edited) So, I'm not the only one to have this problem.... So ,right now you can't use your stick ? Edited July 29, 2022 by Auden69 Quote Link to comment
SimonF Posted July 29, 2022 Share Posted July 29, 2022 1 hour ago, Auden69 said: So, I'm not the only one to have this problem.... So ,right now you can't use your stick ? I use it direct in HA not via zigbee2mqtt but I cannot get it work with the docker. Quote Link to comment
Solution SimonF Posted July 29, 2022 Solution Share Posted July 29, 2022 1 hour ago, Auden69 said: So, I'm not the only one to have this problem.... So ,right now you can't use your stick ? Just got it working with the docker in Yaml add adapater serial: # Location of CC2531 USB sniffer adapter: deconz port: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEXXXXX-if00 Also add --device= on the docker template in Extras. 1 Quote Link to comment
Auden69 Posted July 29, 2022 Author Share Posted July 29, 2022 1 hour ago, SimonF said: Also add --device= on the docker template in Extras. You saved my week !!! Thanks !! Quote Link to comment
SimonF Posted July 29, 2022 Share Posted July 29, 2022 18 minutes ago, Auden69 said: You saved my week !!! Thanks !! I was missing the adapter line in the Yaml Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.