Zigbee2MQTT addon not connecting to ConBee II USB stick

I’ve got trouble to connecting to the ConBee II USB stick through the Zigbee2MQTT addon.
So, I’ve tried to find a solution to this on here and elsewhere.

Running Home Assistant Operating System on Raspberry PI 4.
When connecting the stick it’s detected in the log.
I’ve got the broker installed and configured.

Things I’ve done:

  • ReFlashed whole HASSIO
  • Changed USB for ConBee II
  • Triple checked the device address.
  • user and pw are correct
  • server address is correct

Log and config bellow with Zigbee Herdsman debug logging enabled:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[14:46:43] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[14:46:44] INFO: MQTT available, fetching server detail ...
[14:46:44] INFO: Previous config file found, checking backup
[14:46:44] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[14:46:44] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:46:45] INFO: Zigbee Herdsman debug logging enabled
[14:46:46] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
2021-11-26T13:46:52.477Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2021-11-26T13:46:52.485Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401204-if00"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2021-11-26T13:46:52.487Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401204-if00 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2021-11-26T13:46:52.498Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2021-11-26T13:46:52.501Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-11-26T13:46:52.505Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-11-26T13:46:52.761Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2021-11-26T13:46:52.762Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2021-11-26T13:46:53.766Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-11-26T13:46:53.768Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-11-26T13:46:54.019Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2021-11-26T13:46:54.479Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-11-26T13:46:54.480Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-11-26T13:47:00.486Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-11-26T13:47:00.488Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-11-26T13:47:06.492Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-11-26T13:47:06.493Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2021-11-26 14:47:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-11-26 14:47:12: Failed to start zigbee
Zigbee2MQTT:error 2021-11-26 14:47:12: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-11-26 14:47:12: Exiting...
Zigbee2MQTT:error 2021-11-26 14:47:12: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:97:5)
data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.62:1883
  user: mqtt_user
  password: mqtt_pass
serial:
  port: >-
    /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401204-if00
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
availability: false
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false
zigbee_herdsman_debug: true

You have to add adapter: deconz under serial

serial:
  adapter: deconz

I’ve tried this also without succes:
Log bellow:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[15:50:16] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[15:50:17] INFO: MQTT available, fetching server detail ...
[15:50:17] INFO: Previous config file found, checking backup
[15:50:17] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[15:50:17] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:50:19] INFO: Zigbee Herdsman debug logging enabled
[15:50:19] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
2021-11-26T14:50:25.593Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2021-11-26T14:50:25.602Z zigbee-herdsman:deconz:driver Set delay to 0
CREATED DECONZ ADAPTER
2021-11-26T14:50:25.607Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401204-if00","adapter":"deconz"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2021-11-26T14:50:25.608Z zigbee-herdsman:deconz:driver Opening with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401204-if00
2021-11-26T14:50:25.624Z zigbee-herdsman:deconz:driver Serialport opened
2021-11-26T14:50:25.626Z zigbee-herdsman:controller:log Started with result 'resumed'
2021-11-26T14:50:25.627Z zigbee-herdsman:controller:log Injected database: true, adapter: true
2021-11-26T14:50:25.636Z zigbee-herdsman:deconz:driver send read parameter request from queue. seqNr: 1 paramId: 1
2021-11-26T14:50:28.608Z zigbee-herdsman:deconz:adapter checking coordinator simple descriptor
2021-11-26T14:50:28.613Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x0 EP:0 SeqNr. 2 request id: 1
2021-11-26T14:50:35.637Z zigbee-herdsman:deconz:driver Timeout for request - CMD: 0xa seqNr: 1
Zigbee2MQTT:error 2021-11-26 15:50:35: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-11-26 15:50:35: Failed to start zigbee
Zigbee2MQTT:error 2021-11-26 15:50:35: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-11-26 15:50:35: Exiting...
Zigbee2MQTT:error 2021-11-26 15:50:35: undefined

Make sure you use an USB 2 port, and not an USB 3, and use an USB extension cable.

1 Like

server: mqtt://core-mosquitto

mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto
  user: mqtt
  password: mqtt

Crazy!
Went to the store to buy a extension cable and forgot it was Black Friday. :upside_down_face:
Worked out tho!
Thanks & hope this helps others out there! :slight_smile:

This worked aswell, but old config also worked.

I am having exactly the same issue… Did just the extension cable fix it for you?

FYI, Zigbee devices and especially the Zigbee Coordinator are known to be very susceptible to Radio Frequency Interference (RFI) / Electromagnetic interference (EMI) caused by different signal interfering sources, so all the tips to try to reduce interference are extremely important to follow even if they may sound silly.

As standard with any Zigbee Coordinator adapter today, try to follow all the best practice tips and tricks posted in PR https://github.com/home-assistant/home-assistant.io/pull/18864 as well as those here https://www.home-assistant.io/integrations/zha#best-practices-to-avoid-pairingconnection-difficulties

Short summary:

  1. Upgrade to the latest firmware on the Zigbee Coordinator adapter (whichever adapter you have).
  2. Connect the Zigbee Coordinator adapter to a long USB extension cable to get it a bit way.
  3. Be sure that Zigbee Coordinator adapter is connected to USB 2.0 port (or via USB 2.0 hub).
  4. Shield any computers and USB 3.0 peripherals like hard drives by using metal enclosures.
  5. Make sure Zigbee Coordinator adapter and devices is not close to WiFi router or access-points.
  6. Zigbee devices do not have long-range (or good radio signal penetration) on their own so begin by successively adding more mains-powered Zigbee Router devices (a.k.a. Zigbee signal-repeaters/range-extenders) closer to the Zigbee Coordinator adapter and then in each room building outwards to form a stable Zigbee network mesh before adding devices further way.
  7. Afting adding mains-powered Zigbee Router devices pair all the other devices where you plan to have them permanently installed and do not move them around afterwards.
  8. If still have issues change Wi-Fi channel(s) on your WiFi router or access-points to do not conflict with Zigbee → https://www.metageek.com/training/resources/zigbee-wifi-coexistence/

PS: Appreciate if tumbs up PR → https://github.com/home-assistant/home-assistant.io/pull/18864